English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

2006-11-22 02:06:47 · 2 answers · asked by mohsen_hesaraki 1 in Computers & Internet Programming & Design

how can i read xml file from another xml file?

2006-11-22 02:09:56 · update #1

suppose i want to show 1.xml and 2.xml in 3.xml white 2 combobox(each other in a combobox)...
how i write 3.xsl file to do it

2006-11-22 04:47:10 · update #2

suppose i want to show 1.xml and 2.xml in 3.xml white 2 combobox(each other in a combobox)...
how i write 3.xsl file to do it

2006-11-22 04:49:38 · update #3

2 answers

I'm completely clueless on what you are trying to do...
guess you want to consolidate two files in one?

on the command line, something as simple as
cat file1.xml >> file2.xml should do the trick (that is on linux,
on windows it would be something like type file1.xml >> file2.xml)...

2006-11-22 02:17:03 · answer #1 · answered by Anonymous · 0 1

An xml file is just a data format, by itself it doesn't do anything. Its the XML parser that does all the work.

If your XML parser supports entities, then you can use that to include the contents of one XML file inside another (using external entities: http://www.w3.org/TR/REC-xml/#sec-external-ent )

Basically, in your dtd you'd declare an entity and reference an external xml document with:

SYSTEM "/path/to/include.xml">

and then, in your XML document, you can pull in this xml document by using the entity &include;

The other way, perhaps less supported, is to use XML inclusions ( http://www.w3.org/TR/xinclude/ ). You'd need a pretty modern XML parser to do this

2006-11-22 12:03:19 · answer #2 · answered by Isofarro 3 · 0 0

fedest.com, questions and answers