0 Replies Latest reply on Nov 27, 2011 7:41 PM by AlastairJMoore

    Invalid XML in HTTPService

    AlastairJMoore

      I'm having issues with the XML generated by a Drupal website using the Services module. When I use the Connect to Data/Services utility in Flash Builder 4.5.1, I get errors reporting the XML data is invalid or incomplete. However, when I run the XML data through the W3C validator, it validates correctly.

       

      The XML is as follows:

       

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

      <result><nid>1165</nid><type>product</type><language></language><uid>1</uid><status>1</status><created>1322174562</created><changed>1322174759</changed><comment>2</comment><promote>0</promote><moderate>0</moderate><sticky>0</sticky><tnid>0</tnid><translate>0</translate><vid>1165</vid><revision_uid>1</revision_uid><title>Subscription</title><body>Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Morbi leo risus, porta ac consectetur ac, vestibulum at eros. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Cras mattis consectetur purus sit amet fermentum. Maecenas faucibus mollis interdum.</body><teaser>Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Morbi leo risus, porta ac consectetur ac, vestibulum at eros. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Cras mattis consectetur purus sit amet fermentum. Maecenas faucibus mollis interdum.</teaser><log></log><revision_timestamp>1322174759</revision_timestamp><format>1</format><name>admin</name><picture></picture><data>a:0:{}</data><model>subscription</model><list_price>0.00000</list_price><cost>0.00000</cost><sell_price>25.00000</sell_price><weight>0</weight><weight_units>lb</weight_units><length>0</length><width>0</width><height>0</height><length_units>in</length_units><pkg_qty>1</pkg_qty><default_qty>1</default_qty><unique_hash>6ad29fd18942ab6a51216f595a6c1325</unique_hash><ordering>0</ordering><shippable>0</shippable><field_image_cache is_array="true"><item/></field_image_cache><last_comment_timestamp>1322174562</last_comment_timestamp><last_comment_name/><comment_count>0</comment_count><taxonomy/><locations/><location/><uri>http://local.drupal6/test_service/node/1165</uri></result>

       

      If anyone has any suggestions on why this might not be validating, it'd be greatly appreciated!

       

      Thanks,

       

      Alastair