[Home] [By Thread] [By Date] [Recent Entries]

  • From: Jonathan Borden <jborden@m...>
  • To: Michael Brennan <Michael_Brennan@A...>, xml-dev@l...
  • 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:
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member