For background info, I am an experienced C/C++ developer, but rather new to XML.
I have downloaded Xerces, build the samples, and have the basics down. The issue I am looking at is as follows : We are tieing into an 3rd party interface, that send XML formated messages over UDP packets. There is more than one message format possible, each with its own specified XML Schema file. So when I get a packet of text in, I do not automatically know which message format it is (i.e. which Schema to use to parse and validate it). Also, they say using a mininal prologue, which I do not expect to contain a Schema reference (and even if it did, this is a closed set of systems and we will each have our own copies of the Schema most like stored in different locations). Now the method I envision would work as follows : 1) Do a non-validating pass with no schema specified. 2) Get the root element from the first pass, use it to determine the actual message type and reparse/validate with the appropriate schema specified. Is this my best method, or is there a way to tell the parser (I intend to use the DOMBuilder class) that there are multiple possible schemas that the XML might parse to (differentiated by root element). Thanks Dale Pennington
