Hi,
I am using JAXB on a project. the attraction of JAXB is that it is bundled with the JDK, I have been to use xjc.exe on the command line to generate the .java files from a schema. I can't seem to find the JAXB ant task, sure there is a download at https://jaxb.dev.java.net however i want to use the JAXB that is bundled into the JDK i...
There is a placeholder answer over at the unofficial guide with a link to an article which (to me) seems quite unrelated.
I use XJC to generate my JAXB classes and while most of them map to each other as expected, some elements get mapped to JAXBElement<Foo>. This is most annoying for graphs with cycles, where sometimes the parent node ...
My requirement is that I have a very big schema and it has many different tags with different namespaces. I want to generate classes from that schema into different packages and I want this thing to be bases on namespace i.e. I want classes corresponding to tags in one namespace to be in one package and classes corresponding to tags in o...
hi. my code:
<bean class="org.springframework.web.servlet.view.ContentNegotiatingViewResolver">
<property name="mediaTypes">
<map>
<entry key="xml" value="#{subscribersXml.contentType}" />
</map>
</property>
<property name="order" value="0"/>
</bean>
<bean id="subscribersXml" class="org.springfram...
How can I marshal java string object that contain umlauts by using
org.springframework.oxm.jaxb.Jaxb2Marshaller ?
I have java string like Alizée.
After marshalling with using Jaxb2Marshaller i get Alizée xml string.
...
I'm having a strange problem when trying to run a maven build that uses the jaxb2 plugin to do JAXB codegen (see stacktrace below). The best that I can figure is that there's some implementation of DTMManager that's being class loaded from a different JAR than the one in xalan-2.7.1; however, I have verified that the classpath that is us...
Has anybody found any documentation on comments in jaxb.index files? I've searched the web, but couldn't find any information.
Using "# comment" style lines does work, but is this actually specified anywhere?
Thanks for your help.
...
Hello All,
JAXB Generated classes only capture the structural information from the XML schema that is used to generate the classes, but they ignore any additional constraints on the data e.g allowed set of values(enumerations), max value allowed etc. Does it mean that if i do not have a schema i can only validate structural information a...
I have a xsd which has the substitution groups in it . When i am trying to generate java classes using cxf wsdl2java JAXB generating List> rather than the List . How can i avoid the JAXBElement? I tried with binding.xml but its not working .Please help me to resolve this
Thank you
...
Hi all,
The question is about JAXB Map marshalling - there is plenty of examples on how to marhsall a Map into a structure like follows:
<map>
<entry>
<key> KEY </key>
<value> VALUE </value>
</entry>
<entry>
<key> KEY2 </key>
<value> VALUE2 </value>
</entry>
<entry>
...
</map>
In fact, this is natively su...
Hi,
I'm attempting to integrate with Salesforce using MyEclipse. The wizard fails because of a naming collision on a complex type "DescribeLayout". I need to write a JAXB binding file to ensure that the two interfaces that are created by the xjc compiler are in different packages, but I have absolutely no idea how to do this.
I do not ...
I have an xml file which I want to unmarshal. It is a very simple file with very well defined structure. Do I still need a xml schema to use JAXB? If so what is the other option? What are the pros and cons
...