Sponsors: Michael Fertik - Best JAVA Web hosting Company & 30% off


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-01-2010, 09:49 AM
Member
 
Join Date: Feb 2010
Posts: 2
Rep Power: 0
manimca1984@gmail.com is on a distinguished road
Red face XML Editor in java(Jsp, Servlet)
Hi,
I am developing xml editor using jsp and servlet. In this case i am using DOM parser.

I have one problem in XML editor ,
How to edit the following xml file without losing elements.
eg:
<book id="b1">
<bookbegin id="bb1">
<para id="p1">This is<b>first</b>line</para>
<para id="p2">This is<b>second</b>line</para>
<para id="p3">This is<b>third</b>line</para>
</bookbegin>
</book>

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.

thank in advance.
Bookmark Post in Technorati
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
JBE Java Bytecode Editor lucnap Advanced Java 3 04-11-2009 08:00 PM
Java image editor jokerbla New To Java 0 04-11-2009 04:57 PM
Editor for Java peiceonly New To Java 4 08-13-2008 08:27 AM
Editor for java thirdy_veritech Other IDEs 6 12-24-2007 06:17 AM
Help about how to implement a graphical editor in java xiul Java 2D 0 11-29-2007 08:19 PM


Java Forums is supported by the best jsp hosting.

All times are GMT +2. The time now is 09:14 PM.



VBulletin, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2009, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org