[android-developers] Re: Android DOM implementation issues

2009-05-21 Thread Mariano Kamp
So what is it you're asking for DOM or SAX? Android uses standard classes for both cases. Maybe you should run your samples on a standard sdk just for comparison? startElement() is SAX, not DOM. I also don't get the major issue. In XML attributes cannot have children. So you probably mean

[android-developers] Re: Android DOM implementation issues

2009-05-21 Thread Mariano Kamp
A DOM parser uses SAX to built up the tree, but you don't have to do that yourself. DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); DocumentBuilder builder = dbf.newDocumentBuilder(); Document d = builder.parse(new InputSource(Your Input Stream / Reader / Whatever

[android-developers] Re: Android DOM implementation issues

2009-05-21 Thread Mariano Kamp
No, not Xerces.I don't remember exactly, I think there is org.apache.harmony.something stuff and kxml. Yeah, I could dig it up, but you could probably too. You are at your machine? Try someNodeOrWhateverRelevantInstanceYouHaveInYourHand.getClass().getName(). On Thu, May 21, 2009 at 9:43 AM,

[android-developers] Re: Android DOM implementation issues

2009-05-21 Thread Mariano Kamp
same here ;-) On Thu, May 21, 2009 at 9:56 AM, Jason Proctor ja...@particularplace.comwrote: my dev environment is at work. i'll have to dig into it more in the morning. thanks for the responses. j No, not Xerces. I don't remember exactly, I think there is

[android-developers] Re: Android DOM implementation issues

2009-05-21 Thread Mike Hearn
http://android.git.kernel.org/?p=platform/dalvik.git;a=tree;f=libcore/xml/src/main/java;h=a4ef5269036bd62eb79c8d2f418f2baf05a383cf;hb=refs/heads/master As to why it's incompatible, I don't know, looking at the code removing children of Document should work. I guess you could either work around

[android-developers] Re: Android DOM implementation issues

2009-05-21 Thread Urs Grob
I'm not sure if this is what you're looking for and I never tried it myself. Try setting the property 'javax.xml.parsers.DocumentBuilderFactory' to your own implementation of the DocumentBuilderFactory. The DocumentBuilderFactory.getInstance first tries to load a class by name that's stored in