You have already learned XML DOM,What should we do now?
XML DOM Summary
XML DOM defines a standard for accessing and manipulating XML.
According to the DOM, everything in an XML document is anode。
The text in an element node is stored in aText NodeIn.
The XML DOM views an XML document as a tree structure. The tree structure is callednode tree。
In the node tree, parent, child, and sibling are used to describe relationships.
All modern browsers have built-inXML parser, which can be used to read and manipulate XML.
Through the XML DOMProperties and methods, you canVisitEvery node in an XML document.
Important node attributes:nodeName, nodeValue, and nodeType。
When using properties or methods like childNodes or getElementsByTagName(), the returnedNodeList Object。
Different BrowsersHandling line breaks or whitespace characters between nodes is different.
If neededIgnore Empty Text Bytes Between Element Nodes, you can check the node type.
Nodes can use the relationships between nodes toNavigate。
ourXML DOM Examplesalso represents a summary of the XML DOM tutorial.
What should you learn next?
Our recommendation is to learn XSLT.
If you want to learn more about validating XML, we suggest learning DTD and XML Schema.
Below is a brief description of each topic.
XSLT (XML Stylesheet Language Transformation)
XSLT is a stylesheet language for XML files.
By using XSLT, XML documents can be converted into other formats, such as XHTML.
If you want to learn more about XSLT, please visit ourXSLT tutorial。
XML DTD (Document Type Definition)
The purpose of a DTD is to define the legal elements, attributes, and entities in an XML document.
By using a DTD, each XML file can carry a description of its own format.
DTD can be used to verify whether the data you receive and your own data are valid.
If you want to learn more about DTD, please visit ourDTD Tutorial。
other extensions