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 (Created) (JIRA)" <xe...@xml.apache.org> on 2012/03/11 01:53:00 UTC

[jira] [Created] (XERCESJ-1558) GSoC: Implement the StAX XMLStreamWriter

GSoC: Implement the StAX XMLStreamWriter
----------------------------------------

                 Key: XERCESJ-1558
                 URL: https://issues.apache.org/jira/browse/XERCESJ-1558
             Project: Xerces2-J
          Issue Type: New Feature
          Components: StAX
    Affects Versions: 2.11.0
            Reporter: Michael Glavassevich


Xerces does not yet have an XMLStreamWriter (the interface in StAX which writes/serializes an XML document). I think a basic implementation of an XMLStreamWriter (one that can write to a java.io.OutputStream and java.io.Writer) would be a good GSoC project.



--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] [Commented] (XERCESJ-1558) GSoC: Implement the StAX XMLStreamWriter

Posted by "Michael Glavassevich (Commented) (JIRA)" <xe...@xml.apache.org>.
    [ https://issues.apache.org/jira/browse/XERCESJ-1558?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13241898#comment-13241898 ] 

Michael Glavassevich commented on XERCESJ-1558:
-----------------------------------------------

Hi Venkatesh, I've mentioned other things to consider in an earlier post on this JIRA issue and on the mailing lists [1]. If you have more questions, I would invite you to join the development mailing list [2] to discuss the project in more depth.

Thanks.

[1] http://xerces.markmail.org/thread/f6kwks4had5k2odl
[2] http://xerces.apache.org/mail.html#xerces-j-dev
                
> GSoC: Implement the StAX XMLStreamWriter
> ----------------------------------------
>
>                 Key: XERCESJ-1558
>                 URL: https://issues.apache.org/jira/browse/XERCESJ-1558
>             Project: Xerces2-J
>          Issue Type: New Feature
>          Components: StAX
>    Affects Versions: 2.11.0
>            Reporter: Michael Glavassevich
>              Labels: gsoc, gsoc2012, mentor
>
> Xerces does not yet have an XMLStreamWriter (the interface in StAX which writes/serializes an XML document). I think a basic implementation of an XMLStreamWriter (one that can write to a java.io.OutputStream and java.io.Writer) would be a good GSoC project.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] [Issue Comment Edited] (XERCESJ-1558) GSoC: Implement the StAX XMLStreamWriter

Posted by "Michael Glavassevich (Issue Comment Edited) (JIRA)" <xe...@xml.apache.org>.
    [ https://issues.apache.org/jira/browse/XERCESJ-1558?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13233197#comment-13233197 ] 

Michael Glavassevich edited comment on XERCESJ-1558 at 3/20/12 4:37 AM:
------------------------------------------------------------------------

Hi Alexander,

> 1) Is it really actual for now?

It's a feature of StAX that Xerces doesn't exist yet support if that's what you're asking. We've been gradually getting help from the community on building a StAX implementation. All of the serialization parts still need work.

> 2) As I understand such XMLStreamWriter implementation could be well localized (in a couple or little more classes), because I just should Implement a class, matching [1] specification. Of course, there may be some helper classes. Am I right with it?

At the very least there needs to be an XMLOutputFactory (the thing that creates XMLStreamWriters) and an XMLStreamWriter implementation, so that's two classes, plus any other helper classes you need to support a StAX serializer.

> 3) I have downloaded Xerces and Xalan sources and take a short look on them. But I haven't really understood about existing serializers. Is it about something under org.apache.xml.serializer namespace? Should I use something from there or should just use provided Writer or OutputStream?

Yes, org.apache.xml.serializer.* is the base Xalan serializer. You could use this as the base for the XMLStreamWriter (e.g. SerializerFactory and SerializationHandler) if you choose.

> 4) At the first look there are not a lot of work (this description is really simplified):

There's more than that, for instance:

- the creation and initialization of the serializer
- managing and recycling of resources which have been returned in close()
- handling of flush() when the XMLStreamWriter is in various states
- error handling / reporting; message files
- build.xml updates, e.g. to include a META-INF/services/javax.xml.stream.XMLOutputFactory file

Depending on your interest, the scope of the project could be expanded to include more parts of the StAX serialization API (e.g. XMLEventWriter).

Thanks.
                
      was (Author: mrglavas@ca.ibm.com):
    Hi Alexander,

> 1) Is it really actual for now?

It's a feature of StAX that Xerces doesn't exist yet support if that's what you're asking. We've been gradually getting help from the community on building a StAX implementation. All of the serialization parts still need work.

> 2) As I understand such XMLStreamWriter implementation could be well localized (in a couple or little more classes), because I just should Implement a class, matching [1] specification. Of course, there may be some helper classes. Am I right with it?

At the very least there needs to be an XMLOutputFactory (the thing that creates XMLStreamWriters) and XMLStreamWriter implementation, so that's two classes, plus any other helper classes you need to support a StAX serializer.

> 3) I have downloaded Xerces and Xalan sources and take a short look on them. But I haven't really understood about existing serializers. Is it about something under org.apache.xml.serializer namespace? Should I use something from there or should just use provided Writer or OutputStream?

Yes, org.apache.xml.serializer.* is the base Xalan serializer. You could use this as the base for the XMLStreamWriter (e.g. SerializerFactory and SerializationHandler) if you choose.

> 4) At the first look there are not a lot of work (this description is really simplified):

There's more than that, for instance:

- the creation and initialization of the serializer
- managing and recycling of resources which have been returned in close()
- handling of flush() when the XMLStreamWriter is in various states
- error handling / reporting; message files
- build.xml updates, e.g. to include a META-INF/services/javax.xml.stream.XMLOutputFactory file

Depending on your interest, the scope of the project could be expanded to include more parts of the StAX serialization API (e.g. XMLEventWriter).

Thanks.
                  
> GSoC: Implement the StAX XMLStreamWriter
> ----------------------------------------
>
>                 Key: XERCESJ-1558
>                 URL: https://issues.apache.org/jira/browse/XERCESJ-1558
>             Project: Xerces2-J
>          Issue Type: New Feature
>          Components: StAX
>    Affects Versions: 2.11.0
>            Reporter: Michael Glavassevich
>              Labels: gsoc, gsoc2012, mentor
>
> Xerces does not yet have an XMLStreamWriter (the interface in StAX which writes/serializes an XML document). I think a basic implementation of an XMLStreamWriter (one that can write to a java.io.OutputStream and java.io.Writer) would be a good GSoC project.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] [Commented] (XERCESJ-1558) GSoC: Implement the StAX XMLStreamWriter

Posted by "Venkatesh Jujjavarapu (Commented) (JIRA)" <xe...@xml.apache.org>.
    [ https://issues.apache.org/jira/browse/XERCESJ-1558?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13241784#comment-13241784 ] 

Venkatesh Jujjavarapu commented on XERCESJ-1558:
------------------------------------------------

Hi Micheal, 

I am a Graduate student interested in working on this task for Gsoc 2012.

I really don't have any idea about Xerces, But

I am familiar with Java and I can understand XML and i don't think this task is too complex, I am so much interested in taking up this task.  Thanks for the articles above and can you provide me any other input for the task which i can study and make a proper detailed timely organization of implementation of task in the proposal. Thanks in Advance. 


                
> GSoC: Implement the StAX XMLStreamWriter
> ----------------------------------------
>
>                 Key: XERCESJ-1558
>                 URL: https://issues.apache.org/jira/browse/XERCESJ-1558
>             Project: Xerces2-J
>          Issue Type: New Feature
>          Components: StAX
>    Affects Versions: 2.11.0
>            Reporter: Michael Glavassevich
>              Labels: gsoc, gsoc2012, mentor
>
> Xerces does not yet have an XMLStreamWriter (the interface in StAX which writes/serializes an XML document). I think a basic implementation of an XMLStreamWriter (one that can write to a java.io.OutputStream and java.io.Writer) would be a good GSoC project.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] [Commented] (XERCESJ-1558) GSoC: Implement the StAX XMLStreamWriter

Posted by "Michael Glavassevich (Commented) (JIRA)" <xe...@xml.apache.org>.
    [ https://issues.apache.org/jira/browse/XERCESJ-1558?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13244506#comment-13244506 ] 

Michael Glavassevich commented on XERCESJ-1558:
-----------------------------------------------

Hi Venkatesh,

Send an e-mail to j-dev-subscribe@xerces.apache.org to subscribe to the development mailing list. Once you're subscribed the mailing list address is j-dev@xerces.apache.org.

Thanks.
                
> GSoC: Implement the StAX XMLStreamWriter
> ----------------------------------------
>
>                 Key: XERCESJ-1558
>                 URL: https://issues.apache.org/jira/browse/XERCESJ-1558
>             Project: Xerces2-J
>          Issue Type: New Feature
>          Components: StAX
>    Affects Versions: 2.11.0
>            Reporter: Michael Glavassevich
>              Labels: gsoc, gsoc2012, mentor
>
> Xerces does not yet have an XMLStreamWriter (the interface in StAX which writes/serializes an XML document). I think a basic implementation of an XMLStreamWriter (one that can write to a java.io.OutputStream and java.io.Writer) would be a good GSoC project.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] [Commented] (XERCESJ-1558) GSoC: Implement the StAX XMLStreamWriter

Posted by "Venkatesh Jujjavarapu (Commented) (JIRA)" <xe...@xml.apache.org>.
    [ https://issues.apache.org/jira/browse/XERCESJ-1558?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13241890#comment-13241890 ] 

Venkatesh Jujjavarapu commented on XERCESJ-1558:
------------------------------------------------

Hi Micheal, 

>From the first article , we have to take care about managing the namespaces and their prefixes. 

and learn more about starting and closing the methods properly. 

do something about close() method to close the underlying output also 

Manage attributes and characters and if i miss anything , point on that area 
                
> GSoC: Implement the StAX XMLStreamWriter
> ----------------------------------------
>
>                 Key: XERCESJ-1558
>                 URL: https://issues.apache.org/jira/browse/XERCESJ-1558
>             Project: Xerces2-J
>          Issue Type: New Feature
>          Components: StAX
>    Affects Versions: 2.11.0
>            Reporter: Michael Glavassevich
>              Labels: gsoc, gsoc2012, mentor
>
> Xerces does not yet have an XMLStreamWriter (the interface in StAX which writes/serializes an XML document). I think a basic implementation of an XMLStreamWriter (one that can write to a java.io.OutputStream and java.io.Writer) would be a good GSoC project.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] [Commented] (XERCESJ-1558) GSoC: Implement the StAX XMLStreamWriter

Posted by "Dishara Wijewardana (Commented) (JIRA)" <xe...@xml.apache.org>.
    [ https://issues.apache.org/jira/browse/XERCESJ-1558?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13227075#comment-13227075 ] 

Dishara Wijewardana commented on XERCESJ-1558:
----------------------------------------------

Hi Michael,
I looked in to this article and it gives a better overview of StAX API. I found another useful tutorial [1] fro sun which gives API level good detailed description.
[1] - http://java.sun.com/webservices/reference/tutorials/jaxp/html/stax.html#bnbff 



                
> GSoC: Implement the StAX XMLStreamWriter
> ----------------------------------------
>
>                 Key: XERCESJ-1558
>                 URL: https://issues.apache.org/jira/browse/XERCESJ-1558
>             Project: Xerces2-J
>          Issue Type: New Feature
>          Components: StAX
>    Affects Versions: 2.11.0
>            Reporter: Michael Glavassevich
>              Labels: gsoc, gsoc2012, mentor
>
> Xerces does not yet have an XMLStreamWriter (the interface in StAX which writes/serializes an XML document). I think a basic implementation of an XMLStreamWriter (one that can write to a java.io.OutputStream and java.io.Writer) would be a good GSoC project.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] [Commented] (XERCESJ-1558) GSoC: Implement the StAX XMLStreamWriter

Posted by "Venkatesh Jujjavarapu (Commented) (JIRA)" <xe...@xml.apache.org>.
    [ https://issues.apache.org/jira/browse/XERCESJ-1558?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13244496#comment-13244496 ] 

Venkatesh Jujjavarapu commented on XERCESJ-1558:
------------------------------------------------

Hi Micheal , 

There are many lists and i am supposed to join The Xerces Java developers list, which i am unable to join. Could you suggest me how to join the list so that we can discuss the project in more depth. Thanks in Advance. 



                
> GSoC: Implement the StAX XMLStreamWriter
> ----------------------------------------
>
>                 Key: XERCESJ-1558
>                 URL: https://issues.apache.org/jira/browse/XERCESJ-1558
>             Project: Xerces2-J
>          Issue Type: New Feature
>          Components: StAX
>    Affects Versions: 2.11.0
>            Reporter: Michael Glavassevich
>              Labels: gsoc, gsoc2012, mentor
>
> Xerces does not yet have an XMLStreamWriter (the interface in StAX which writes/serializes an XML document). I think a basic implementation of an XMLStreamWriter (one that can write to a java.io.OutputStream and java.io.Writer) would be a good GSoC project.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] [Commented] (XERCESJ-1558) GSoC: Implement the StAX XMLStreamWriter

Posted by "Michael Glavassevich (Commented) (JIRA)" <xe...@xml.apache.org>.
    [ https://issues.apache.org/jira/browse/XERCESJ-1558?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13233197#comment-13233197 ] 

Michael Glavassevich commented on XERCESJ-1558:
-----------------------------------------------

Hi Alexander,

> 1) Is it really actual for now?

It's a feature of StAX that Xerces doesn't exist yet support if that's what you're asking. We've been gradually getting help from the community on building a StAX implementation. All of the serialization parts still need work.

> 2) As I understand such XMLStreamWriter implementation could be well localized (in a couple or little more classes), because I just should Implement a class, matching [1] specification. Of course, there may be some helper classes. Am I right with it?

At the very least there needs to be an XMLOutputFactory (the thing that creates XMLStreamWriters) and XMLStreamWriter implementation, so that's two classes, plus any other helper classes you need to support a StAX serializer.

> 3) I have downloaded Xerces and Xalan sources and take a short look on them. But I haven't really understood about existing serializers. Is it about something under org.apache.xml.serializer namespace? Should I use something from there or should just use provided Writer or OutputStream?

Yes, org.apache.xml.serializer.* is the base Xalan serializer. You could use this as the base for the XMLStreamWriter (e.g. SerializerFactory and SerializationHandler) if you choose.

> 4) At the first look there are not a lot of work (this description is really simplified):

There's more than that, for instance:

- the creation and initialization of the serializer
- managing and recycling of resources which have been returned in close()
- handling of flush() when the XMLStreamWriter is in various states
- error handling / reporting; message files
- build.xml updates, e.g. to include a META-INF/services/javax.xml.stream.XMLOutputFactory file

Depending on your interest, the scope of the project could be expanded to include more parts of the StAX serialization API (e.g. XMLEventWriter).

Thanks.
                
> GSoC: Implement the StAX XMLStreamWriter
> ----------------------------------------
>
>                 Key: XERCESJ-1558
>                 URL: https://issues.apache.org/jira/browse/XERCESJ-1558
>             Project: Xerces2-J
>          Issue Type: New Feature
>          Components: StAX
>    Affects Versions: 2.11.0
>            Reporter: Michael Glavassevich
>              Labels: gsoc, gsoc2012, mentor
>
> Xerces does not yet have an XMLStreamWriter (the interface in StAX which writes/serializes an XML document). I think a basic implementation of an XMLStreamWriter (one that can write to a java.io.OutputStream and java.io.Writer) would be a good GSoC project.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] [Commented] (XERCESJ-1558) GSoC: Implement the StAX XMLStreamWriter

Posted by "Venkatesh Jujjavarapu (Commented) (JIRA)" <xe...@xml.apache.org>.
    [ https://issues.apache.org/jira/browse/XERCESJ-1558?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13244515#comment-13244515 ] 

Venkatesh Jujjavarapu commented on XERCESJ-1558:
------------------------------------------------

Hi Micheal, 

Thanks i am now subscribed, now i have to send my questions to the mailing address j-dev@xerces.apache.org Right ? 


                
> GSoC: Implement the StAX XMLStreamWriter
> ----------------------------------------
>
>                 Key: XERCESJ-1558
>                 URL: https://issues.apache.org/jira/browse/XERCESJ-1558
>             Project: Xerces2-J
>          Issue Type: New Feature
>          Components: StAX
>    Affects Versions: 2.11.0
>            Reporter: Michael Glavassevich
>              Labels: gsoc, gsoc2012, mentor
>
> Xerces does not yet have an XMLStreamWriter (the interface in StAX which writes/serializes an XML document). I think a basic implementation of an XMLStreamWriter (one that can write to a java.io.OutputStream and java.io.Writer) would be a good GSoC project.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] [Commented] (XERCESJ-1558) GSoC: Implement the StAX XMLStreamWriter

Posted by "Michael Glavassevich (Commented) (JIRA)" <xe...@xml.apache.org>.
    [ https://issues.apache.org/jira/browse/XERCESJ-1558?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13244526#comment-13244526 ] 

Michael Glavassevich commented on XERCESJ-1558:
-----------------------------------------------

Yes, that's right. You should send your questions to the mailing list.
                
> GSoC: Implement the StAX XMLStreamWriter
> ----------------------------------------
>
>                 Key: XERCESJ-1558
>                 URL: https://issues.apache.org/jira/browse/XERCESJ-1558
>             Project: Xerces2-J
>          Issue Type: New Feature
>          Components: StAX
>    Affects Versions: 2.11.0
>            Reporter: Michael Glavassevich
>              Labels: gsoc, gsoc2012, mentor
>
> Xerces does not yet have an XMLStreamWriter (the interface in StAX which writes/serializes an XML document). I think a basic implementation of an XMLStreamWriter (one that can write to a java.io.OutputStream and java.io.Writer) would be a good GSoC project.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] [Commented] (XERCESJ-1558) GSoC: Implement the StAX XMLStreamWriter

Posted by "Michael Glavassevich (Commented) (JIRA)" <xe...@xml.apache.org>.
    [ https://issues.apache.org/jira/browse/XERCESJ-1558?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13226970#comment-13226970 ] 

Michael Glavassevich commented on XERCESJ-1558:
-----------------------------------------------

For students considering this project, in addition to familiarizing yourself with the XMLOutputFactory/XMLStreamWriter APIs it would probably be a good idea to have a look at the existing serializers in Xerces and Xalan to get a feel for the implementation of such a component.

Here's a good introductory article [1] on the XMLStreamWriter.

[1] http://www.ibm.com/developerworks/library/x-stax3/index.html#N10195
                
> GSoC: Implement the StAX XMLStreamWriter
> ----------------------------------------
>
>                 Key: XERCESJ-1558
>                 URL: https://issues.apache.org/jira/browse/XERCESJ-1558
>             Project: Xerces2-J
>          Issue Type: New Feature
>          Components: StAX
>    Affects Versions: 2.11.0
>            Reporter: Michael Glavassevich
>              Labels: gsoc, gsoc2012, mentor
>
> Xerces does not yet have an XMLStreamWriter (the interface in StAX which writes/serializes an XML document). I think a basic implementation of an XMLStreamWriter (one that can write to a java.io.OutputStream and java.io.Writer) would be a good GSoC project.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] [Commented] (XERCESJ-1558) GSoC: Implement the StAX XMLStreamWriter

Posted by "Alexander Likhanov (Commented) (JIRA)" <xe...@xml.apache.org>.
    [ https://issues.apache.org/jira/browse/XERCESJ-1558?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13232260#comment-13232260 ] 

Alexander Likhanov commented on XERCESJ-1558:
---------------------------------------------

Hi!
I'm a student and I'm intersting in this task for GSoC 2012.
I'm new to Xerces, but I familiar with Java, and I understand that XML is an very important part for Java World.
I think this task is good for start, Xerces looks not as "monstrous" as some complex Java libraries and apps.
Thanks for the links above, they give me a little brief about task.

I have some questions about task:

1) Is it really actual for now?

2) As I understand such XMLStreamWriter implementation could be well localized (in a couple or little more classes), because I just should Implement a class, matching [1] specification. Of course, there may be some helper classes. Am I right with it?

3) I have downloaded Xerces and Xalan sources and take a short look on them. But I haven't really understood about existing serializers. Is it about something under org.apache.xml.serializer namespace? Should I use something from there or should just use provided Writer or OutputStream?

4) At the first look there are not a lot of work (this description is really simplified):
 - Learn more about namespaces and prefixes and different cases of them and "isRepairingNamespaces" property from first table in [1]
 - Implement something to control tags hierarchy (starting and right closing), I think something like stack will be appropriate.
 - Take care about proper caracters and attributes escaping
 - Well unit tests coverage, of course. May be some documentation
Maybe I missed something very important?

Thanks in advance.

P.S. If it is not right place to ask and write, please point me more appropriate place for this.

[1] - http://docs.oracle.com/javase/6/docs/api/javax/xml/stream/XMLStreamWriter.html
                
> GSoC: Implement the StAX XMLStreamWriter
> ----------------------------------------
>
>                 Key: XERCESJ-1558
>                 URL: https://issues.apache.org/jira/browse/XERCESJ-1558
>             Project: Xerces2-J
>          Issue Type: New Feature
>          Components: StAX
>    Affects Versions: 2.11.0
>            Reporter: Michael Glavassevich
>              Labels: gsoc, gsoc2012, mentor
>
> Xerces does not yet have an XMLStreamWriter (the interface in StAX which writes/serializes an XML document). I think a basic implementation of an XMLStreamWriter (one that can write to a java.io.OutputStream and java.io.Writer) would be a good GSoC project.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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