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

[REBOL] Navigation in output produced by parse-xml

From: james::calaba::com at: 25-May-2001 17:00

Hi I'm a Rebol newbie - have scanned all the online material and archives but can't find an answer. Please be nice to me! I want to parse an XML document, find an element, and then find some ancestors of that element. Using parse-xml, I can get a structure of blocks. Using the Ryan's 'deep-find' example in other messages, I can traverse the block structure looking for a particular block. But how can I identify the parent of a block, for example? Do blocks have the concept of a parent when nested in other blocks, or should I store the ancestry of blocks as I recurse into a block structure using deep-find? Many thanks if you can help. James Carlyle