On Sun, 20 Nov 2011, b m wrote:
<?xml version="1.0"?>
<RDF:RDF xmlns:MAF="http://maf.mozdev.org/metadata/rdf#"
xmlns:NC="http://home.netscape.com/NC-rdf#"
xmlns:RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<RDF:Description RDF:about="urn:root">
<MAF:originalurl RDF:resource="http://news.google.com/"/>
<MAF:title RDF:resource="Google News"/>
<MAF:archivetime RDF:resource="Thu, 17 Nov 2011 09:12:39 -0500"/>
<MAF:indexfilename RDF:resource="index.html"/>
<MAF:charset RDF:resource="UTF-8"/>
</RDF:Description>
</RDF:RDF>
This xml doesn't have any text nodes, it only has attributes. (i.e.
nothing like <foo>this is text</foo>)
Here's my source code...
File file = new File("/tmp/test.rdf");
InputStream is = new FileInputStream(file);
Metadata metaData = new Metadata();
AbstractParser parser = new RdfParser();
DefaultHandler handler = new ToTextContentHandler();
This handler will only give you the contents of text nodes, but you don't
have any!
Nick