[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: RDDL API
- From: Jonathan Borden <jborden@mediaone.net>
- To: Michael Brennan <Michael_Brennan@Allegis.com>, xml-dev@lists.xml.org
- Date: Sun, 07 Jan 2001 20:21:40 -0500
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
- References:
- RE: RDDL API
- From: Michael Brennan <Michael_Brennan@Allegis.com>