| Advertise Here |
|
Accessing the DOMTraversing the node treeOne very common way to extract XML elements from an XML document is to traverse the node three and extract the text value of each elements. A small snippet of programming code like a VBScript for/each construct can be written to demonstrate this. The following VBScript code traverses an XML node tree, and displays the XML elements in the browser:
JUST TRY IT
Providing HTML content from XML filesOne of the great promises of XML is the possibility to separate HTML documents from their data. By using an XML parser inside the browser, an HTML page can be constructed as a static document, with an embedded JavaScript to provide dynamic data. When you add that these JavaScripts can access Active Server Pages from a Web server, the future looks very bright. The following JavaScript reads XML data from an XML document and writes the XML data into (waiting) HTML elements.
Accessing XML elements by nameThe following JavaScript reads XML data from an XML document and writes the XML data into (waiting) HTML elements.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Jump to : Top Of Page or HOME |