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

[NEW] AElfred: a small, fast XML Parser

  • From: David Megginson <ak117@f...>
  • To: xml-dev Mailing List <xml-dev@i...>
  • Date: Tue, 9 Dec 1997 19:18:44 -0500

fast xml parser
Microstar Software Ltd. is happy to announce Ælfred (AElfred), a
small, fast, DTD-aware Java-based XML parser, especially suitable for
use in Java applets.

We've designed Ælfred for Java programmers who want to add XML support
to their applets and applications without doubling their size: Ælfred
consists of only two class files, with a total size of approximately
24K, and requires very little memory to run.  Ælfred also implements
Java's java.lang.Runnable interface and a zero-argument constructor,
so it's easy to start Ælfred as a separate thread or to adapt it for
use as a JavaBean.

Ælfred is free for both commercial and non-commercial use, and COMES
WITH NO WARRANTEE.  You can download a copy of version 1.0 (with
source code) from the following URL:

  http://www.microstar.com/XML/index.htm

There is also an applet to let you try Ælfred online in your own
browser before download it.


*****************
DESIGN PRINCIPLES
*****************

1. Ælfred must be as small as possible, so that it doesn't add too
   much to your applet's download time.

   STATUS: Ælfred is currently about 24K in total, and we're still
    looking for ways to shrink it further.

2. Ælfred must use as few class files as possible, to minimize the number
   of HTTP connections necessary for applets.

   STATUS: Ælfred consists of only two class files, the main parser
    class (XmlParser.class) and a small interface for your own program
    to implement (XmlProcessor.class).  All other classes in the
    distribution are just demonstrations.

3. Ælfred must be compatible with most or all Java implementations
   and platforms.

   STATUS: Ælfred uses only JDK 1.0.2 features, and we have tested it
    successfully with the following Java implementations: JDK 1.1.1
    (Linux), jview (Windows NT), Netscape 4 (Linux and Windows NT),
    Internet Explorer 3 (Windows NT), and Internet Explorer 4 (Windows
    NT).

4. Ælfred must use as little memory as possible, so that it does not take
   away resources from the rest of your program.

   STATUS: On a P75 Linux system, using JDK 1.1.1, running Ælfred
    (with a 4MB XML document) takes only 2MB more memory than running
    a simple "Hello world" Java application.  Because Ælfred does not
    build an in-memory parse tree, you can run it on very large input
    files using little or no extra memory.

5. Ælfred must run as fast as possible, so that it does not slow down
   the rest of your program.

   STATUS: On a P75 Linux system, using JDK 1.1.1 (without a JIT
    compiler), Ælfred parses XML test files at about 50K/second.  On a
    P166 NT workstation, using jview, Ælfred parses XML test files at
    about 1MB/second.

6. Ælfred must produce correct output for well-formed and valid
   documents, but need not reject every document that is not valid or
   not well-formed.

   STATUS: Ælfred is DTD-aware, and handles all current XML features,
    including CDATA and INCLUDE/IGNORE marked sections, internal and
    external entities, proper whitespace treatment in element content,
    and default attribute values.  It will sometimes accept input that
    is technically incorrect, however, without reporting an error (see
    README), since full error reporting would make the parser much
    larger.

7. Ælfred must provide full internationalisation from the first release.

   STATUS: Ælfred supports Unicode to the fullest extent possible in
    Java.  It correctly handles XML documents encoded using UTF-8,
    UTF-16, ISO-10646-UCS-2, ISO-10646-UCS-4 (as far as surrogates
    allow), and ISO-8859-1 (ISO Latin 1/Windows).  With these
    character sets, Ælfred can handle all of the world's major (and
    most of its minor) languages.


***********************
ABOUT THE NAME "Ælfred"
***********************

Ælfred the Great (AElfred in ASCII) was king of Wessex, and at least
nominally of all England, at the time of his death in 899AD.  Ælfred
introduced a wide-spread literacy program in the hope that his people
would learn to read English, at least, if Latin was too difficult for
them.  This Ælfred hopes to bring another sort of literacy to Java,
using XML, at least, if full SGML is too difficult.

The initial "Æ" (AE ligature) is also a reminder that XML is not
limited to ASCII.


Enjoy!


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.