Help: Attributes has content but getLengh always retures zero
Hi
I am using SAX parser to read an xml and do sth with it.
in the startElement method
public void startElement(final String uri, final String localName,
final String qName, final Attributes attributes)
throws SAXException {
if qName equals somevalue
then I will copy attributes
Although in eclipse debugger it shows that attributes has one attribute, but when using attributes.getLength it always returns 0
AttributesImpl attr = new AttributesImpl(attributes);
gives me an empty attr.
Any suggustions? Thanks a lot.

