XML Cleaner

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Matthew Wieder (Development_at_SatoriGroupInc.com)
Date: 04/20/04


Date: Tue, 20 Apr 2004 11:06:49 -0400

I was hoping that someone could point me in the right direction. I'm
looking to develop a tool that will run an XML file against an XSD
schema and if a node doesn't conform to the schema, remove that node
from the xml (or output a new xml without that node) and continue
through the whole document until it is "Clean" (valid).
The code to validate against the schema is strightforward, but how do I
use the exceptions thrown by the XmlValidatingReader to clean the XML file?
thanks!



Relevant Pages

  • Re: xsd.exe cannot generate schema
    ... xsd.exe cannot generate a schema from such an xml file. ... For example, write the XSD like ...
    (microsoft.public.dotnet.xml)
  • Re: xsd.exe cannot generate schema
    ... thought it should be dealt with by default by any schema inferencing tool ... The reason I ask is that BizTalk makes a lot of use of xsd schemas. ... xsd.exe cannot generate a schema from such an xml file. ... >> The xml file has a mix of defined namespaces and also an empty namespace. ...
    (microsoft.public.dotnet.xml)
  • Crystal Does not see XML Schema..
    ... I am downloading creating an xml file and its schema from a webservice ... when i add the xsd file to the project, the Crystal 'Database Expert' ...
    (microsoft.public.vb.crystal)
  • Re: Decimal Type in a XSD Schema and problems with DataAdapter
    ... for the element in the schema) if you want the empty elements to valdiate ... against the schema. ... the type of guarantyPercent is decimal. ... > In the XML file the guarantyPercent can be empty: ...
    (microsoft.public.dotnet.xml)
  • Parsing XML against multiple complex XSD
    ... I have an XML file that I need to validate in code ... The schema definition is spread accross multiple XSD files ...
    (comp.lang.java.programmer)