This topic explains how to build a DOM tree by parsing an XML file.
Before you start, you must:
understand the concept of Document Object Model (DOM)
understand the architecture and classes of the XML DOM Engine component
prepare an XML file containing valid XML data
Example:
XmlEnginePushL();
Initialise your
instance of the RXmlEngDOMImplementation class
by calling its OpenL()
method.
Example:
RXMlEngDOMImplementation impl; impl.OpenL();
RXMlEngDOMImplementation
instance is the DOM Engine.
Example:
RXmlEngDOMParser parser; parser.Open( impl );
Example:
RXmlDocument myDoc = parser.ParseFileL( "tutorial.xml" );
myDoc
object is a DOM tree containing the data
from the XML file.