Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
sdwebguy99 #1
Failure reading XMLTEXT in XML Object
I have a really simple XML object that looks like the code attached. When
parsing the XML, I get the "XMLTEXT is undefined in Java Object error." When I
CFDUMP the XMLObject, XMLText is definitely there. What am I missing? I am
using CF7.
Code to create the XML Object (in a function of my CFC)
<cfsavecontent variable="badXML">
<?xml version="1.0" encoding="UTF-8"?>
<IDMS-XML>
<PassThroughResponse>
<StatusResult Success="No">
<Description>Error(s) encountered processing request.</Description>
<ErrorMessageList>
<ErrorMessage>The XML passed into store.msihvac.com was
invalid.</ErrorMessage>
</ErrorMessageList>
</StatusResult>
</PassThroughResponse>
</IDMS-XML>
</cfsavecontent>
<cfreturn XMLParse(badXML)>
Code that breaks in the calling page:
<cfset statusResultNodeArray = XMLSearch(returnXML, '//StatusResult')>
<cfset TheDesc = statusResultNodeArray[1].Description>
<!--- Breaks here --->
<cfoutput><p>#TheDesc.XMLText#</p></cfoutput>
sdwebguy99 Guest
-
Java Object not reading right in Flex
I am having problems with Flex reading my Java remote object. When I run the Java class from the command console it works fine (all the objects... -
Reading Flash Shared Object from Cold Fusion
Is there a way that Cold Fusion can access Flash Shared Objects? I'm trying to create some "keep alives" in order to determine when my... -
preserving html in xmlText
Anybody have an idea how to preserve html tags within a specific xml node's xmlText ? for example if a string has <b> tags around a word I want to... -
Conversion from XMLText to XMLElement
Hi, i wanted to know if there is any way to convert an object to XMlText to XMLElement. Thanks in advance. -
Mapi object failure on remote machine
"mattb" <mattb@discussions.microsoft.com> wrote in message news:9A459725-43E7-466E-9202-5C11730BC551@microsoft.com... Please don't multi-post. ... -
-
Adam Cameron #3
Re: Failure reading XMLTEXT in XML Object
> Found the problem.
What was it? When I was fiddling round with your samepl code, it didn't
seem to like the CRLF between the <cfsavecontent> and the XML declaration.
Also... there's probably some reason why you didn't use <cfxml>, instead
using the two-step of <cfsavecontent> and xmlParse()?
--
Adam
Adam Cameron Guest



Reply With Quote

