|
[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|
|||||||||

Cart








