TDAT: protected Document toDocument(String value) throws Exception { | |
org.apache.xerces.parsers.DOMParser parser = new org.apache.xerces.parsers.DOMParser(); | |
parser.setFeature("http://xml.org/sax/features/namespaces", true); | |
StringReader reader = new StringReader(value); | |
parser.parse(new InputSource(reader)); | |
reader.close(); | |
return parser.getDocument(); | |
} | |
COM: <s> convert xml string value to dom </s> | |