What to Do After Learning XML DOM?
XML DOM Summary
XML DOM defines the standard for accessing and manipulating XML.
According to DOM, everything in an XML document is a node.
Text inside element nodes is stored in a text node.
XML DOM views an XML document as a tree structure. This tree structure is called a node tree.
In the node tree, parent, child, and sibling are used to describe relationships.
All modern browsers have built-in XML parsers that can be used to read and manipulate XML.
Through XML DOM properties and methods, you can access each node in the XML document.
Important node properties: nodeName, nodeValue, and nodeType.
When using properties or methods like childNodes or getElementsByTagName(), a node list object is returned.
Different browsers handle newline or whitespace characters between nodes differently.
To ignore empty text nodes between element nodes, you can check the node type.
Nodes can be navigated using their relationships.
Our XML DOM examples also serve as a summary of the XML DOM tutorial.
What to Learn Next?
Our suggestion is to learn XSLT.
If you want to learn more about validating XML, we recommend learning DTD and XML Schema.
Here is a brief description of each topic.
XSLT (Extensible Stylesheet Language Transformations)
XSLT is a stylesheet language for XML files.
By using XSLT, you can transform XML documents into other formats, such as XHTML.
If you want to learn more about XSLT, visit our XSLT tutorial.
XML DTD (Document Type Definition)
The purpose of DTD is to define the legal elements, attributes, and entities in an XML document.
By using DTD, every XML file can carry a description of its own format.
DTD can be used to verify that the data you receive and your own data are valid.
If you want to learn more about DTD, visit our DTD tutorial.