Hi all,

I have a problem with the SAX-Parser and getting attributes which are
references...
############
<item id="2833670" generation_time="2009-01-15T21:09:09+0"
version_number="4" start_time="2009-01-15T19:45:36+0"
stop_time="2009-01-16T21:57:32+0" factor="&rtm31_4;">
############

in startElement(...) attributes correctly indicates the existence of 6
elements
I can get all attributes using i.e. final String startTime =
attributes.getValue("", "start_time");
except the last one ( factor="&rtm31_4;" )
Where:
############
 attributes.getValue("factor");
// or
attributes.getValue("", "factor");
############
always returns "" (empty string)
it seems like the Entity-Reference is not being resolved =(

If I set an EntityResolver:
############
myXMLReader.setEntityResolver(new EntityResolver(){
    public InputSource resolveEntity(...) {
    }
}
############
It NEVER gets called :(

The same code worked in Desktop-Java, all Entities were resolved via
the EntityResolver.

Any ideas? I've spent half a day on this issue alreade =(

Best Regards,
plusminus
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to