Hi Giuseppe,
I think it's because the Namespaces feature is turned off. If you look at the documentation for the ContentHandler.startElement method [1], the parameters are described as follows:
public void startElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName,
Attributes atts)
throws SAXException
Parameters:
uri - The Namespace URI, or the empty string if the element has no Namespace URI or if Namespace processing is not being performed.
localName - The local name (without prefix), or the empty string if Namespace processing is not being performed.
qName - The qualified name (with prefix), or the empty string if qualified names are not available.
atts - The attributes attached to the element. If there are no attributes, it shall be an empty Attributes object.
I hope that helps.
Thanks,
Henry
[1] http://www.megginson.com/SAX/Java/javadoc/index.html
------------------------------------------------------------------------
Henry Zongaro XML Parsers development
IBM SWS Toronto Lab Tie Line 778-6044; Phone (416) 448-6044
mailto:[EMAIL PROTECTED]
Please respond to [EMAIL PROTECTED]
To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
cc:
Subject: Validation false.
Hi I,m using a SAX parser with this features:
parser.setContentHandler( PsHan );
parser.setFeature("http://xml.org/sax/features/validation",false);
parser.setFeature("http://xml.org/sax/features/namespaces",false);
but apparently the setContentHandler doesn't behave as it should.
for example the LocalName in the StartElement function is a blanck string.
Is it because the validation rule is off.
Will the setContentHandler work if this rule is off ?
cheers.
