You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by "Michael Glavassevich (JIRA)" <xe...@xml.apache.org> on 2004/11/17 20:01:25 UTC

[jira] Assigned: (XERCESJ-701) [RFC 2396]: One character schemes should not be rejected.

     [ http://nagoya.apache.org/jira/browse/XERCESJ-701?page=history ]

Michael Glavassevich reassigned XERCESJ-701:
--------------------------------------------

    Assign To: Michael Glavassevich  (was: Xerces-J Developers Mailing List)

> [RFC 2396]: One character schemes should not be rejected.
> ---------------------------------------------------------
>
>          Key: XERCESJ-701
>          URL: http://nagoya.apache.org/jira/browse/XERCESJ-701
>      Project: Xerces2-J
>         Type: Bug
>   Components: Other
>     Versions: 2.4.0
>  Environment: Operating System: All
> Platform: All
>     Reporter: Michael Glavassevich
>     Assignee: Michael Glavassevich

>
> The Xerces URI implementation currently rejects URIs with one characters 
> schemes, such as "g:h". This restriction isn't part of RFC 2396, and although 
> it's there to help flag DOS file names, it makes it impossible for users who 
> literally mean to specify URIs with one character scheme names.
> I think if this isn't intended to be fixed it should at least be marked as a 
> limitation within the documentation for Xerces so users know what behaviour to 
> expect.
> I certainly wouldn't expect if I specified a base URI of "http://a/b/c/d/e" and 
> relative URI of "g:h" that the resolved URI be "http://a/b/c/d/g:h" instead 
> of "g:h".
> Relevant production:
> scheme = alpha *( alpha | digit | "+" | "-" | "." )
> References:
> http://www.ietf.org/rfc/rfc2396.txt

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org


Re: How to get rid from Xreces deprecated warnings

Posted by Brian Minchau <mi...@ca.ibm.com>.



Sudhakar,
in general (not just for this class) I find it very useful to go to
www.google.com and enter the class name and the word "documentation" for
the search string. In this case the search text would be:

    org.xml.sax.AttributeList documentation

For me the first link on the page the search result page is the one you are
interested in.  http://java.sun.com/j2se/1.4.2
/docs/api/org/xml/sax/class-use/AttributeList.html

On this Javadoc page you can see that the method is deprecated. It also
gives information on what it has been replaced by.

You can't beat Javadoc and a good search engine with the right keywords.
Please try trick for each of the classes of interest.

----------
Brian Minchau
XSLT Development, IBM Toronto
e-mail:        minchau@ca.ibm.com



                                                                           
             IndianAtTech                                                  
             <indianattech@gma                                             
             il.com>                                                    To 
                                       xerces-j-dev@xml.apache.org         
             11/20/2004 01:41                                           cc 
             AM                                                            
                                                                   Subject 
                                       How to get rid from Xreces          
             Please respond to         deprecated warnings                 
               xerces-j-dev                                                
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           




Hello Friends,

when I compile the class I get following warnings. And I don't want to
use the depercated API in my application. So what are the new classes
and methods I need to use in my class.  I have downloaded
Xerces-J-bin.2.6.0 API from the jakara project

Thanks Sudhakar


AttachmentParser_Xerces.java:3: warning: org.xml.sax.AttributeList in org.
xml.sax has been deprecated
import org.xml.sax.AttributeList;
                   ^
AttachmentParser_Xerces.java:4: warning: org.xml.sax.HandlerBase in org.xm
l.sax has been deprecated
import org.xml.sax.HandlerBase;
                   ^
AttachmentParser_Xerces.java:5: warning: org.xml.sax.Parser in org.xml.sax
 has been deprecated
import org.xml.sax.Parser;
                   ^
AttachmentParser_Xerces.java:8: warning: org.xml.sax.helpers.ParserFactory
 in org.xml.sax.helpers has been deprecated
import org.xml.sax.helpers.ParserFactory;
                           ^
AttachmentParser_Xerces.java:21: warning: org.xml.sax.HandlerBase in org.x
ml.sax has been deprecated
    extends HandlerBase { //implements org.xml.sax.ContentHandler
            ^
AttachmentParser_Xerces.java:36: warning: org.xml.sax.AttributeList in org
.xml.sax has been deprecated
  public void startElement(String name, AttributeList attrs) {
                                        ^
ExchangeEmailDetails.java:3: warning: org.xml.sax.AttributeList in org.xml
.sax has been deprecated
import org.xml.sax.AttributeList;
                   ^
ExchangeEmailDetails.java:4: warning: org.xml.sax.HandlerBase in org.xml.s
ax has been deprecated
import org.xml.sax.HandlerBase;
                   ^
ExchangeEmailDetails.java:5: warning: org.xml.sax.Parser in org.xml.sax ha
s been deprecated
import org.xml.sax.Parser;
                   ^
ExchangeEmailDetails.java:8: warning: org.xml.sax.helpers.ParserFactory in
 org.xml.sax.helpers has been deprecated
import org.xml.sax.helpers.ParserFactory;
                           ^
AttachmentParser_Xerces.java:36: warning: org.xml.sax.AttributeList in org
.xml.sax has been deprecated
  public void startElement(String name, AttributeList attrs) {
                                        ^
11 warnings
C:\>

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org


How to get rid from Xreces deprecated warnings

Posted by IndianAtTech <in...@gmail.com>.
Hello Friends,

when I compile the class I get following warnings. And I don't want to
use the depercated API in my application. So what are the new classes
and methods I need to use in my class.  I have downloaded
Xerces-J-bin.2.6.0 API from the jakara project

Thanks Sudhakar


AttachmentParser_Xerces.java:3: warning: org.xml.sax.AttributeList in org.
xml.sax has been deprecated
import org.xml.sax.AttributeList;
                   ^
AttachmentParser_Xerces.java:4: warning: org.xml.sax.HandlerBase in org.xm
l.sax has been deprecated
import org.xml.sax.HandlerBase;
                   ^
AttachmentParser_Xerces.java:5: warning: org.xml.sax.Parser in org.xml.sax
 has been deprecated
import org.xml.sax.Parser;
                   ^
AttachmentParser_Xerces.java:8: warning: org.xml.sax.helpers.ParserFactory
 in org.xml.sax.helpers has been deprecated
import org.xml.sax.helpers.ParserFactory;
                           ^
AttachmentParser_Xerces.java:21: warning: org.xml.sax.HandlerBase in org.x
ml.sax has been deprecated
    extends HandlerBase { //implements org.xml.sax.ContentHandler
            ^
AttachmentParser_Xerces.java:36: warning: org.xml.sax.AttributeList in org
.xml.sax has been deprecated
  public void startElement(String name, AttributeList attrs) {
                                        ^
ExchangeEmailDetails.java:3: warning: org.xml.sax.AttributeList in org.xml
.sax has been deprecated
import org.xml.sax.AttributeList;
                   ^
ExchangeEmailDetails.java:4: warning: org.xml.sax.HandlerBase in org.xml.s
ax has been deprecated
import org.xml.sax.HandlerBase;
                   ^
ExchangeEmailDetails.java:5: warning: org.xml.sax.Parser in org.xml.sax ha
s been deprecated
import org.xml.sax.Parser;
                   ^
ExchangeEmailDetails.java:8: warning: org.xml.sax.helpers.ParserFactory in
 org.xml.sax.helpers has been deprecated
import org.xml.sax.helpers.ParserFactory;
                           ^
AttachmentParser_Xerces.java:36: warning: org.xml.sax.AttributeList in org
.xml.sax has been deprecated
  public void startElement(String name, AttributeList attrs) {
                                        ^
11 warnings
C:\>

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org