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

[REBOL] Re: Rebol & XML

From: AJMartin:orcon at: 6-Aug-2003 22:31

Bryan wrote:
> How's it handling instances of nodes with the same name, and multiple text
nodes interlaced in the tree, Given this XML: XML: {<?xml version="1.0"?> <document> <h>Heading</h> <p class="Initial">Hi this is a <b>bold</b> paragraph.</p> <p>this is a <span>stuff</span> paragraph</p> </document> } 'Load-XML produces: [xml [#version "1.0"] document [h "Heading" p [#class "Initial" "Hi this is a" b "b old" "paragraph."] p ["this is a" span "stuff" "paragraph"]]] Which is OK for text processing, I feel.
> also I've put in a processing instruction, the idea behind processing
instructions is that they can be used to pass info to the processor, so in this case I put in some simple rebol code as an example PI :
> <?rebol-process call: "stringvalue" print call?>
I haven't seen this before now. Is it something you've just thought of (and so we can change it to better suit Rebol and users)? Or is this related to some XML standard? If it's something we can change, I think I'd like to see it as: <?Rebol [print 3.14159]?> Or perhaps I've misunderstood? I tried your example: XML: { <?xml version="1.0"?> <doc> here's some text <p>para 1</p> <p>para 2</p> here's some more text <p:p xmlns:p="">not a para</p:p> </doc> } and discovered that 'Load-XML doesn't handle tags in a name-space. :( Andrew J Martin ICQ: 26227169