Hello!

I am wondering if anyone knows of a way to start parsing an XML-file and giving the corresponding DTD or XML Schema definition as input, with the purpose of somehow making Xerces automatically use a separate callback method for each element. Suppose this is the XML file:

<TAG1>…</TAG1>

<TAG2>…</TAG2>

 

If the DTD specifies this then I want Xerces to automatically provide and call callback methods startTAG1() and startTAG2(), instead of just calling startElement() with me having to specify lots of conditions to find out which tag it was.

 

Does anyone know if this is possible? I am new to Xerces so if this is trivial please tell me anyway J.

 

Best regards

 

Martin Gülich
Research Engineer
______________________________

Swedish Defence Research Agency
Dept. Of Systems Modelling
SE-172 90
Stockholm, Sweden

Phone: +46 8 55503691
Company web site: www.foi.se

 

Reply via email to