|
A
Tutorial on Parsing XML data
Parsing
xml data from external xml file is easy in asp. You have to work with
the xmldom object for that. The first step in working with an xml file
in asp, is to create an xmldom object with the statement,
_______________________________________________
_______________________________________________
Set xmlobj
= Server.CreateObject("Microsoft.XMLDOM")
Now the next
step is to load the xml file in this xmlobject using,
xmlobj.load
(Server.MapPath("your_xml_file.xml"))
Now you can
navigate through the xml object using the documentElement.childNodes and
get the values available in the xml file. For example if you have booktitles
in the first node of the xml file then you can declare a booktitle variable
and then get the data from the first node using,
Dim booktitle
booktitle = xmlobj.documentElement.childNodes(0).text
Once you
have got this value in the variable it is easy to display it in any place
of the web page as you would work with other variables.
There are
many tutorials available in the internet on parsing xml data. Another
way to parse xml data is to use an xsl style sheet for displaying data
from the xml file.
In Brief (D-Lib Magazine) In 2006, the School of Information and Library Science at the University of North Carolina at Chapel Hill (UNC-CH SILS) and the Department of Computer Science at Virginia Tech (VT CS) took the first steps toward developing an interdisciplinary curriculum for digital library (DL) education. Related Articles (New Mobile Computing) Apress' open source series of books recently unveiled Mark Mamone's " Practical Mono ", a book targetting new .NET developers. We take a quick look at the book below.
FREE
Subscription
Subscribe to our mailing list and receive new articles
through email. Keep yourself updated with latest
developments in the industry.
Note
: We never rent, trade, or sell my email lists to
anyone.
We assure that your privacy is respected
and protected.
_______________________________________
Recommended
XML Books
|
|