[thelist] CF man needs ASP XML help

Scott Dexter dexilalolai at yahoo.com
Fri Apr 16 11:39:17 CDT 2004


> <?xml version="1.0"?>
> <docelement>
>  <feedoutput>
>   <result>
>    <error><![CDATA[0]]></error>
>    <description><![CDATA[Some data.]]></description>
>   </result>
>  </feedoutput>
> </docelement>
> 
> 
> Should I be using DOMDocument?  When I do I can't figure out how to
> traverse
> and pick out values.

Yup, DOMDocument is your friend:

Set xmlDOMDOC = Server.CreateObject("MSXML2.DOMDocument.4.0")
xmlDOMDOC.loadXML xmlResponse

sError =
xmlDOMDOC.documentelement.selectSingleNode("docelement/feedoutput/result/error").InnerText


That's from memory, you may have to play with it a bit....

Hope it helps some,
Scott


More information about the thelist mailing list