[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: RDDL API

  • From: Jonathan Borden <jborden@m...>
  • To: Michael Brennan <Michael_Brennan@A...>, xml-dev@l...
  • Date: Sun, 07 Jan 2001 20:21:40 -0500

filter getresource
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:

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.