I have this code that works perfectly in Java SE. How can I make it work in JavaME? These classes are not available in Java ME, CLDC profile. DocumentBuilder, DocumentBuilderFactory, NodeList, DOMSource, StreamResult, TransformerFactory, Transformer.
` DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
try{
DocumentBuilder builder = factory.newDocumentBuilder();
Document doc = builder.parse(new File("C:\\con1.xml"));
Element w3cParent = doc.getDocumentElement();
NodeList list = w3cParent.getElementsByTagName("service");
Node node = list.item(0).getAttributes().getNamedItem("url");
String ip = "192.213.13.0";
node.setNodeValue("http://"+ip+"/Design_Time_Addresses/SOAP11demo/Service1/?wsdl");
DOMSource source = new DOMSource(doc);
PrintStream ps = new PrintStream("C:\\con1.xml");
StreamResult result = new StreamResult(ps);
TransformerFactory transformerFactory = TransformerFactory.newInstance();
Transformer transformer = transformerFactory.newTransformer();
transformer.transform(source, result);
}catch(Exception e)
{}`