The Java download has .class files in samples/dom or ui or sax,
not .java files.
How do we get the .java files?
Thanks.

From: "Ted Leung" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: <[EMAIL PROTECTED]>
Subject: Re: How to use Locator ?
Date: Wed, 5 Jan 2000 12:51:43 -0800

If your are using the Java version of xerces,

look at the DOMAddLines sample in

xml-xerces/java/samples/dom/DOMAddLines.java

Take a look at the startElement method --  the sample saves line numbers in
the
DOM tree.

Ted
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, January 04, 2000 11:58 PM
Subject: How to use Locator ?


> Hi,
>
> I'm writing a SAX XML parser and I need to check not only syntax
(validation)
> but also semantics of tags. I would like to use Locator class to get
position of
> tags within parsed file in order to report eventual errors but I'm rather
> confused how to use it.
>
> Who is reponsible for its implementation ??
> Is the implementation a part of the xerces library or is it up to
programmer to
> implement the interface defined by xerces ?
>
> Could you send me a short example of a code which would show use of
Locator (as
> none of the examles supplied shows that)?
>
> Thanks a lot.
>
> Mira
>
>
>
>



______________________________________________________ Get Your Private, Free Email at http://www.hotmail.com



Reply via email to