<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 5.50.4134.600" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face="Courier New" color=#0000ff size=2><SPAN
class=614024817-23102001>Hi,</SPAN></FONT></DIV>
<DIV><FONT face="Courier New"><SPAN class=400220517-23102001><FONT
face=Arial><FONT color=#0000ff><FONT size=2><SPAN
class=614024817-23102001></SPAN></FONT></FONT></FONT></SPAN> </DIV>
<DIV>
<DIV><SPAN class=400220517-23102001><SPAN class=614024817-23102001></SPAN><FONT
face=Arial><FONT color=#0000ff><FONT size=2><SPAN
class=614024817-23102001>>>
</SPAN><property></FONT></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=400220517-23102001><FONT face=Arial><FONT color=#0000ff><FONT
size=2><SPAN class=614024817-23102001>>></SPAN>
<test><hello>Hello</hello></test></FONT></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=400220517-23102001><FONT face=Arial><FONT color=#0000ff><FONT
size=2><SPAN class=614024817-23102001>>>
</SPAN></property></FONT></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=400220517-23102001><FONT face=Arial color=#0000ff size=2><SPAN
class=614024817-23102001>>></SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=400220517-23102001><FONT face=Arial><FONT color=#0000ff><FONT
size=2><SPAN class=614024817-23102001>>>
</SPAN></FONT></FONT></FONT></SPAN><SPAN class=400220517-23102001><FONT
face=Arial><FONT color=#0000ff><FONT size=2>when I do the getText () , I should
get back "<test><hello>Hello</hello></test>"
...</FONT></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=400220517-23102001><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=400220517-23102001><FONT face=Arial color=#0000ff size=2><SPAN
class=614024817-23102001>You can use getText() to get "Hello"
only.</SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=400220517-23102001><FONT face=Arial color=#0000ff size=2><SPAN
class=614024817-23102001>propElement.getChild().getChild().getText();</SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=400220517-23102001><FONT face=Arial color=#0000ff size=2><SPAN
class=614024817-23102001>would return "Hello" where propElement is the Element
represented by <property>.</SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=400220517-23102001><FONT face=Arial color=#0000ff size=2><SPAN
class=614024817-23102001></SPAN></FONT></SPAN> </DIV>
<DIV><SPAN class=400220517-23102001><FONT face=Arial color=#0000ff size=2><SPAN
class=614024817-23102001>Hope it helps.</SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=400220517-23102001><FONT face=Arial color=#0000ff size=2><SPAN
class=614024817-23102001>Mark</SPAN></FONT></SPAN></DIV></FONT></DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Ursprüngliche Nachricht-----<BR><B>Von:</B>
jdom-interest-admin@jdom.org [mailto:jdom-interest-admin@jdom.org]<B>Im
Auftrag von </B>Yadav, Hemesh<BR><B>Gesendet:</B> Dienstag, 23. Oktober 2001
19:09<BR><B>An:</B> jdom-interest@jdom.org<BR><B>Betreff:</B> [jdom-interest]
Question<BR><BR></FONT></DIV>
<DIV><SPAN class=400220517-23102001><FONT face=Arial size=2>I have a small
problem getting the element value ::;</FONT></SPAN></DIV>
<DIV><SPAN class=400220517-23102001><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=400220517-23102001><FONT face=Arial size=2>example
::</FONT></SPAN></DIV>
<DIV><SPAN class=400220517-23102001><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=400220517-23102001><FONT face=Arial
size=2><property></FONT></SPAN></DIV>
<DIV><SPAN class=400220517-23102001><FONT face=Arial
size=2>
value #CDATA </FONT></SPAN></DIV>
<DIV><SPAN class=400220517-23102001><FONT face=Arial
size=2></property></FONT></SPAN></DIV>
<DIV><SPAN class=400220517-23102001><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=400220517-23102001><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=400220517-23102001><FONT face=Arial size=2>When I do the
getText() , I get the value back but when I try to put the XML doc as a CDATA
, I can't read it ... Any better way to do that ..</FONT></SPAN></DIV>
<DIV><SPAN class=400220517-23102001><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=400220517-23102001><FONT face=Arial
size=2><property></FONT></SPAN></DIV>
<DIV><SPAN class=400220517-23102001><FONT face=Arial
size=2>
<test><hello>Hello</hello></test></FONT></SPAN></DIV>
<DIV><SPAN class=400220517-23102001><FONT face=Arial
size=2></property></FONT></SPAN></DIV>
<DIV><SPAN class=400220517-23102001><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=400220517-23102001><FONT face=Arial size=2>when I do the
getText () , I should get back
"<test><hello>Hello</hello></test>"
...</FONT></SPAN></DIV>
<DIV><SPAN class=400220517-23102001><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=400220517-23102001><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=400220517-23102001><FONT face=Arial size=2>Any suggestion
.</FONT></SPAN></DIV></BLOCKQUOTE></BODY></HTML>