Consider the following input xml document:
<oracle:EMP xmlns:oracle="http://www.oracle.com/xml"/>
...and the following handler:
final class XMLizatorSaxHandler extends DefaultHandler {
@Override
public void startElement(String uri, String localName, String qName,
Attributes attributes) throws SAXException {
System.out.println(uri + "," + localName + "," + qName);
}
}
When using it with a SAXParser
I would expect the following outupt:
uri: http://www.oracle.com/xml
localName: EMP
qName: oracle:EMP
But I get this instead:
uri:
localName:
qName: oracle:EMP
Why? How can I get correct information?