Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Trouble with adding elements properly

 
Dan Grindstaff
Ranch Hand
Posts: 138
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, I am building an xml doc that is supposed to create fields within a field section and products within a product section. I have a List method to populate the fields section which incorrectly creates all fields instead of one fields with several field values. How can I change the class generated from the xsd to accept a List of fields and put them into the xml document in the right structure? Thankss!

xsd:



generated class:

 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you really expect anyone to look at 1500 lines of XML? Please post an SSCCE.
 
Dan Grindstaff
Ranch Hand
Posts: 138
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry about that.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic