4 Replies Latest reply on Jan 3, 2012 3:00 AM by Flex4_5

    parsing xml

    Flex4_5 Level 1

      Hi ALL:

      when i run my application i have this message i can't retrieve solution

       

      TypeError: Error #1088:The marking of the document after the root element must be made correctly.

      at mx.utils::XMLNotifier/watchXML()[E:\dev\hero_private\frameworks\projects\framework\src\mx \utils\XMLNotifier.as:158]

                at mx.binding::XMLWatcher/updateParent()[E:\dev\hero_private\frameworks\projects\framework\s rc\mx\binding\XMLWatcher.as:125]

                at mx.binding::Watcher/addChild()[E:\dev\hero_private\frameworks\projects\framework\src\mx\b inding\Watcher.as:107]

                at _workflowmonitorWatcherSetupUtil/setup()

                at workflowmonitor()[E:\IndegoPredict\P_WorkFlowMonitor\src\workflowmonitor.mxml:120]

                at _workflowmonitor_mx_managers_SystemManager/create()[_workflowmonitor_mx_managers_SystemMa nager.as:53]

                at mx.managers.systemClasses::ChildManager/initializeTopLevelWindow()[E:\dev\hero_private\fr ameworks\projects\framework\src\mx\managers\systemClasses\ChildManager.as:311]

                at mx.managers::SystemManager/initializeTopLevelWindow()[E:\dev\hero_private\frameworks\proj ects\framework\src\mx\managers\SystemManager.as:3063]

                at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::kickOff()[E:\dev\hero_private\frameworks\projects\framework\src\mx\managers\SystemManager.as:2849 ]

                at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::preloader_completeHandler()[E:\dev\hero_private\frameworks\projects\framework\src\mx\managers\SystemManager.as:2729 ]

                at flash.events::EventDispatcher/dispatchEventFunction()

                at flash.events::EventDispatcher/dispatchEvent()

                at mx.preloaders::Preloader/timerHandler()[E:\dev\hero_private\frameworks\projects\framework \src\mx\preloaders\Preloader.as:542]

                at flash.utils::Timer/_timerDispatch()

                at flash.utils::Timer/tick()

       

      please help me

       

      thanks in advance

        • 1. Re: parsing xml
          Claudiu Ursica Level 4

          Is your XML coming from the server? If so make sure is correctly formatted and no null value are send over, that might fix it.

           

          C

          • 2. Re: parsing xml
            Flex4_5 Level 1

            thks Claudiu:

            I'm sure my xml is correctly formating because it works well with flex 3

             

            I test my project in offline mode and i add the path xml to file mxml but this error still appeared


            • 3. Re: parsing xml
              Claudiu Ursica Level 4

              can you sreamline it with a small example and the xml, something one ca debug?

               

              C

              • 4. Re: parsing xml
                Flex4_5 Level 1

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

                <workflowmonitor databuilding="false" refresh="30" currencythreshold="true" servertime="2008-10-01T10:05:22" servertimezone="0" lastRefTime="10:05 (+00:00)" entityoffset="+00:00">

                  <request_reply>

                    <status_ok>true</status_ok>

                    <message>Data fetch ok</message>

                    <location/>

                  </request_reply>

                  <timing>

                    <operation id="all">953</operation>

                  </timing>

                  <movementsummary>

                    <movements name="Unsettled Yesterday" id="unsettledyesterday">0.0</movements>

                    <movements name="Open Unexpected" id="openunexpected">0.0</movements>

                    <movements name="Back Valued" id="backvalued">6262.0</movements>

                  </movementsummary>

                  <inputsummary>

                    <input name="Input Exceptions" id="inputexceptions">778.0</input>

                    <input name="Input Authorise (All days)" id="inputauthorise">0.0</input>

                    <input name="Input Referred (All days)" id="inputreffered">0.0</input>

                  </inputsummary>

                  <matchessummary>

                    <matches name="Offered Matches" id="offeredmatches">0.0</matches>

                    <matches name="Suspended Matches" id="suspendedmatches">0.0</matches>

                    <matches name="Confirmed Matches" id="confirmedmatches">0.0</matches>

                    <matches name="Offered Matches sub" id="offeredmatchessub">0.0</matches>

                    <matches name="Suspended Matches Sub" id="suspendedmatchessub">0.0</matches>

                    <matches name="Confirmed Matches Sub" id="confirmedmatchessub">0.0</matches>

                  </matchessummary>

                  <sweepssummary>

                    <sweeps name="Submit Sweeps" id="submitsweeps">0.0</sweeps>

                    <sweeps name="Authorise Sweeps" id="authorisesweeps">0.0</sweeps>

                    <sweeps name="Nak Sweeps" id="naksweeps">0.0</sweeps>

                  </sweepssummary>

                  <systemsummary>

                    <system name="Logged on Users" id="loggedonusers">1</system>

                    <system name="Error Log" id="errorlog">21.0</system>

                  </systemsummary>

                  <positions includedtotal="4259" excludedtotal="225">

                    <position num="1" level="Kondor+" included="0" excluded="0"/>

                    <position num="2" level="Pre-advices" included="0" excluded="0"/>

                    <position num="3" level="Back Office" included="3500" excluded="0"/>

                    <position num="4" level=""/>

                    <position num="5" level=""/>

                    <position num="6" level="Atlas" included="392" excluded="98"/>

                    <position num="7" level="SWIFT" included="0" excluded="0"/>

                    <position num="8" level="SWIFT - Final" included="367" excluded="127"/>

                    <position num="9" level=""/>

                    <position num="10" level="Reconciled" included="0" excluded=""/>

                  </positions>

                  <selects>

                    <select id="entity">

                      <option value="All" selected="0">All</option>

                      <option value="RABONL2U" selected="1">Rabobank Utrecht</option>

                      <option value="ING4" selected="0">INGBYKAIS</option>

                      <option value="INGBNL8A" selected="0">Chams Entity</option>

                      <option value="ING5" selected="0">ING5</option>

                      <option value="ING9" selected="0">ING9</option>

                      <option value="ING2" selected="0">ING2</option>

                      <option value="ING3" selected="0">ING3</option>

                      <option value="ING1" selected="0">ING1 by Saber</option>

                      <option value="ING6" selected="0">ING6</option>

                      <option value="TEST" selected="0">test</option>

                      <option value="RABOUS33" selected="0">Rabobank New York</option>

                      <option value="Mnts13Entity" selected="0">Entity for Mantis 13</option>

                    </select>

                    <select id="currency">

                      <option value="All" selected="1">All</option>

                      <option value="ASIA-PACIFIC" selected="0">Asia-Pacific Currencies</option>

                      <option value="CAD" selected="0">Canadian Dollars</option>

                      <option value="CHF" selected="0">Swiss Francs</option>

                      <option value="EAST EUROPE" selected="0">Eastern European Currencies</option>

                      <option value="EMERGING" selected="0">Emerging Markets</option>

                      <option value="EUR" selected="0">Euros</option>

                      <option value="GBP" selected="0">Pounds Sterling</option>

                      <option value="SCANDIES" selected="0">Scandinavian Currencies</option>

                      <option value="USD" selected="0">US Dollars</option>

                    </select>

                  </selects>

                  <tabs>

                    <predictdate businessday="true">01/10/2008</predictdate>

                    <predictdate businessday="true">02/10/2008</predictdate>

                    <predictdate businessday="true">03/10/2008</predictdate>

                    <predictdate businessday="false">04/10/2008</predictdate>

                    <predictdate businessday="false">05/10/2008</predictdate>

                    <predictdate businessday="true">06/10/2008</predictdate>

                    <predictdate businessday="true">07/10/2008</predictdate>

                    <selectedIndex index="0"/>

                  </tabs>

                </workflowmonitor>