[Home]
[Edit this page]
[Recent Changes]
[Special Pages]
[Help]
element
For example, if you declare in your DTD an element named "paragraph", another element named "title" and another element name "sentence" in the following manner:
...you could then utilize these tags in your XML document as follows:
[Edit this page] [Page history] [What links here] [Discuss this topic] [Printer Friendly]
element
element
An '''element''' in an XML Document Type Definition is a basic declaration of a tag which can be used within the XML document itself.For example, if you declare in your DTD an element named "paragraph", another element named "title" and another element name "sentence" in the following manner:
<!ELEMENT paragraph (title,sentence*)> <!ELEMENT title (#PCDATA)> <!ELEMENT sentence (#PCDATA)>
...you could then utilize these tags in your XML document as follows:
<paragraph> <title>About the Elements</title> <sentence>Elements are declared in DTDs.</sentence> <sentence>Elements are used as tags in documents.</sentence> </paragraph>
[Edit this page] [Page history] [What links here] [Discuss this topic] [Printer Friendly]
