Serialize DOM to FileOutputStream using Xerces

后端 未结 2 518
难免孤独
难免孤独 2020-12-17 22:00

I am using this link to generate XML file using DOM. It says that \"Xerces parser is bundled with the JDK 1.5 distribution.So you need not download the parser separately.\"<

2条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-17 22:15

    It will be in, IIRC, com.sun.org.apache.xml.serialize.XMLSerializer. However, those are private classes and likely to change at any time. I suggest using the standard public APIs (javax.* and friends) instead. (Use the transform API without any XSLT.)

提交回复
热议问题