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
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
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,
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
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
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
6 matches
Mail list logo