Jump to content

Importing xml into xml


Khisanth Magus

Recommended Posts

I"m sure that the answer to this is going to be either a simple "its not possible", or something that will make me want to bang my head on the desk for not realizing myself.I am working in exporting Java classes to XML. It is working well enough, but I ran into something. Is there a way to import one xml file into another xml file? Essentially I have 2 different types of java classes I want to export. One class has a list of the other class inside of it. So, instead of defining all of the information again in the castor mapping, I want to import the xml from the one file to be used in its parent file.I hope this made some sense...basically I just want to import one XML file so what is in that file is usable in another XML file.

Link to comment
Share on other sites

You can create an XSLT file that would copy-of the contents of the imported file, after first having the contents of the main file.Oh... let's just say: learn XSLT.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...