i want to parse xml using dom4j on android platform.
make sure it runs on android 1.0
the xml string:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<sync-pkg>
<feed-meta ctxt-id="111" anchor="222" target="333"/>
</sync-pkg>

codes like this:

import org.dom4j.Document;
import org.dom4j.DocumentHelper;

Document doc = DocumentHelper.parseText(str);
String xstr = doc.asXML();

it confused me a lot.

the xstr is changed to like this:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<sync-pkg>
<feed-meta ctxt-id="111" ctxt-id="222" ctxt-id="333"/>
</sync-pkg>


someone help me!
thanks.


--~--~---------~--~----~------------~-------~--~----~
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