Robert Lazarski created AXIS2-6081:
--------------------------------------

             Summary: JSON with XML Stream API, support XML attributes in 
XmlNodeGenerator 
                 Key: AXIS2-6081
                 URL: https://issues.apache.org/jira/browse/AXIS2-6081
             Project: Axis2
          Issue Type: Task
            Reporter: Robert Lazarski
            Assignee: Robert Lazarski
             Fix For: 2.0.1


There are two ways to use JSON with Axis2 - the native way with POJO's and 
using  javax.xml.stream.XMLStreamReader. The latter Stax based approach has 
this comment in MoshiXMLStreamReader / GSONXMLStreamReader 

        if (isStartElement()) {
            return 0; // don't support attributes on tags  in JSON convention
        } else {
            throw new IllegalStateException("Only valid on START_ELEMENT 
state");
        }

An attempt to support attributes was committed in the MoshiXMLStreamReader and 
XmlNodeGenerator and while it remains incomplete due to time constraints, this 
effort was motivated by a question on java-u...@axis.apache.org and ideally 
some one in the community with this use case can send a Git PR to complete it. 

My day job uses the native approach and its unclear when this support will be 
completed. 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscr...@axis.apache.org
For additional commands, e-mail: java-dev-h...@axis.apache.org

Reply via email to