Click to See Complete Forum and Search --> : Reference XML to other XML


vel_nagaraj
07-16-2008, 03:23 AM
I have multiple xml files with xml schema element. I need to call all xml files into single xml file (Driver File) and parse the driver xml file at once to save the parsing time. Please suggest me, is there any possiblilty to do this.

bogocles
07-16-2008, 12:40 PM
There are many ways to do this, but I'm sure all of them require more than just a knowledge of XML. I do something similar on a pretty regular basis, but I do it through a custom application in .NET.

You're going to need access to an actual programming language, preferably one that implements the XML DOM. Once you've got that, you can use the DOM to create an empty XML document, and then add all of your external documents as XML fragments to it during runtime. From there you'll have a well-formed composite XML document that you can either save or just parse and act upon.

Some languages that implement the XML DOM out of the package:


PHP
JavaScript
.NET
Java
Python


I might be wrong on some of those, and there are probably others, but you get the picture. Beyond that, become familiar with the XML DOM. Understanding the DOM is essential to XML development.