Hi,

 

I had a question regarding parsing of XML files using XML Xerces Parser.
Actually I am importing an XML file using a tool named "Webtop", and
after exporting it from the tool, size of the XML file gets reduced and
it makes small change to the file that is exported.

 

Original file has (before importing to Webtop) : <?xml version="1.0"
encoding="UTF-8"?>

<?xml-stylesheet type="text/xsl"
href="http://www.fda.gov/oc/datacouncil/stylesheets/spl/spl.xsl";?> 

<document xmlns="urn:hl7-org:v3" xsi:schemaLocation="urn:hl7-org:v3
http://www.fda.gov/oc/datacouncil/schemas/spl/spl.xsd";
xmlns:voc="urn:hl7-org:v3/voc"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>

 

Exported file from Webtop is: <?xml version="1.0" encoding="UTF-8"?>

<?xml-stylesheet type="text/xsl"
href="http://www.fda.gov/oc/datacouncil/stylesheets/spl/spl.xsl";?><docum
ent xsi:schemaLocation="urn:hl7-org:v3
http://www.fda.gov/oc/datacouncil/schemas/spl/spl.xsd";
xmlns="urn:hl7-org:v3" xmlns:voc="urn:hl7-org:v3/voc"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>

 

It is shuffling the contents of <document> tag and ignores the
whitespace between <?xml-stylesheet?> and <document> tag which can be
seen in original file.

Actually my goal is that both the files should be exactly similar, that
is it should not make any changes after the file is imported, keeping
same contents. 

 

Any help regarding this doubt will be really appreciated.

 

Sincerely,

Amogh Paradkar

 

 

 

**********************************************************************
This e-mail and its attachments may contain Forest Laboratories, Inc. 
proprietary information that is privileged, confidential or subject to 
copyright belonging to Forest Laboratories, Inc. This e-mail is intended solely 
for the use of the individual or entity to which it is addressed. If you are 
not the intended recipient of this e-mail, or the employee or agent responsible 
for delivering this e-mail to the intended recipient, you are hereby notified 
that any dissemination, distribution, copying or action taken in relation to 
the contents of and attachments to this e-mail is strictly prohibited and may 
be unlawful. If you have received this e-mail in error, please notify the 
sender immediately and permanently delete the original and any copy of this 
e-mail and any printout.
  • Parsing Paradkar, Amoug

Reply via email to