Java and XML


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Java and XML

  1. #1
    Richard Guest

    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)?

  2. #2
    Paul Clapham Guest

    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)?




  3. #3
    Ruchi Dhar Guest

    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
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center