The text in all XML documents will be parsed by the parser.
Only the text in the CDATA section is ignored by the parser.
All content in the CDATA section is ignored by the parser.
CDATA is partly composed of "<! [CDATA ["start from"]> "end:
DTD
Schema
Constraint: XML writing Specification
Define a file as a DTD
Basic Syntax:
+ Indicates one or more
<! Element class (student +)>
<! Element student (name, age, introduction)>
<! Element name (# pcdata)>
<! Element age (# pcdata)>
<! Element introduction (# pcdata)>
Introduce DTD to constrain XML files
<! Doctype note system "note. DTD">
PS: (refer to the header introduced in HTML "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd)
To open this file, a DTD constraint file is returned.
Then write a parsing tool to parse the XML code.
<Script language = "JavaScript">
VaR xmldoc = new activexobject ("Microsoft. xmldom ");
Xmldoc. validateonparse = "true"; // enable verification
Xmldoc. Load ("name. xml ");
<SCRIPT>
JAXP instance
Java performs crud operations on XML