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

[REBOL] Re: Subobjects?

From: dan:rolander:marriott at: 28-Dec-2000 15:17

Thanks Andrew. But I'm trying to figure out how to use Christian Ensel's xml-processor.r (which I believe you had some comments on in November) and I'm having some difficulty navigating the object tree. Using his xml-test.xml I get this:
>> probe xml/the-document
make object! [ name: none attrs: [] content: [ make object! [ name: "space:name" attrs: [] content: ["^/ This is some text typed by " "Christian Ens el" ".^/ " make object! [ name: "che:money" attrs: [ make object! [ name: "xmlns:che" value: "http://www.foo.bar" ] make object! [ name: "che:amount" value: "0.02" ] make object! [ name: "che:currency" value: "USD" ]] content: ["^/ My two cents?!?^/ " make object! [ name: "element" attrs: [ make object! [ name: "attribute" value: "<1>" ]] content: [] ] "^/ "] ] "^/"] ]] ]
>>
I can probe xml/the-document/name, xml/the-document/attrs, and xml/the-document/content, but nothing below that. What am I doing wrong? Thanks, Dan