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

[REBOL] Rebol and XML processing

From: reffy::ulrich::net at: 8-Sep-2002 9:58

What can Rebol do with XML? Is there a native type for XML in Rebol? The following snipped from the XPS language? It internalizes xml object as a vector of vectors on the assignment. data = <!--xml <Products> <Item> <Name>Apple</Name> <Description>Japan-import Big Red Apple</Description> <Unit-Price>5.70</Unit-Price> <Inventory>1200</Inventory> <Inventory-Safe-Level>1000</Inventory-Safe-Level> </Item> <Item> <Name>Orange</Name> <Description>Juicy Sweet Orange</Description> <Unit-Price>0.45</Unit-Price> <Inventory>800</Inventory> <Inventory-Safe-Level>1000</Inventory-Safe-Level> </Item> <Item> <Name>Watermelon</Name> <Description>Yellow-meat Juicy Melon</Description> <Unit-Price>2.05</Unit-Price> <Inventory>250</Inventory> <Inventory-Safe-Level>200</Inventory-Safe-Level> </Item> </Products> xml-->; Then this one from gslgen utility: <?xml version="1.0"?> <INSTALL script="install.gsl"> <FILE name="gslgen.exe" type="binary" /> <FILE name="gslgen.htm" type="doc" /> <FILE name="install.gsl" type="script" /> <FILE name="hello.gsl" type="script" /> </INSTALL> Notice in the second one that the values must be quoted. Dick