General
Look at my general utilities in metcarob.com.personalservices.library.db.XMLUtilities
This includes saving XML document to string
Simple read XML data
-
"<test xmlns='abc'>" +
-
"<item>1</item>" +
-
"<item>2</item>" +
-
"<item>3</item>" +
-
"</test>";
-
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
-
dbf.setNamespaceAware(true);
-
Document doc;
-
try {
-
doc = dbf
-
.newDocumentBuilder()
-
-
NodeList nl;
-
nl = node.getElementsByTagNameNS("abc","item");
-
for(int c=0;c<nl.getLength();c++) {
-
}
-
} catch (ParserConfigurationException e) {
-
} catch (SAXException e) {
-
}
RJM Article Type
Work Notes