Below is the output of the XML document widget.xml
widget: Oblong Widget 3432341-12312 45.50 This widget is useful for jobs requiring
oblong tools.
widget: Skinny Widget 34323341-1F11 55.75 This widget is useful for jobs requiring
skinny tools.
The source code for the above output is as follows:
<%
Dim objXMLDom
Set objXMLDOM = Server.CreateObject("Microsoft.XMLDOM")
objXMLDOM.async = False
objXMLDom.load(Server.MapPath("widget.xml"))
Dim objChild
for each objChild in objXMLDOM.documentElement.childNodes
Response.write(objChild.nodename)
Response.write(": ")
response.write(objChild.text & "<BR>")
next
Set objXMLDom = Nothing
%>
|
[Back to the Article]
[View the source to widget.xml]