-
Java and XML
anybody figured out how to determine byte position of an XML element when
using the SAX parser (on the begin or endElement methods)?
-
Re: Java and XML
You mean "this element begins at position 3027 of the input file"? I very
much doubt that that's part of the SAX specification.
PC2
Richard <richard.hill@transamerica.com> wrote in message
news:3a23b732$1@news.devx.com...
>
> anybody figured out how to determine byte position of an XML element when
> using the SAX parser (on the begin or endElement methods)?
-
Re: Java and XML
If you are using SAXParser just implement the content handler and increment
your own character counts. If you are using JDK1.3 use DynamicProxy to proxy
over the defaultHandler and in each contenthandler interface method increment
the character count.
"Paul Clapham" <pclapham@core-mark.com> wrote:
>You mean "this element begins at position 3027 of the input file"? I very
>much doubt that that's part of the SAX specification.
>
>PC2
>
>Richard <richard.hill@transamerica.com> wrote in message
>news:3a23b732$1@news.devx.com...
>>
>> anybody figured out how to determine byte position of an XML element when
>> using the SAX parser (on the begin or endElement methods)?
>
>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks