• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

DocumentFragment ???

 
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, can anyone tell me how to use 'org.w3c.dom.DocumentFragment' in Xerces package?
And second question is when i have a document, and some nodes in this document to update, I have another xml fragment liek "<g/>", i want to insert this <g/> into some nodes of original document. The problem is when i insert this <g/> into nodes in loop, after that only last updated operation is remained. I don't know why this happened.
e.g.
I have <a><b><a/></b></a> and i want insert <g/> into all <a> but after loop, this becomes <a><b><a><g/></a></b></a>. But it should be like this <a><g/><b><a><g/></a></b></a>.
Please help me.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic