create in-memort rdf for populating multi-level XUL tree

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

create in-memort rdf for populating multi-level XUL tree

stevengpn
Hi, there

I got probelm to populate a XUL tree with an in-memory rdf data source.
All sapmle code I've seen so far were just created a tree with only
just one top level (eg:
http://in.geocities.com/skexz/tuts/xul/in-memory.htm). Is anyone knows
how to create a in-memort rdf with structure like below (two levels):

<?xml version="1.0"?>
<RDF:RDF xmlns:RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
         xmlns:ANIMALS="http://www.mediaflex.co.nz/rdf#">

   <!-- resources -->
   <RDF:Description RDF:about="http://www.mediaflex.co.nz/Account">
     <ANIMALS:name>Account</ANIMALS:name>
   </RDF:Description>

   <RDF:Description RDF:about="http://www.mediaflex.co.nz/User">
     <ANIMALS:name>User</ANIMALS:name>
   </RDF:Description>

  <RDF:Description RDF:about="http://www.mediaflex.co.nz/birds/emu">
         <ANIMALS:name>Emu</ANIMALS:name>
  </RDF:Description>

<!-- structure -->
  <RDF:Seq RDF:about="http://www.mediaflex.co.nz/Account">
       <RDF:li>
              <RDF:Seq RDF:about="http://www.mediaflex.co.nz/User">
                        <RDF:li RDF:resource="http://www.mediaflex.co.nz/birds/emu"/>
              </RDF:Seq>
           </RDF:li>
  </RDF:Seq>
</RDF:RDF>

Big Thank You!
Steve

_______________________________________________
Mozilla-rdf mailing list
[hidden email]
http://mail.mozilla.org/listinfo/mozilla-rdf