File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes XML and Related Technologies and the fly likes Creating XML elements Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Creating XML elements" Watch "Creating XML elements" New topic

Creating XML elements

lisa jane smith

Joined: Aug 31, 2003
Posts: 1
I'm generating an XML document. I have reached the third hierarchial level i.e.
. <level_2>
. . <level_3>
. <level_2>
. . <level_3>
. <level_2>
Now I am trying to add <level_3> siblings to the existing <level_3> elements and am getting the following exception messages: Wrong
index: 1
at Convertor.processNodeRecursively(
at Convertor.processNodeRecursively(
at Convertor.main(
What does this mean and how do I correct this so I can continue creating elements at <level_3> of the XML doc.


Joined: Jul 21, 2003
Posts: 23
If you post the code snippet, it will be helpful.

<a href="" target="_blank" rel="nofollow">MQMessenger</a> - free Java app for MQSeries
Lasse Koskela

Joined: Jan 23, 2002
Posts: 11962
I'll have to ask you to change your display name as it doesn't comply with our naming policy.
Thank you.

Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
I agree. Here's the link:
subject: Creating XML elements
It's not a secret anymore!