aspose file tools*
The moose likes XML and Related Technologies and the fly likes error while inserting a node into a dom using a java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "error while inserting a node into a dom using a java" Watch "error while inserting a node into a dom using a java" New topic
Author

error while inserting a node into a dom using a java

s ithu
Greenhorn

Joined: Apr 10, 2012
Posts: 11
hi guys,

i am trying to insert a node into a dom using a java method.

But i get this error
hierarchy request_err : An attempt was made to insert a node where it is not permitted

so i changed permission using chmod command but still it is not working ......



Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18113
    
    8



This was the line which threw the exception, right? Well, you can't make a node be its own child. Probably you meant for the node to be a child of something else.
s ithu
Greenhorn

Joined: Apr 10, 2012
Posts: 11
Thank you for your help
I changed code like this so it is working now.

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: error while inserting a node into a dom using a java
 
Similar Threads
problem in modification of the value in xml file
Xml result is not coming.
Help regarding how to check the element entered is equal or not in xml file
Problem in creating XML using DOM
Java code to append data into a existing xml file