XML Editor in java(jsp,sevlet) -


I am developing XML editor using jsp and servlet. In this case I am using DOM Parser.

I have a problem with XML editor, how to edit the following XML files without losing elements. Example:

  & lt; Book ID = "B1" & gt; & Lt; Bookbegin id = "bb1" & gt; & Lt; Paragraph id = "p1" & gt; This is & lt; B & gt; First & lt; / B & gt; Line & lt; / Paragraph & gt; & Lt; Paragraph id = "p2" & gt; This & lt; B & gt; Second & lt; / B & gt; Line & lt; / Paragraph & gt; & Lt; Paragraph id = "p3" & gt; This & lt; B & gt; Third & lt; / B & gt; Line & lt; / Paragraph & gt; & Lt; / Bookbegin & gt; & Lt; / Book & gt;  

I try to edit the above XML file using dsp using jsp, servlet. But when I read Textual from XML, it only gives first, second, thirds. To read 'this is' and 'line', then how to store the XML file back using xpath.

Thank you in advance & lt; Para & gt

& lt; B & gt; tag; tag is another element, not a formatting tag (in XML), therefore, you need to downgrade it.


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -