• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Take two xml documents and join them using Xalan as the parser

 
Ranch Hand
Posts: 303
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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!
 
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
reply
    Bookmark Topic Watch Topic
  • New Topic