Datasets:
apcl
/

Modalities:
Text
Formats:
webdataset
Libraries:
Datasets
WebDataset
mcmillco's picture
init
e789b06
raw
history blame
419 Bytes
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>