Jump to content

Basics Of Xml


Dan Campbell

Recommended Posts

Ok a little help wanted from you guys.

I have some basic XML training at work at the end of the week and havn't done any specific XML before only Javascript and normal HTML coding.

Do you guys have any ideas what I should have a look at to try and get a little headstart before the course?

I looked at google but would prefer not too wade through crap to find something useful.

Thanks, Dan

Link to comment
Share on other sites

You can do things like the following........


<?xml version="1.0 ?>
<?xml-stylesheet type="text/css" href="blah.css" ?>

<user>
<name>Danny</name>
<age>20</age>
</user>
[/code] Then in the stylesheet have things like the floowing......
[code]
user {
  background-color: #346653;
}

name {
  color: #000000;
}

etc etc thats just a simple example really much more can be done. I dont think websites use the full potential of xml so its used in programming much more :ermm:

This guide is quite informative http://www.javaworld.com/javaworld/jw-04-1999/jw-04-xml.html

Link to comment
Share on other sites

hmm... style sheets arn't xml :ermm:

Extensible Markup Language is a subset of ISO 8879, Standard Generalized Markup Language (SGML). XML has been designed specifically to function on the Web, and both major browsers support it. Currently a formal recommendation from the World Wide Web Consortium (W3C), XML is similar to HTML in that both XML and HTML contain markup symbols to describe the contents of a page or file. HTML, however, describes the content of a Web page only in terms of how it is to be displayed. XML describes the content in terms of what the data is that is being described. For example the <authname><affil> tags could indicate that the data following it was an author's name and his affiliation. This allows an XML file to be processed purely as data by a program as well as being displayed in a certain way. XML is "extensible" because, unlike HTML, the markup symbols are unlimited and self-defining.

Short for eXtensible Markup Language. XML is a programming language that enables designers to create their own tags to indicate specific information. The House of Representatives, for example, has recently issued a list of XML tags to be used for Web forms on Member Web sites and other Web sites that send e-mail to congressional offices. The purpose of these forms is to enable correspondence management systems (CMS) and other software to easily identify and process types of information -- such as name, city, state, zip code, issue, etc. -- which will help make the software more efficient and more effective. These tags will help CMS vendors that do not currently offer the ability to process incoming e-mail provide this feature. Back to top
Edited by trialsmad
Link to comment
Share on other sites

hmm... style sheets arn't xml :ermm:

No, look at the html.

Instead of doing;

<table class="user"><tr><td>Content</td></tr></table>
You can simply define a xml stylesheet, define "user" as you normally would in css, obviously with some extra xml stuff. Then it would be;
<user>Content</user>

Theres a few XML based template systems out there, might be worth looking into. RSS feeds use xml quite well too, maybe check them out.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...