从InputStream创建一个包含xml数据的xml文档。有可能吗?
答案 0 :(得分:1)
不确定您的意思,但请查看DocumentBuilder的文档。
答案 1 :(得分:1)
xydev
使用此Xmlserializer
XmlSerializer serializer = Xml.newSerializer ();
StringWriter writer = new StringWriter ();
serializer.setOutput (writer);
serializer.startDocument ("UTF-8", true);
serializer.startTag ("", "xmlresponse");
serializer.startTag ("", "employee");
serializer.attribute ("", "id", "1456");
serializer.endTag ("", "employee");
.....
我希望你能挖出休息
祝你好运!