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

Re: SAX: 1998-04-18 pre-release

  • From: David Megginson <ak117@f...>
  • To: Xml-Dev List <xml-dev@i...>
  • Date: Sun, 19 Apr 1998 08:01:09 -0400

Re: SAX: 1998-04-18 pre-release
Peter Murray-Rust writes:

 > I didn't find ROADMAP.txt either in the *.zip, sax.jar or under the URL.

Sorry about that -- I'll make certain it ends up in the next one, and
can mail it to you privately if you'd like.

 > >Drivers for Lark and MSXML:
 > >  http://www.microstar.com/XML/SAX/New/saxdrivers-19980418.zip
 > 
 > This may not be high-priority, but is there any check to make sure that the
 > driver is accessing the right version of Lark or MSXML? It's quite easy to
 > get fooled here as one could download a new version of SAX which catered
 > for a new version of FOO using FOODriver that one wasn't aware of. Tedious.
 > If the new version used different classes then one could test with the
 > ClassLoader.

I'm hoping that the Lark driver, at least, will end up as part of the
main distribution.  For MSXML, I can take a look at this issue once
SAX proper is out.

 > >Simple Demos:
 > >  http://www.microstar.com/XML/SAX/New/saxdemos-19980418.zip
 > >
 > Demos are always very gratefully received. For a simple-minded person like
 > me it would be nice to have a two-line demo for CharacterStream input (yes,
 > I haven't got to grips with java.io.Reader yet). Of the form:
 > 
 > String input = "<greetings>Hello world!</greetings>";

I have one of my own, which isn't much more complicated than this.
Here's the interesting part (excluding the handlers, etc.):

  /**
    * Main entry point for an application.
    */
  public static void main (String args[])
    throws Exception
  {
    InputSource source;
    Parser parser;
    String doc = "<doc>\n<title>Hello</title>\n<para>Hello, world!</para>\n</doc>";
    StringReader reader = new StringReader(doc);
    source = new InputSource(new ReaderAdapter(reader));

    if (args.length != 0) {
      System.err.println("Usage: java CharTest");
      System.exit(2);
    }

    parser = ParserFactory.makeParser();
    parser.setDocumentHandler(new CharTest());
    parser.parse(source);
  }


All the best,


David

-- 
David Megginson                 ak117@f...
Microstar Software Ltd.         dmeggins@m...
      http://home.sprynet.com/sprynet/dmeggins/

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo@i... the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)


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.