Does #Evaluate(field1)# work?

-----Original Message-----
From: Ian Lurie [mailto:[EMAIL PROTECTED]]
Sent: Sunday, December 10, 2000 6:46 PM
To: CF-Talk
Subject: MS XML COM


Hi all,

I'm using the Microsoft XML COM object to try to parse an XML structure.
Here's my code:

<cfobject type="COM" action="create" class="Microsoft.xmldom" name="xmldoc">

<cfscript>
        xmlDoc.async=false;
        xmlDoc.loadXML(form.xml);
        root = xmlDoc.DocumentElement;
        field1=root.SelectSingleNode("field1");
        field2=root.SelectSingleNode("field2");
.....and so on....
</cfscript>


I hand the script an XML structure contained in a form field. The structure
is:

<m_data>
        <field1>value</field1>
        <field2>value</field2>
</m_data>

It SEEMS to work OK, except when I try to CFOUTPUT #field1# I get the
oh-so-informative 'value is not a string' error. How would I access the
values I'm generating above to output a string value?

Thanks,

Ian


Portent Interactive
Using Process, Design and Content to build great web sites since 1995
http://www.portentinteractive.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to