Problem when appending two xml - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

Problem when appending two xml

In my program i am taking two xml document by this...

DocumentBuilderFactory domFactoryRead = DocumentBuilderFactory.newInstance();
DocumentBuilder domBuilderRead = domFactoryRead.newDocumentBuilder();
doc = domBuilderRead.parse(firstDoc);
Element rootElement = doc.getDocumentElement();

same for other also..

then taking the nodes of first doc in a vectorlist and appending in the other document as per the logic.
The first xml contain one script tag like..

The problem is ..after appending that two document ..
tag is cooming with out closing autometically
same for image also..
may be the META is comming for script tag ...but wby the image does't get the end tag???? in the xml image is under .
and in the original xml nowrap was like that or as per the xsl sheet ..but in the final xml which is the addition of the two xml tag is comming like this.....with out any value.

The input two xml are perfect but the output is not..
can any body help me to solve this problem..

Sign In or Register to comment.