[jdom-interest] Question

MarkW markw at wilsoncom.de
Tue Oct 23 11:06:07 PDT 2001


>> <property>
>>     <test><hello>Hello</hello></test>
>> </property>
>> when I do the getText () , I should get back
"<test><hello>Hello</hello></test>" ...

You can use getText() to get "Hello" only.
would return "Hello" where propElement is the Element represented by

Hope it helps.
  -----Ursprüngliche Nachricht-----
  Von: jdom-interest-admin at jdom.org [mailto:jdom-interest-admin at jdom.org]Im
Auftrag von Yadav, Hemesh
  Gesendet: Dienstag, 23. Oktober 2001 19:09
  An: jdom-interest at jdom.org
  Betreff: [jdom-interest] Question

  I have a small problem getting the element value ::;

  example ::

             value #CDATA

  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 ..


  when I do the getText () , I should get back
"<test><hello>Hello</hello></test>" ...

  Any suggestion .
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://jdom.org/pipermail/jdom-interest/attachments/20011023/5d10eadf/attachment.htm

More information about the jdom-interest mailing list