Receiving Namespace Mappings
By default, namespace declaration attributes such as xmlns="http://ns.cafeconleche.org/Orders/" and xmlns:xlink="http://www.w3.org/1999/xlink" are not included in the list of attributes passed to startElement(). Instead each such namespace declaration attribute is signaled by a call to startPrefixMapping() immediately before the startElement() call corresponding to the element start-tag where the declaration appears. Furthermore, the endElement() call corresponding to the end-tag of that element is immediately followed by an endPrefixMapping() call.
public void startPrefixMapping (String prefix, String uri) throws SAXException public void endPrefixMapping (String prefix) throws SAXException
Ninety percent these ...
Get Processing XML with Java™: A Guide to SAX, DOM, JDOM, JAXP, and TrAX now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.