OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: RDDL API



I've posted more of an initial stab at an API at

http://www.rddl.org/rddl.jar

also

http://www.rddl.org/org/rddl/

a little example about how it might be used:

	RDDLURL rurl = new RDDLURL("http://www.rddl.org/"); // a namespace URI
	/*
		get an XSD
	*/
	rurl.setArcrole("http://www.w3.org/2000/10/XMLSchema");
	URLConnection urlc = rurl.openConnection();
	InputStream is = urlc.getInputStream(); // and you get the XSD
	XMLReader reader = XMLReaderFactory.createXMLReader();
	reader.setContentHandler(...);
	reader.parse(new InputSource(is)); // and you parse the XSD


also

	RDDLFilter filter = new RDDLFilter();
	filter.parse("http://www.rddl.org/"); // parse a namespace URI

	Resource res = filter.getResource("http://www.w3.org/2000/10/XMLSchema");

I haven't yet implemented any real SAXFilter functionality yet but the plan
is to allow a particular resource type to be specified and then as the
namespace URI is 'parsed' it sends out the SAX events of the referenced
resource into the content handler.

-Jonathan