XML Development

Moderators: None (Apply to moderate this forum)
Number of threads: 257
Number of posts: 456

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Problem when appending two xml Posted by gantait on 26 Nov 2006 at 11:34 PM
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..
<head><script language="JavaScript" src="JS/Start.js"></script><SCRIPT LANGUAGE="JavaScript">........

The problem is ..after appending that two document ..
<META http-equiv="Content-Type" content="text/html; charset=UTF-8"> ..
tag is cooming with out closing autometically
same for <img...> also..
may be the META is comming for script tag ...but wby the <img> does't get the end tag???? in the xml <img> is under <td>.
and in the original xml nowrap was like that <td nowrap="nowrap"> or <td nowrap=""> as per the xsl sheet ..but in the final xml which is the addition of the two xml tag is comming like this...<td nowrap>..with out any value.

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




 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.