A special schema

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 UTC