casperovjp
Programmer
I'm trying to parse an XML string into a XMLDoc (so I could transform it using an XSL doc).... I was able to do it with a XML File but a XML string... I found out that I need an InputSource and a String Reader... But I don't know how to put them together....
Here is the first part of the code....
transformerFactory = createObject("java", "javax.xml.transform.TransformerFactory"
factory = transformerFactory.newInstance();
DocumentBuilderFactory = createObject("java", "javax.xml.parsers.DocumentBuilderFactory"
docBuilderFactory = DocumentBuilderFactory.newInstance();
docBuilder = docBuilderFactory.newDocumentBuilder();
InputSource=createObject("java","org.xml.sax.InputSource"
StringReader=createObject("java","java.io.StringReader"
/* this is the problem */
xmlDoc = docBuilder.parse(InputSource(StringReader(#tempxml#)));
Here is the first part of the code....
transformerFactory = createObject("java", "javax.xml.transform.TransformerFactory"
factory = transformerFactory.newInstance();
DocumentBuilderFactory = createObject("java", "javax.xml.parsers.DocumentBuilderFactory"
docBuilderFactory = DocumentBuilderFactory.newInstance();
docBuilder = docBuilderFactory.newDocumentBuilder();
InputSource=createObject("java","org.xml.sax.InputSource"
StringReader=createObject("java","java.io.StringReader"
/* this is the problem */
xmlDoc = docBuilder.parse(InputSource(StringReader(#tempxml#)));