<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Accessing Elements String Content and Childrens String content</TITLE>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 5.50.4616.200" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial color=#0000ff size=2></FONT>&nbsp;</DIV>
<DIV><SPAN class=140110221-12122001><FONT face=Arial color=#0000ff size=2>If you 
know the structure you can use getChildren to get a List and then iterate over 
it until you find the element you need. You can use counters to keep track of 
what child you are on.</FONT></SPAN></DIV>
<DIV><SPAN class=140110221-12122001><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=140110221-12122001><FONT face=Arial color=#0000ff size=2>You 
must have explicit knowledge of the structure and order for this to work. If the 
order changes then your code will break.</FONT></SPAN></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT>&nbsp;</DIV>
<BLOCKQUOTE 
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid">
  <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma 
  size=2>-----Original Message-----<BR><B>From:</B> jdom-interest-admin@jdom.org 
  [mailto:jdom-interest-admin@jdom.org]<B>On Behalf Of </B>Christian 
  Velez<BR><B>Sent:</B> Wednesday, December 12, 2001 2:42 PM<BR><B>To:</B> 
  'jdom-interest@jdom.org'<BR><B>Subject:</B> [jdom-interest] Accessing Elements 
  String Content and Childrens String content<BR><BR></FONT></DIV>
  <P><FONT face="Courier New" size=2>With the code below, is there a way that I 
  can access the String content</FONT> <BR><FONT face="Courier New" size=2>of 
  the CNAME element and its children 'Without' explicitly use child 
  element</FONT> <BR><FONT face="Courier New" size=2>names. For further 
  processing, I want to pull the string:</FONT> </P>
  <P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT face="Courier New" 
  size=2> Rev. Proc. 2001-43 and Profits Interest: ABCDEFGHIJK</FONT> </P>
  <P><FONT face="Courier New" size=2>&lt;NAME&gt;</FONT> <BR><FONT 
  face="Courier New" size=2>&nbsp;&nbsp;&nbsp; &lt;SLNK 
  SRCEID="ABC:638.3-1"&gt;</FONT> <BR><FONT face="Courier New" 
  size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;PLINK 
  N="2001-43"&gt;Rev. Proc. 2001-43&lt;/PLINK&gt;</FONT> <BR><FONT 
  face="Courier New" size=2>&nbsp;&nbsp;&nbsp; &lt;/SLNK&gt;</FONT> <BR><FONT 
  face="Courier New" size=2>&nbsp;&nbsp;&nbsp; &lt;PLINK N="2001-43"&gt;</FONT> 
  <BR><FONT face="Courier New" size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  &lt;M MID="ABC:638.3" MTYPE="LS" MDATE="20011011" MTIME="12501405"/&gt;</FONT> 
  <BR><FONT face="Courier New" size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  Rev. Proc. 2001-43&lt;/PLINK&gt; and Profits Interest: ABCDEFGHIJK</FONT> 
  <BR><FONT face="Courier New" size=2>&lt;/NAME&gt;</FONT> </P>
  <P><FONT face="Courier New" size=2>Any help is appreciated.</FONT> 
</P><BR></BLOCKQUOTE></BODY></HTML>