[jira] [Updated] (AXIS2-6081) JSON with XML Stream API, support XML attributes in XmlNodeGenerator
"Robert Lazarski (Jira)" <[email protected]> Sat, 18 Apr 2026 00:03:00 +0000 (UTC)
| Newsgroups | gmane.text.xml.axis.devel |
|---|---|
| Message-ID | <[email protected]> |
[ https://issues.apache.org/jira/browse/AXIS2-6081?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robert Lazarski updated AXIS2-6081:
-----------------------------------
Fix Version/s: (was: 2.0.1)
> 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
> Priority: Major
>
> There are two ways to use JSON with Axis2 - the native way with POJO's and using javax.xml.stream.XMLStreamReader with a WSDL. The latter Stax based approach has this comment in MoshiXMLStreamReader / GSONXMLStreamReader
> {code}
> if (isStartElement()) {
> return 0; // don't support attributes on tags in JSON convention
> } else {
> throw new IllegalStateException("Only valid on START_ELEMENT state");
> }
> {code}
> An attempt to support attributes was committed in the MoshiXMLStreamReader and XmlNodeGenerator classes and while it remains incomplete due to time constraints, this effort was motivated by a question on [email protected] 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)