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
|
- Use DTD/XSD with startElement? Martin Gülich
- Re: Use DTD/XSD with startElement? Simon Kitching
- Re: Use DTD/XSD with startElement? Jeff Greif