Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: Complex Series Parsing (Part 2)

From: petr:krenzelok:trz:cz at: 9-Mar-2001 13:06

----- Original Message ----- From: Terry Brownell <[depotcity--home--com]> To: <[rebol-list--rebol--com]> Sent: Friday, March 09, 2001 10:25 AM Subject: [REBOL] Re: Complex Series Parsing (Part 2)
> This is on the right track. But more complexity would arise... here is an > advanced XML structure... > > y: [<tag0></tag0> <text> this and that <tag1>those </tag1>and > these</text><tag2></tag2><text>There and then</text>] > output would be... > out: [ > <tag0> > </tag0> > <text> this and that > <tag1> > <text> those > </tag1> > <text> and these > </text> > <tag2> > </tag2> > <text> There and then > </text> > ]
I am sorry but I can't understand the reason you want the input in above state. It's imo buggy. So you manually insert <text> tag in fron of each text, while real <text> tag exists too? Just look at your output - you have 3 <text> tags while you have only one closing </text> tag. Is that correct? -pekr-