W3C home > Mailing lists > Public > xmlschema-dev@w3.org > November 2001

A special schema

From: Ravin Shah <Ravin.Shah@morganstanley.com>
Date: Wed, 7 Nov 2001 13:55:37 -0500 (EST)
Message-ID: <3BE98395.9AF69114@morganstanley.com>
To: xmlschema-dev@w3.org

Hi guys...

I need to write a schema file that will validate any xml file.  At
least, this is what I think i need.

I am writing a program that uses a parser to build DOM documents.  In
particular, I am using SAXBuilder to build the documents from XML
files.  For some of these documents, I have schema files to validate
them against.  These schemas are mapped in the Entity Resolver.

For the documents that don't need to validated, I just want the parser
to validate it against a dummy schema file that accepts anything.  Right
now, it tries to validate it and for generates an error for each tag in
the XML file.

If I knew whether or not the XML file needed to be validated before
hand, I would just set up the SAXBuilder accordingly.  I do not know
this before hand because xml documents that need to be validated will
hold that information in the first tag and I can't see that before
parsing.

Any help would be appreiated.

Thanks in advance
Received on Friday, 9 November 2001 04:03:29 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 6 December 2009 18:13:35 GMT