title: XML Editor in java(jsp,sevlet)
body: <p>I am developing xml editor using jsp and servlet. In this case i am using DOM parser.</p>
  
  <p>I have one problem in XML editor ,
  How to edit the following xml file without losing elements.
  eg:</p>
  
  <pre><code>&lt;book id="b1"&gt;
  &lt;bookbegin id="bb1"&gt;
  &lt;para id="p1"&gt;This is&lt;b&gt;first&lt;/b&gt;line&lt;/para&gt;
  &lt;para id="p2"&gt;This is&lt;b&gt;second&lt;/b&gt;line&lt;/para&gt;
  &lt;para id="p3"&gt;This is&lt;b&gt;third&lt;/b&gt;line&lt;/para&gt;
  &lt;/bookbegin&gt;
  &lt;/book&gt;
  </code></pre>
  
  <p>I try to edit the above xml file using dtd using jsp,servlet. but while i read the textvalue from xml, it return only first,second,third.How to read the 'This is' and 'line '. Then how to store back to the xml file using xpath.</p>
  
  <p>thank in advance. </p>