Skip to main content
Inspiring
May 9, 2006
Question

Parsing XML with more than one Declaration

  • May 9, 2006
  • 2 replies
  • 302 views
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/
This topic has been closed for replies.

2 replies

Inspiring
May 11, 2006
Look up XML.onData. You can manipulate the raw string and then call the
parseXML method.


"gaurav_ch" <webforumsuser@macromedia.com> wrote in message
news:e3udth$nd0$1@forums.macromedia.com...
> hi,
>
> i think there is no way to do that. what i would suggest you is that use
a
> simple notepad for creating your xml and not microsoft office. by doing
this
> you will decrease your work and time taken.
>
> gaurav.
>


Known Participant
May 11, 2006
hi,

i think there is no way to do that. what i would suggest you is that use a simple notepad for creating your xml and not microsoft office. by doing this you will decrease your work and time taken.

gaurav.