This week's book giveaway is in the HTML/CSS/JavaScript forum.
We're giving away four copies of Practical SVG and have Chris Coyier on-line!
See this thread for details.
Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

XMLBeans is returning null on complex elements

Nathan England
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm trying to use XMLBeans to parse an xml document. I have everything working up to a certain point.

The above code works fine, it parses with no errors, and prints the XML contents in its entirety. My problem, is that when I try to access the complex objects underneath the root element, the xmlbeans code is returning null. I have no error, or indication of any problem that could be occurring.

...and so on

Why would I be able to do a requestObj.getComplexType().getSimpleElement1()
the ..getComplexType2() returns a null object?

Any ideas?

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!