Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
Francisco Mancardi #1
XMLParse and XMLSearch
I have the following code: a variable "x" that contains an XML string; if I do
an XMLParse on this variable, it works (cfdump shows me the xml tree); but when
I try to search something with an XPath query it doesn't work. It says
something about namespace resolving...
Could anyone try this code on a cfmx7 environment?
What am I doing wrong?
Thanks!
<cfsavecontent variable="x">
<env:Body xmlns:env="http://test/">
<as:CreateInstanceRq
xmlns:as="http://it-bra-w0037:8080/ServerASAP/schemas/asap.wsdl">
<as:StartImmediately>Yes</as:StartImmediately>
<as:ObserverKey>[url]http://127.0.0.1:8500/gruppotesi/goldenring/bpcr/gr_modules/proc[/url]
edure/wd/interop/gr_factory.cfc?wsdl</as:ObserverKey>
<as:Name>Richiesta Golden Ring</as:Name>
<as:Subject>idsocieta:0001 - idproc: AZ_EXT - idaction: 1 - idrich
2005/884</as:Subject>
<as:Description></as:Description>
<as:ContextData
xmlns:ascd="http://it-bra-w0037:8080/ServerASAP/schemas/FwSecContextData.xsd">
<ascd:intgr_fun_key>PRIVACY;;F3;;MODE</ascd:intgr_fun_key>
<ascd:intgr_azie>0001</ascd:intgr_azie>
<ascd:intgr_adom></ascd:intgr_adom>
<ascd:intgr_user>GESTORE</ascd:intgr_user>
<ascd:intgr_pswd>password</ascd:intgr_pswd>
<ascd:intgr_lang>ITA</ascd:intgr_lang>
<ascd:intgr_esiti></ascd:intgr_esiti>
<ascd:intgr_data>campo1=test1;;campo2=test2</ascd:intgr_data>
</as:ContextData>
</as:CreateInstanceRq>
</env:Body>
</cfsavecontent>
<cfset x_parsed=xmlparse(x)>
<cfset my_result=xmlsearch(x_parsed,"//as:CreateInstanceRq")>
<cfdump var="#my_result#">
Francisco Mancardi Guest
-
xmlsearch and xpath
Hallo all, i have a small problem in xmlsearch and i am new to coldfusion.... The below is the xupdate packet from flash send to coldfusion... -
xml and xmlsearch
Hi all, I am new to coldfusion, and i am facing lots of problem.... can anyone solve my problem I am reading an xml file through cfm and using... -
how to access the array returned from xmlsearch
I am having an xmlsearch function, from which i am getting the attributes of the nodes, which satisfy Only one element is returned that is ... -
XMLSearch. doesnt work
hi i'm trying to use xmlsearch function but for some strange reasons it returns only an empty array here the xml file <?xml version="1.0"... -
XmlParse Problems
Hello, I have searched everywhere and tried everything and cannot fix the problem. I continually get the following error when trying to use the...



Reply With Quote

