Hi, The implementation of SAXParser seems to encounter problems when it attempts to parse anything with '&'.
Have a look at those threads, if you haven't done so already: http://groups.google.com/group/android-developers/browse_thread/thread/f9a1ce37af6db350/f965528dec77c569#f965528dec77c569 http://groups.google.com/group/android-developers/browse_thread/thread/561e9edee072a175# If you manage to get the correct value, pls update the thread! On Jan 16, 5:23 am, plusminus <stoeps...@gmx.de> wrote: > 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---