load XML without proper formatting

Hi all

I am trying to load XML in unity without a document element (I get it from a web service). The XML has the following form:

<virtualpatientscript>
  <act id="Introduction">
    <triggermap>
      <trigger_map_id>12886</trigger_map_id>
      <responses>
        <speech>Social_3.hap</speech>
      </responses>
      <triggers>
      </triggers>
      <topic>Social</topic>
      <sentences>
</virtualpatientscript>
[code]


Unity returns the following error which i think is related to the way the document is constructed.  Is there any way to bypass that?

XmlException: Document element did not appear.  Line 1, position 1.
Mono.Xml2.XmlTextReader.Read ()

Apologies for the multiple posts… happened by mistake

If it’s very predictable what you get out of it, you could always write a custom parser for it yourself. Otherwise, you could also just wrap it in a proper document structure before you try and parse it into an XmlDocument.