Hi,
I am not able to update my XML using xerces parser.
I\'ve got this mail id in Bugzilla of Apache.
The problem is, I am creating an XML file from my program and dynamically changing this XML file according to the change of states in my program. But i am not able to update this XML file when i am using Apache xerces parser. I could manipulate the same XML with sun implementation.
For your Information, here i am giving my sample code
------------------------------------------------------ 1.DocumentBuilderFactory dBFactory= 2.DocumentBuilderFactory.newInstance(); 3.System.out.println("dBFactoryis:"+docBuilderFactory); 4.DocumentBuilder docBuilder = dBFactory.newDocumentBuilder(); 5.System.out.println("docBuilder is : "+docBuilder); //in is inputStream am passing for 6.Document docRequest= docBuilder.parse(in); 7.//Document docRequest= docBuilder.newDocument(); 8.System.out.println("docRequest is : "+docRequest); 9.Element docElement= docReq!
uest.getDocumentElement(); 10.System.out.println("docelement is :"+docElement);
------------------------------------------------------ I am able get the dBFactory and docBuilder in 3 and 5 lines. But it is returning null in line 8 for docRequest. hence am getting null in line 9. so please help this to resolve this problem. Anticipating your response.. Thanks in Advance, Mourya
_____________________________________________________________________
Webdunia Quiz Contest - Limited Time Unlimited Fun.Log on to quiz.webdunia.com and win fabulous prizes.
India's first multilingual mailing system: Get your Free e-mail account at www.epatra.com