You have learned XML DOM, so what should you do next?
XML DOM Summary
XML DOM defines the standard for accessing and manipulating XML.
According to the DOM, everything in an XML document is aNode.
text within an element node is stored in aText nodeit.
XML DOM views an XML document as a tree structure. The tree structure is called anode tree.
In the node tree, parent, child, and sibling are used to describe relationships.
All modern browsers have a built-in XML Parserthat can be used to read and manipulate XML.
Through the XML DOM Properties and methodsyou canAccess the every node in an XML document.
Important node properties:nodeName, nodeValue, and nodeType.
When using properties or methods such as childNodes or getElementsByTagName(), aNodeList object is returned.
Different browsersdiffer in how they handle line-break or space characters between nodes.
Toignore the empty text bytes between element nodesyou can check the node type.
Nodes can be traversed using their relationshipsnavigation.
Our XML DOM Examplesalso represents a summary of the XML DOM tutorial.
What should you learn next?
Our suggestion is to learn XSLT.
If you want to learn more about validating XML, we recommend learning DTD and XML Schema.
Below is a short description of each topic.
XSLT (XML Stylesheet Language Transformations)
XSLT is the stylesheet language for XML files.
By using XSLT, an XML document can be converted into other formats, such as XHTML.
If you want to learn more about XSLT, please visit our XSLT 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 with it a description of its own format.
A 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 our DTD Tutorial.