Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - XML Errors >Thread Next - Re: XML Errors Re: XML ErrorsTo: 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) | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
