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

Michael Glavassevich resolved XERCESJ-1170.
-------------------------------------------

    Resolution: Fixed

Thanks very much Hua. I've committed your code on to a new branch for StAX 
development: http://svn.apache.org/viewvc/xerces/java/branches/stax-dev. I 
re-organized the code a bit and changed the implementation of getStAXType() so 
that it uses getNodeType() instead of instanceof.

Specifically here's what I did:
- Renamed DOMXMLStreamReader to DOMXMLStreamReaderImpl
- Moved getStAXType() method from DOMUtility into DOMXMLStreamReaderImpl
- Use getNodeType() instead of instanceof on DOM nodes. Some DOM 
implementations have 
  classes which implement some or all of the DOM interfaces. The only reliable 
way
  to determine the node type is to check the value returned from getNodeType().
- Folded the FakeXMLInputFactoryImpl into the XMLInputFactoryImpl class
- Cleaned up the source indentation so that it uses spaces instead of tabs

> Initial contribution for the DOM XMLStreamReader
> ------------------------------------------------
>
>                 Key: XERCESJ-1170
>                 URL: http://issues.apache.org/jira/browse/XERCESJ-1170
>             Project: Xerces2-J
>          Issue Type: New Feature
>          Components: StAX
>    Affects Versions: 2.8.0
>         Environment: Windows XP Pro, sp2; Eclipse 3.1
>            Reporter: hua lei
>         Assigned To: Michael Glavassevich
>         Attachments: DOMStreamReader_6.28.zip
>
>
>         StAX feature is one project of google's summer of code. "By  the 
> Using an  XMLInputFactory an  XMLStreamReader can be constructed from a  
> SAXSource or  DOMSource. The goal here is to provide support for both of 
> these sources, making it possible for applications to process the results of 
> a SAX pipeline in a pull fashion and to incrementally walk a DOM tree through 
> the  XMLStreamReader interface."  
>         This issue is the initial contribution for DOMStreamReader. 

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