Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > XML > XSLT
Password Reminder
Register
| FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #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

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 08:04 PM.


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