2 Replies Latest reply on May 11, 2006 5:17 AM by Newsgroup_User

    Parsing XML with more than one Declaration

    Level 7
      Hello all, I'm having troubles with parsing some XML with multiple XML
      declarations. We have an InfoPath form that is creating the XML for us,
      and this is what ends up in the XML:

      <?xml version="1.0" encoding="iso-8859-1" ?>

      <?mso-infoPathSolution solutionVersion="1.0.0.1" productVersion="11.0.6565"
      name="urn:schemas-microsoft-com ffice:infopath:FlashShellModuleEditor:http---tempuri-org-module1-xsd"
      PIVersion="1.0.0.0" ?>

      <?mso-application progid="InfoPath.Document"?>

      Is there a way to check if these lines (<?mso) are there and remove them
      from the resulting XML via ActionScript?

      Thanks in advance!
      --
      =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

      Ian Kelleigh
      iankelleigh@comcast.net

      http://www.FreeHandSource.com/iankelleigh/