简体   繁体   中英

How can I serialize a dom element to xml in the android sdk?

org.w3c.dom.Element to String(XML)?

The typical use of LSSerializer does not work as there is no implementation available in android.

Any ideas?

That seems to depend on what api level you are targeting. If it is 8 or above, see the plugminds answer to a related question https://stackoverflow.com/a/3551691/1148030

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM