<!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> </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> </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> </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> <FONT face="Courier New"
size=2> Rev. Proc. 2001-43 and Profits Interest: ABCDEFGHIJK</FONT> </P>
<P><FONT face="Courier New" size=2><NAME></FONT> <BR><FONT
face="Courier New" size=2> <SLNK
SRCEID="ABC:638.3-1"></FONT> <BR><FONT face="Courier New"
size=2> <PLINK
N="2001-43">Rev. Proc. 2001-43</PLINK></FONT> <BR><FONT
face="Courier New" size=2> </SLNK></FONT> <BR><FONT
face="Courier New" size=2> <PLINK N="2001-43"></FONT>
<BR><FONT face="Courier New" size=2>
<M MID="ABC:638.3" MTYPE="LS" MDATE="20011011" MTIME="12501405"/></FONT>
<BR><FONT face="Courier New" size=2>
Rev. Proc. 2001-43</PLINK> and Profits Interest: ABCDEFGHIJK</FONT>
<BR><FONT face="Courier New" size=2></NAME></FONT> </P>
<P><FONT face="Courier New" size=2>Any help is appreciated.</FONT>
</P><BR></BLOCKQUOTE></BODY></HTML>