PPT Slide
2.0 The inevitable list of proceeding acronyms
- Valid XML documents follow a set of rules defined in an associated DTD which defines elements, attributes and relationships between elements.
- DTDs are saved in an ASCII file with the ‘.dtd’ extension.
- When the XML document is processed, it is compared to its associated DTD to be sure that it is structured correctly and that all tags are used properly.
- A schema is a set of rules for data, which defines 2 things :
- 1. The elements in a data set & their associated relationship.
- 2. The content that be contained in each element.
A parser is a software tool that checks to make sure a document follows a particular syntax. They come in 2 varieties :
- A non-validating parser checks to make sure XML rules are followed and builds a document tree from the element tags
- A validating parser checks the syntax, builds the tree and compares the rules specified in the associated DTD with the element tags.
- Parsers can be external programs or part of the editing/browsing tool.