Oxygen XML Editor
 
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] save specific nodes from the tree and form a xml


Subject: [xsl] save specific nodes from the tree and form a xml
From: "Senthil Nathan" <rsennat@xxxxxxxxx>
Date: Wed, 5 Sep 2007 12:05:45 +0530

Hi All,
Suppose orig.xml is as below,
<Root>
    <Parent>
         <Child1 Apply="1">
              <Value>100</Value>
         </Child1>
         <Node2>
               <Value>0</Value>
         </Node2>
     </Parent>
</Root>

I need to save only the nodes which has the flag "Apply=1" along with
the complete hierarchy in another xml file. And not its other
children.

-->new.xml would be as,
<Root>
    <Parent>
         <Child1 Apply="1">
              <Value>100</Value>
         </Child1>
     </Parent>
</Root>

I just used a simple example here. Actually the original xml file will be
a large file.

Please let me know, how the xslt has to be, to transform the orig.xml
to new.xml.

Thanks
Senthil


Current Thread
 
© 2002-2008 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy
This website was created & generated with <oXygen/> XML Editor
Keywords