[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

save specific nodes from the tree and form a xml

Subject: save specific nodes from the tree and form a xml
From: "Senthil Nathan" <rsennat@xxxxxxxxx>
Date: Wed, 5 Sep 2007 12:05:45 +0530
 save specific nodes from the tree and form a xml
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.