Solved

Hi i want to copy a node from xml file B and need to paste this node in xml file A,iwant todo with JDOM JAVA

Posted on 2006-11-16
3
201 Views
Last Modified: 2010-04-17
file A.XML
<XML>
<TP>
<FF>
</FF>
</TP>
</XML>


file B.XML

<XML>
<TP>
<GG>
</GG>
</TP>
</XML>


I WANT TO PASTE node GG in b.xml to a.xml like this

<XML>
<TP>
<FF>
                <GG>
               </GG>
</FF>
</TP>
</XML>

i WISH TO DO THIS WITH JDOM and JAVA .
Please let me know how to do this ....
i dont want to use XSL OR XSLT ...

i am free for discussions...pls help me
ciao


0
Comment
Question by:futurelogix
3 Comments
 
LVL 7

Accepted Solution

by:
Chandan_Gowda earned 300 total points
ID: 17994768
Using xpathnavigator class and clipboard object u can achieve this
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Displaying an arrayList in a listView using the default adapter is rarely the best solution. To get full control of your display data, and to be able to refresh it after editing, requires the use of a custom adapter.
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now