Skip to Content.
Sympa Menu

xom-interest - [XOM-interest] XMLFilter and Builder.setupParser(), knownGoodParser()

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Wolfgang Hoschek <whoschek AT lbl.gov>
  • To: xom-interest AT lists.ibiblio.org
  • Subject: [XOM-interest] XMLFilter and Builder.setupParser(), knownGoodParser()
  • Date: Thu, 28 Oct 2004 09:18:35 -0700

Builder.setupParser() and knownGoodParser() do some checks for known parsers ala

if (parser.getClass().getName()) { ... special configure ...}

If the parser is a SAX XMLFilter then this would not really help, so the suggestions is to have the code in these methods check if the parser is an instanceof XMLFilter and walk the parser tree via getParent() until a parser is found that is not an instanceof XMLFilter.

[In practise, the case arises with BuilderFactory.getMSVBuilder which is implemented as an XMLFilter]

Wolfgang.





Archive powered by MHonArc 2.6.24.

Top of Page