Processing XML with Perl | Michel Rodriguez |
Example of an XML document | Why is XML important? |
The XML syntax
- the optional XML declaration is on the first line
- tags and attributes are case sensitive (h2 is different from H2)
- tags and attribute names start with a letter and include letters, digits, _ and -
- all tags have to be properly closed
- all attributes are written as att="value", quotes (either single or double) are required
- elements should be properly nested: no more <b>bold<i> bold and italics</b> italics</i>; this should be written as <b>bold<i>bold and italics</i></b><i> italics</i>.
- empty tags are written <gi att="val"/>
Example of an XML document | Why is XML important? |