• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

Search XML error

 
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hi. All. My problem is that i have a base xml that i do so some search on certain text node, and in servlet i will construct a new temp xml document with all the result node.
My approach is create a new xml, and do a clone of the base xml root element, append to the next xml, then delete any node that does not fit the search critiria.
Compile is fine, but at runtime, here is the error i got:
com.sun.xml.tree.DomEx: That node doesn't belong in this document.
Does anyone know anything about this error? and where did i do wrong?
Thanks
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!