File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes XML and Related Technologies and the fly likes Create XML using Xpath in Java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Create XML using Xpath in Java" Watch "Create XML using Xpath in Java" New topic

Create XML using Xpath in Java

Gaurav Kr. Arora
Ranch Hand

Joined: Feb 20, 2011
Posts: 37

I have XPAth strings and the values for each node which are present in an arraylist object. The requirement is to create a XML document using these. How can I go about this? If there is any utility function available for this, it would be great if you can share it with me.

William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13036
We just had a similar discussion. Is this some kind of meme going around?

Drew Liscomb

Joined: Sep 20, 2010
Posts: 7
Maybe there's a homework assignment due.
I agree. Here's the link:
subject: Create XML using Xpath in Java
It's not a secret anymore!