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 21:53

> Load-XML: function [
'Load-XML can't handle multiple content and elements. For example: 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> } probe X: load-XML XML [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"]]]
>> x/document/h
== "Heading"
>> x/document/p
== [#class "Initial" "Hi this is a" b "bold" "paragraph."] Access to second 'p is a bit tricky... Andrew J Martin ICQ: 26227169 http://www.rebol.it/Valley/ http://valley.orcon.net.nz/ http://Valley.150m.com/