[jdom-interest] help please

Hugh Mc Gauran hugh.mcgauran at skynet.ie
Tue Mar 27 01:15:51 PST 2001


I have posted a couple of times before and the answers have been very
helpful, i hope someone can help me with thois problem

I have an xml document 21-3-01.xml

i want to be able to read it in and get the text contained in the
description and the note ...no matter what i do it just wont work for
me. any ideas

i have tried
doc.getRootElement().getChild("EightToNine").getChild("Description").getText();

to no avail...
the xml file is as follows

<?xml version="1.0" encoding="UTF-8"?>
<diary>
  <EightToNine>
      <Description>This is a description.</Description>
      <Note>This is a note</Note>
   </EightToNine>
</diary>




-- 
Regards
Hugh
25 Plassey Vge,Castletroy, Limerick.
House Tel 061 337125		 Mobile 086 8298 707.
Email cantona at skynet.ie 	 Web http://hughmc.csn.ul.ie




More information about the jdom-interest mailing list