Java Mailing List Archive

http://www.junlu.com/

Subjects
Home
mod jk2 https
Donation of JAXP 1 3 Sources to Apache
R annoyances
RE: Finding out when the aspnet admin worker process has recycled
Favorite Linux Distribution
eigenvalues of a circulant matrix
Apache Install
Reachin apache from outside
Ant should have an ext directory
Warning: Documentroot doesn 't exist
Can this be Done?
RE: Multilanguage Application
RE: Simple Question On setting up Sub Domain site
Lack of independence in anova()
How to close connection instead of sending 403?
winning the case for ANT
Re: adding php
New Ant GUI 'Ant 's Nest '
Narrowing Down A Strange Problem
Ant Task: sshexec
R Graph Gallery : categorization of the graphs
I 've been hacked, I need some help please
RE: Anyone working with DotNetNuke?
RE: Exception Handling Opinion
hex format
RE: IIS stopped working :(
<for > Build Failed:problem
RE: Separation of Objects from Logic
RE: Tracking pages with long request execution time
sending email to multiple destination
Web Site
ant UI
Easy cut & paste from Excel to R?
Win32 Apache Restart
Improving Tasks
HELP! PLEASE!
RE: Adding Controls to a Page
read table
RE: ASPNET account doesn 't exist!
Best way to uninstall Apache2 on red hat
from win to linux how to web page
XMLParseException changes and creation of XMLLocator2
Re Post: rewrite backslash to forward slash
Target or macrodef?
Page display problem XPSP2
Authentication problems
Dynamic Dictionary Data Type?
Newbie unable access my www from outside
off topic question: Latex and R in industries
Conflict between xtable and Hmisc when using Sweave?
Very old problem without any new solution
mod rewrite help
Basic Authentication question
RE: Code Security
calling ant from java program
prevent double signing
Re: Controlling Copy/Paste/Print
Using R to illustrate the Central Limit Theorem
web server slow too much slow
access to user directories
Links
Home
Official R Project Site
 
Search:  
Power your search with and, or, +, -, or "some phrase" operators.
XMLParseException changes and creation of XMLLocator2

XMLParseException changes and creation of XMLLocator2

2004-08-26       - By Ankit Pasricha
Reply:     1     2     3     4     5     6     7     8     9     10     >>  





The two code changes are listed below:


XMLLocator2 extends XMLLocator {

     public int getCharacterOffset();
}



public class XMLParseException ... {

     ...
     int fOffset;

     public XMLParseException(XMLLocator locator) {
           ...
           fOffset = locator instanceof
XMLLocator2?((XMLLocator2)locator).getCharacterOffset():-1;
     }

     public int getCharacterOffset() {

           return fOffset;
     }
     ...
}



Ankit Pasricha
XML Parser Development
IBM Toronto Lab
8200 Warden Avenue, Ontario L6G 1C7
Phone: (905) 413 4941


                                                                         
            Andy Clark                                                    
            <andy@(protected)                                            
            et>                                                        To
                                      xerces-j-dev@(protected)        
            08/25/2004 06:49                                           cc
            PM                                                            
                                                                  Subject
                                      Re: [XNI CHANGE PROPOSAL]          
            Please respond to         XMLParseException changes and      
            xerces-j-dev@(protected)         creation of XMLLocator2            
               apache.org                                                
                                                                         
                                                                         
                                                                         
                                                                         
                                                                         




Ankit Pasricha wrote:
> 1) As an extension of the org.apache.xerces.xni.XMLLocator Source code of org.apache.xerces.xni.XMLLocator interface,
>  XMLLocator2 interface was created to expose character offset
> information (i.e. the character location in the stream being read).
> Since this interface extends an XNI interface, I would like it to
> live in the org.apache.xerces.xni package as well.
>
> 2) In order to propagate the offset information available (due to the
> above change), I also want to change the XMLParseException class (in
> org.apache.xerces.xni.parser package) to contain offset information.
>
> I would like to know if there are any comments about these changes as
> well as any problems/issues that you see.

I'd like to see the exact changes you are proposing. In general,
adding methods is alright while removing or changing them is not.
However, even if it's only an addition, I would like to see the
proposed changes to make sure that they stay consistent with the
existing API.

--
Andy Clark * andyc@(protected)

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@(protected)
For additional commands, e-mail: xerces-j-dev-help@(protected)




---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@(protected)
For additional commands, e-mail: xerces-j-dev-help@(protected)


©2008 junlu.com - Jax Systems, LLC, U.S.A.