Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
| Search | Today's Posts | Mark Forums Read
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old August 10th, 2005, 02:58 PM
Registered User
 
Join Date: Aug 2005
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default creating a structured xml from an unstructured xml

example xml file

-"<"root">"
    -"<"a">"yo"<"/a">"
        -"<"a">"start"<"/a">"
    -"<"a">"me"<"/a">"
    -"<"a">"R[1]"<"/a">"
    -"<"a">"R[2]"<"/a">"
    -"<"a">"me"<"/a">"
    -"<"a">"R[3]"<"/a">"
    -"<"a">"stop"<"/a">"
    -"<"a">"woo"<"/a">"
-"<"/root">"

what i need is to start reading the xml file when 'start' is read from the node
and stop when 'stop' is read from the node, when me is there make it a parent node to items containing R[x].

output trying to achieve...

-"<"root">"
 -"<"a">"me
   -"<"b">"R[1]"<"/a">"
   -"<"b">"R[2]"<"/a">"
 -"<"/a">"
 -"<"a">"me
   -"<"b">"R[3]"<"/a">"
 -"<"/a">"
-"<"/root">"

thanks



Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating XML doc ; writing string(xml format) into KamalRaturi XML 5 May 28th, 2008 05:51 AM
Help in making a FLAT xml to a structured xml shlomi XSLT 0 July 19th, 2007 07:58 AM
Creating DataSet/DataTable from XML hhmoeller XML 4 March 22nd, 2006 10:41 AM
block structured &structured prog mohan_exp Intro Programming 1 January 23rd, 2006 01:18 PM
xml xslt css structured web site mlaba XSLT 0 September 17th, 2004 07:00 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.