XML ERROR while processing the xml output

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sandeepsandeep
    New Member
    • Dec 2006
    • 50

    XML ERROR while processing the xml output

    Hi,

    I am getting these error when processing the xml data.



    Only one top level element is allowed in an XML document. Error processing resource 'http://

    i have got the xml data through a web service when i parsed this return data them gives the error

    Regards,
    Sandeep agrawal
  • jkmyoung
    Recognized Expert Top Contributor
    • Mar 2006
    • 2057

    #2
    Then the XML returned from the webservice is not valid, as it has multiple roots.
    eg. bad:
    <item>data</item>
    <item>data</item>

    better:
    <root>
    <item>data</item>
    <item>data</item>
    </root>

    Comment

    Working...