Failure reading XMLTEXT in XML Object

Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. 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...
    2. 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...
    3. 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...
    4. 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.
    5. 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. ...
  3. #2

    Default Re: Failure reading XMLTEXT in XML Object

    Found the problem.
    sdwebguy99 Guest

  4. #3

    Default 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

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139