aspose file tools
The moose likes Performance and the fly likes Identifying elements inside choice by JAXB Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Performance
Reply Bookmark "Identifying elements inside choice by JAXB" Watch "Identifying elements inside choice by JAXB" New topic
Author

Identifying elements inside choice by JAXB

Balamurugan Balasubramanian
Greenhorn

Joined: Jun 07, 2006
Posts: 2
I have an element whose definition is like this.
<!ELEMENT JMXNode (NodeName, JMXServiceURL?, (JMXNode | MBean)*)>

When I generated JAXB classes using XJC compiler for this,
the JMXNode.java file generated for this element has only one list for all the child elements, irrespective of whether it is mandatory, optional, or choice.
This is creating issues when I tried to unmarshall this element. This also allows me to validate an invalid XML.

I am using JAXB version 1.0. Any thoughts on this issue ???
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Identifying elements inside choice by JAXB
 
Similar Threads
JAXB 1.0.2 Unmarshal error, 'unexpected root element'
Handling of elements inside choice by JAXB
MessageDrivenBean - JAXB
JAXB - Ordering of elements in generated XML
jaxb xml parsing, null pointer for IDRef element