This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Hello, I am trying to create an xml doc with elements arranged as follows: XML Doc example Notice that the Field elements are nested in Fields and have a name attribute, the product elements I am fine with so I will not address those. I am building an xsd to accomplish getting the Fields right and having some difficulty. This is a piece of the xsd I have that addresses the fields:
and to nest within the datafeed:
So far I am able to build the classes from xjc and marshall the xml but I cannot get the Field element to show up nested in the Fields element. I only get one or the other showing up depending on the element in the FeedType section.