[ http://issues.apache.org/jira/browse/XERCESJ-1178?page=all ]

hua lei updated XERCESJ-1178:
-----------------------------

    Attachment: stax_patch_8.19.zip

Hello, Michael,
       The whole StAX implementation is improved a lot in attached patch, 
including: 

SAXXMLStreamReader:

1) I modified the  SAX implementation to save the namespace URI of elements and 
attributes if reported by SAX parser, which sloves the problem you mentioned. 

2) "public void require(int type, String namespaceURI, String localName) throws 
XMLStreamException"  is realized

3) "public boolean isAttributeSpecified(int index)" is realized

4)  javax.xml.stream.isCoalescing attribute is realized

5)  javax.xml.stream.isReplaceEntityRef attribute is partly realized, because 
it heavily depends on the SAX implementation

6)  "public Location getLocation()" is modified and tested.

7)  getTextXXX() methods,  NamespaceContext and Exception reporting of 
SAXXMLStreamReader are improved 

DOMXMLStreamReader:

1) The EntityReferrence type is partly supported in "public String getText()" 
and "public String getLocalName()" , it also heavily depends on the DOM 
implementation 


Also, the testing of StAX component is improved a lot. Besides the test cases 
of  myself, I also use test cases from http://stax.codehaus.org/. The SAX 
implementation has passed all test cases about Element, Attribute, Namespace 
and isCoalescing property from http://stax.codehaus.org.  I'll let DOM 
implementation pass these test cases tomorrow.



> Error getting prefix for an attribute with no namespace
> -------------------------------------------------------
>
>                 Key: XERCESJ-1178
>                 URL: http://issues.apache.org/jira/browse/XERCESJ-1178
>             Project: Xerces2-J
>          Issue Type: Bug
>          Components: StAX
>    Affects Versions: 2.8.0
>            Reporter: Lucian Holland
>         Attachments: stax_patch_8.19.zip
>
>
> The initialElementAttrs()  method of SAXXMLStreamReader sets the prefix of 
> attributes to null if it finds no colon in the attribute name; the problem 
> with this is that getAttributeNamespace() uses this prefix when looking up 
> the namespace uri with a call to getNamespaceURI on the NamespaceContextImpl, 
> and this method throws an IllegalArgumentException if null is passed in. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to