1 Reply Latest reply on Aug 7, 2006 5:31 PM by ntsiii

    XML Parser  Error

      I am a newbie to Flex 2 and can't seem to get a basic script to work. All the formating and syntax seems correct, but it just does not work.

      <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml" layout="absolute" xmlns="*" applicationComplete="uReq.send()" backgroundGradientColors="[#f4fbfd, #2d6bb9]">

      <mx:HTTPService url="t.xml" id="uReq">


      <mx:DataGrid x="250" y="162" width="540" height="278" dataProvider="{uReq.lastResult.users.user}">


      XML FILE:
      <?xml version="1.0"?>
      <Address>23423 jjhgjhgj st</Address>

      <Address>fghjk 576fghj bnm</Address>


      The problem is either i get an 1096 XML parser error or I don't get any error but the dataGrid is still empty.
        • 1. Re: XML Parser  Error
          ntsiii Level 3
          First, use a result handler function on the HTTPService result event, and trace, alert or step throught the result object so you can see what is being returned.

          You have to make sure you are getting data first. If you get an error, make the xml file tiny, like <root><node/></root> and make sure you can load that.

          Then hard code the XML in the app, make sure you can display it. then put it together.