zesolution
04-01-2005, 07:13 AM
Greetings community.
I am very very new at ASP. Im a PHP guy.
For a new job, I need to parse this simple XML file in ASP, load each nodes into an multidimensionnal array, in order to loop through this array and display a HTML template loaded with the data.
Simple enough ? Well, I have no clue how to achieve this in ASP.
Ive been through the methods and properties of Miscrosoft.XMLDOM (found here : http://www.adp-gmbh.ch/web/js/msxmldom/methods_properties.html), but I really can go no further then this piece of code :
<%
Dim strXMLFile
Dim objXML
Dim objXSL
strXMLfile = "a.xml"
set objXML = Server.CreateObject("Microsoft.XMLDOM")
objXML.async = false
objXML.load(strXMLFile)
%>
Now what ?? : P
Here is a sample XML file. Any help would be very appreciated.
<?xml version="1.0" encoding="ISO-8859-1" ?>
<liste alpha="A" dateMAJ="2002/07/08">
<expression id="1477" date="2002/07/08" pub="1" lettre="A">
<texte>sometext</texte>
<correction>sometext</correction>
</expression>
<expression id="1476" date="2002/07/08" pub="1" lettre="A">
<texte>On a eu un « bref aperçu » du spectacle.</texte>
<correction></correction>
</expression>
</liste>
I am very very new at ASP. Im a PHP guy.
For a new job, I need to parse this simple XML file in ASP, load each nodes into an multidimensionnal array, in order to loop through this array and display a HTML template loaded with the data.
Simple enough ? Well, I have no clue how to achieve this in ASP.
Ive been through the methods and properties of Miscrosoft.XMLDOM (found here : http://www.adp-gmbh.ch/web/js/msxmldom/methods_properties.html), but I really can go no further then this piece of code :
<%
Dim strXMLFile
Dim objXML
Dim objXSL
strXMLfile = "a.xml"
set objXML = Server.CreateObject("Microsoft.XMLDOM")
objXML.async = false
objXML.load(strXMLFile)
%>
Now what ?? : P
Here is a sample XML file. Any help would be very appreciated.
<?xml version="1.0" encoding="ISO-8859-1" ?>
<liste alpha="A" dateMAJ="2002/07/08">
<expression id="1477" date="2002/07/08" pub="1" lettre="A">
<texte>sometext</texte>
<correction>sometext</correction>
</expression>
<expression id="1476" date="2002/07/08" pub="1" lettre="A">
<texte>On a eu un « bref aperçu » du spectacle.</texte>
<correction></correction>
</expression>
</liste>