[REBOL] load/markup/some - wouldn't it be nice?
From: ryan::christiansen::intellisol::com at: 12-Apr-2001 10:50
Currently, load/markup behaves as such:
>> example-string: {<tag1>something<tag2>more</tag2></tag1>}
== "<tag1>something<tag2>more</tag2></tag1>"
>> resulting-string: load/markup example-string
== [<tag1> "something" <tag2> "more" </tag2> </tag1>]
>> resulting-string/<tag1>
== "something"
>> resulting-string/<tag2>
== "more"
>>
Wouldn't it be nice if you could name the tags load/markup should parse so
that it would preserve nested tags?
For example:
>> example-string: {<tag1>something<tag2>more</tag2></tag1>}
== "<tag1>something<tag2>more</tag2></tag1>"
>> resulting-string: load/markup/some example-string <tag1>
== [<tag1> "something <tag2> more </tag2>" </tag1>]
>> resulting-string/<tag1>
== "something <tag2> more </tag2>"
>> resulting-string/<tag2>
** Script Error: Invalid path value: <tag2>
** Near: resulting-string/<tag2>
>>
Ryan C. Christiansen
Web Developer
Intellisol International
4733 Amber Valley Parkway
Fargo, ND 58104
701-235-3390 ext. 6671
FAX: 701-235-9940
http://www.intellisol.com
Global Leader in People Performance Software
_____________________________________
Confidentiality Notice
This message may contain privileged and confidential information. If you
think, for any reason, that this message may have been addressed to you in
error, you must not disseminate, copy or take any action in reliance on it,
and we would ask you to notify us immediately by return email to
[ryan--christiansen--intellisol--com]