how to create in-memory rdf datasource (multi-level) for a XUL tree?
[email protected] 16 Nov 2005 01:45:18 -0800
| Newsgroups | gmane.comp.mozilla.devel.rdf |
|---|---|
| Organization | http://groups.google.com |
| Message-ID | <[email protected]> |
Hi, there
I got problem 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-memory rdf datasource 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