Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: XML Errors

From: "Joe Fawcett" <joefawcett@-------.--->
To: NULL
Date: 7/1/2004 9:40:00 PM
"Tim Fitzgerald" <tjfitz68@y...> wrote in message 
news:%23tGAXn6XEHA.3044@T......
> Hello everyone,
>
> I have an XML file, which I have no control over, that contains an error
> towards the end of the document. Prior to this problem, I was processing 
> the
> XML file using a XSL template with no problems.
>
> The section of the XML file that I need is intact and correct .. Since 
> there
> is an error, it will not completely process. How do I ignore that and 
> still
> be able to pull the information from the section I need?
>
> Quick example of the XML layout:
>
> <root>
>  <section1>
>     <info>Blah Blah</info>
>  </section1>
>  <section2>
>    <info>Blah Blah</info>
>  <section2>
> </root>
>
> There would be a section3, section4, etc, etc.. Let's say section2 is 
> intact
> but section99 is missing some info. When I say missing some info, I mean
> that it's missing some info that my XSL template expects.. so it fails.
>
> Hopefully I'm making sense.
>
> Thanks,
>
> Tim

If you mean that the "xml" is not well-formed then you will have to use some 
other method, read as a text file perhaps,  and extract the section you want 
first and then use xslt on this. If you mean the xml has the wrong 
structure, it's not valid according to a schema whether physical or just in 
the mind, then you need to show a bit more of the data and what you are 
trying to achieve.

-- 

Joe (MVP - xml) 




transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent