3 Replies Latest reply on May 18, 2011 1:38 PM by majester8425

    HTTPService with XML format errors when XML is empty. How can I test the value ?

    majester8425 Level 1

      I have a simple HTTPService which returns XML. 99% of the time there are values and all is good with the world, however sometimes there are no values and my xml looks like this

      <?xml version="1.0" encoding="UTF-8" ?> 
        <node /> 


      This is totally valid. How can I test for this and avoid

      ReferenceError: Error #1069: Property node not found on flash.xml.XMLNode and there is no default value.


      I have tried





      Normally the xml with values look like

      (event.result.node == null)


      -     <node label="MYLABEL1" id="231" type="O" />
            <node label="MYLABEL2" id="263" type="O" />