XML Support in IE 4.0
Chris Lovett
clovett at microsoft.com
Wed Oct 8 01:54:52 BST 1997
The Java SDK 2.0 final release is now available from
http://www.microsoft.com/java and this includes documentation of the
latest version of the Java parser that is included in IE 4.0.
In particular you will want to look at the com.ms.xml.om and
com.ms.xml.parser packages.
The Java parser throws an exception when it finds a problem and the
exception includes information that you could display to the user. We
even have a standard way of describing the error, for example, the
following is a typical error you might get:
Close tag WOOPS does not match start tag TREE
Location: file:/d:/java/msxml/foo.xml(7,25)
Context: <GARDEN><TREE>
Location shows the file that contains the error, then the line number
then the character position on that line, so in this example it's line 7
character position 25. The Context will list all the tags from the
scope of the error out to the root of the document. In this case the
error is inside the <TREE> element which is inside the root <GARDEN>
element.
So yes, you could write an authoring tool using this approach.
> -----Original Message-----
> From: Andrew Layman
> Sent: Tuesday, October 07, 1997 1:36 PM
> To: xml-dev
> Subject: RE: XML Support in IE 4.0
>
> The two parsers had very different goals. The C++ parser was built
> with
> performance as its main target. It does not include validation. The
> Java parser is a fully validating parser and ships with source code
> (and
> we hope to ship a new one shortly that reflects recent changes in the
> specifications).
>
> --Andrew Layman
> AndrewL at microsoft.com
>
>
> xml-dev: A list for W3C XML Developers. To post,
> mailto:xml-dev at ic.ac.uk
> Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
> To (un)subscribe, mailto:majordomo at ic.ac.uk the following message;
> (un)subscribe xml-dev
> To subscribe to the digests, mailto:majordomo at ic.ac.uk the following
> message;
> subscribe xml-dev-digest
> List coordinator, Henry Rzepa (mailto:rzepa at ic.ac.uk)
xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo at ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo at ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at ic.ac.uk)
More information about the Xml-dev
mailing list