| Author |
Take two xml documents and join them using Xalan as the parser
|
JayaSiji Gopal
Ranch Hand
Joined: Sep 27, 2004
Posts: 303
|
|
Hi! I have two xml documents with me. I need to take the data from the two documents and make a single document out of them, Is there any way to do this? meanwhile, we have been recommended to use XALAN as the parser in our project. Is the above possible using this parser? Any links or code snippets would be helpful!
|
SCJP 1.4, SCWCD 1.4<br /> <br />Thanks in advance!<br />Jayashree.
|
 |
Madhav Lakkapragada
Ranch Hand
Joined: Jun 03, 2000
Posts: 5040
|
|
The only thing I can say based on your explanation is - yup, its doable. Some links...uhhhh....the only links I can come-up with are those to the DOM tutorials. There probably is no ready solution, but hope this gives you a starting point in case you are not familiar with DOM. - m
|
Take a Minute, Donate an Hour, Change a Life
http://www.ashanet.org/workanhour/2006/?r=Javaranch_ML&a=81
|
 |
Lasse Koskela
author
Sheriff
Joined: Jan 23, 2002
Posts: 11962
|
|
|
It would help if we'd know more about what kind of a merge is needed, i.e. what kind of documents these are and what should the resulting combined document look like.
|
Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
|
 |
Honour Cook
Greenhorn
Joined: Nov 01, 2004
Posts: 9
|
|
Can you use XSLT? I know in XSLT stylesheet you can include another xml document and manipulate it. Basically, you can use one of the xml as the source data for your xslt. In xslt include the second xml, so after the transformation, you could get data from two xml files into one document. Cheers, Honour
|
 |
 |
|
|
subject: Take two xml documents and join them using Xalan as the parser
|
|
|