This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Merging XML Files
- From: "alexandre bord" <alexandre dot bord at steria dot com>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Tue, 23 Jul 2002 11:56:24 +0200
- Subject: [xsl] Merging XML Files
- Reply-to: xsl-list at lists dot mulberrytech dot com
Hi !
Suppose I have 2 XML files. Their schema is almost the same. For example :
XML 1:
<container>
<grid name="ttt" number="1">
<attribute type="int" order="1" name="foo" required="true"/>
<attribute type="int" order="3" name="bar" required="false"/>
<attribute type="text" order="2" name="foobar" required="true"/>
</grid>
<grid name="ddd" number="2">
<attribute type="int" order="1" name="foo" required="true"/>
<attribute type="int" order="3" name="bar" required="false"/>
<attribute type="text" order="2" name="barfoo" required="true"/>
</grid>
</container>
XML 2 : (less attributes)
<container>
<grid name="ttt" number="1">
<attribute type="int" order="1" name="foo" />
<attribute type="int" order="3" name="bar" />
<attribute type="text" order="2" name="foobar" />
</grid>
<grid name="ddd" number="2">
<attribute type="int" order="1" name="foo" />
<attribute type="int" order="2" name="bar" />
<attribute type="text" order="3" name="barfoo" />
</grid>
</container>
* How could i update XML file #1 whith values from XML file #2, in a
simple manner ?
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list