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 


Download NeoPlanet at http://www.neoplanet.com 

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.

Reply via email to