gnu.xml.pipeline
public class NSFilter extends EventFilter
This filter uses a heuristic to choose the prefix to assign to any particular name which wasn't already corectly prefixed. The associated namespace will be correct, and the prefix will be declared. Original structures facilitating text editing, such as conventions about use of mnemonic prefix names or the scoping of prefixes, can't always be reconstructed after they are discarded, as strongly encouraged by the current SAX2 defaults.
Note that this can't possibly know whether values inside attribute value or document content involve prefixed names. If your application requires using prefixed names in such locations you'll need to add some appropriate logic (perhaps adding additional heuristics in a subclass).
Version: $Date: 2001/11/09 22:53:17 $
Constructor Summary | |
---|---|
NSFilter(EventConsumer next)
Passes events through to the specified consumer, after first
processing them.
|
Method Summary | |
---|---|
void | endDocument() |
void | endElement(String uri, String localName, String qName) |
void | endPrefixMapping(String prefix)
This call is not passed to the next consumer in the chain.
|
void | startDocument() |
void | startElement(String uri, String localName, String qName, Attributes atts) |
void | startPrefixMapping(String prefix, String uri)
This call is not passed to the next consumer in the chain.
|
Parameters: next the next event consumer to receive events.
Source code is under GPL (with library exception) in the JAXP project at http://www.gnu.org/software/classpathx/jaxp
This documentation was derived from that source code on 2013-01-12.