• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

HIERARCHY_REQUEST_ERR: An attempt was made to insert a node where it is no

 
Greenhorn
Posts: 13
Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Every one,


In my servlet am using DOM to create a xml file . But it is showing an error like

org.w3c.dom.DOMException: HIERARCHY_REQUEST_ERR: An attempt was made to insert a node where it is not permitted.

Please any one help me.
Thanks
.
 
Marshal
Posts: 28425
102
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This sometimes happens when you try to add a node to a document, but the node actually belongs to some other document (or doesn't belong to any document at all). If that's your problem, then check out the API documentation for Document, and you'll see there's a method which allows you to import (I think that's the word) a node into a document. Once you've done that, you can then add it wherever you like in that document.
reply
    Bookmark Topic Watch Topic
  • New Topic