如何把符合xml的String转成document对象_百度知道
最佳答案: 先用 StringReader stringReader = new StringReader(Str); InputSource inputSource = new InputSource(stringReader) DocumentBuilder documentBuilder = ...更多关于如何将xml的document对象转换成InputStream对象?的问题>>
java中xml的Document对象怎么转成String形式_百度知道
最佳答案: /*** * 将Document对象转换成String * @param document * @return */ public String transformXMLToString(Document document) { try { ...更多关于如何将xml的document对象转换成InputStream对象?的问题>>
如何将xml的document对象转换成InputStream对象_百度知道
最佳答案: new StringReader(doc.asXML()) 可以得到一个Reader new ByteArrayInputStream(doc.asXML().getBytes("utf-8")) 可以得到一个InputStream 如果我的回答...更多关于如何将xml的document对象转换成InputStream对象?的问题>>