Jason, The SAXParser has a constructor [1] which takes an XMLParserConfiguration as a parameter. You could create the parser using this constructor and still get the benefit of pull parser configuration if you call the setupInputSource() and parse() method on the parser configuration (instead of the parser() method on the SAXParser). The configuration will send the document events to the SAXParser which will in turn be reported to your ContentHandler.
Hope that helps. [1] http://xerces.apache.org/xerces2-j/javadocs/xerces2/org/apache/xerces/parsers/SAXParser.html#SAXParser(org.apache.xerces.xni.parser.XMLParserConfiguration) Michael Glavassevich XML Parser Development IBM Toronto Lab E-mail: [EMAIL PROTECTED] E-mail: [EMAIL PROTECTED] Jason <[EMAIL PROTECTED]> wrote on 10/31/2005 12:51:13 PM: > Michael, > > Thanks again. I was slightly misled by the names > ending with 'Configuration' in that I thought they > should somehow be used to configure a parser rather > than to act as a parser themselves. In any event, I > think I've finally got things straightened out. Just > to make sure I'm not confused: if I'm using the xni > PullParserConfiguration I have to use the > xni.XMLDocumentHandler class in order to get my > callbacks rather than the normal ContentHandler. Is > that true or is there some way to use ContentHandler > in conjunction with a pull parser? Thanks again for > your help. > > -jason --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
