I try to create a xml document with cf & msxml
Something like this:

        <cfobject name="xDoc" action="create" class="MSXML.DOMDocument">
        <cfset xDoc.async = false>
        <cfset xDoc.validateOnParse = false>
        <cfset xDoc.preserveWhiteSpace = false>
        <cfset xDoc.resolveExternals = false>
        
        <cfset pi = xDoc.createProcessingInstruction ("xml", "version=""1.0"" 
encoding=""UTF-8""")>
        <cfset xDoc.appendChild(#pi#)>
        
        <!---### 
        ' 
******************************************************************************
        ' make root
        ' 
******************************************************************************
        ###--->
        <cfset objXMLRoot = xDoc.createElement("pu_process_order")>
        <cfset 
objXMLRoot.setAttribute("xmlns","http://Srv-sql:2020/orders/pu_process_order.biz")>
        <cfset res = xDoc.appendChild(#objXMLRoot#)>

but the setAttribute's line show an :

        COM error 0x80020003. Member not found. 

I write the same code in asp and work fine. So, I don't think that the problem are a 
MsXML library

any suggestion?


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
------------------------------------------------------------------------------
To unsubscribe, send a message to [EMAIL PROTECTED] with 
'unsubscribe' in the body or visit the list page at www.houseoffusion.com

Reply via email to