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

RE: Converting One XML to another

Subject: RE: Converting One XML to another
From: timw@xxxxxxx
Date: Wed, 5 Sep 2001 15:41:56 +1000
converting one xml to another
Hi Yash,

You could use XSLT... I think that would be the general advice of this list.
In fact that is the very thing XSL is created to do.

If you could be a bit more specific, I am sure there will be lots of people
willing to help out.

Prehaps you need to do a bit of reading first, and find a parser to do the
transformation.

Tim

PS.  here is a basic start for you to work from...

<?xml version="1.0" encoding="UTF-8"?>
<xsl:output method="xml"/>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format">

<xsl:template match="/">
	... the bit you want to do in here - with the subtree selected which
you want to copy ...
	<xsl:copy-of select="subtree" />
</xsl:template>

</xsl:stylesheet>



> -----Original Message-----
> From: Yash [mailto:yashdeep@xxxxxxxxxxx]
> Sent: Wednesday, 5 September 2001 3:12 PM
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  Converting One XML to another
> 
> 
> Hi,
> Sorry, this might seem like a newbie question. I want to 
> convert a given XML
> to another XML, replacing only a subtree of the previous XML. 
> Could you give
> me a way to go about it.
> Thanks,
> Yash.
> 
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.