<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:"Comic Sans MS";
        panose-1:3 15 7 2 3 3 2 2 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Comic Sans MS";
        color:windowtext;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><span class=value3><font size=1 color="#333333" face=Arial><span
style='font-size:8.0pt;font-family:Arial;color:#333333'>good morning,</span></font></span><font
size=1 color="#333333" face=Arial><span style='font-size:8.0pt;font-family:
Arial;color:#333333'><br>
<span class=value3>I have this xml file that I need to access the Text
&quot;Dish.&quot; &nbsp;I have listed what &nbsp;quit works and does not work.
&nbsp;Please see attached file.</span><br>
<br>
<span class=value3>&lt;CatParameters xmlns:xsi=&quot;<a
href="http://www.w3.org/2001/XMLSchema-instance" target="_blank">http://www.w3.o<wbr>rg/2001/XM<wbr>LSchema-in<wbr>stance</a>&quot;&gt;</span><br>
<span class=value3>&nbsp; &nbsp; &lt;CatInputs&gt;</span><br>
<span class=value3>&nbsp; &nbsp; &nbsp; &nbsp; &lt;InputValue
Name=&quot;Food&quot;&gt;</span><br>
<span class=value3>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&lt;From&gt;MotherCat&lt;/From&gt;</span><br>
<span class=value3>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;Where&gt;</span><br>
<span class=value3>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&lt;On&gt;<b><span style='font-weight:bold'>Dish</span></b>&lt;/On&gt;</span><br>
<span class=value3>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/Where&gt;</span><br>
<span class=value3>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;Get
Name=&quot;Tom&quot;&gt;WHITE&lt;/Get&gt;</span><br>
<span class=value3>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;Get
Name=&quot;Jerry&quot;&gt;<b><span style='font-weight:bold'>BLACK</span></b>&lt;/Get&gt;</span><br>
<span class=value3>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;Get
Name=&quot;Sam&quot;&gt;GREY&lt;/Get&gt;</span><br>
<span class=value3>&nbsp; &nbsp; &nbsp; &nbsp; &lt;/InputValue&gt;</span><br>
<br>
<span class=value3>descendant_2 = Where</span><br>
<span class=value3>secondDescendant_1 = On</span><br>
<span class=value3>descendant_3 = Get</span><br>
<span class=value3>attributeValue = Name</span><br>
<br>
<span class=value3>With this syntax, I am able to get at <b><span
style='font-weight:bold'>Dish</span></b>, but that is because an attribute is
not associated with</span><br>
<span class=value3>the element On.</span><br>
<span class=value3>String secondDescendant1Data = subParentElement.getChild(<wbr>descendant<wbr>_2).getChi<wbr>ldText(sec<wbr>ondDescend<wbr>ant_1);</span><br>
<span class=value3>System.out.print(&quot;\n secondDescendant1 Text: &quot; +
secondDescendant1Data);// child's descendant2 Where Dish</span><br>
<br>
<span class=value3>I get WHITE with this, but I do not have an API/library
component ti get to the next element &nbsp;<b><span style='font-weight:bold'>BLACK</span></b>.</span><br>
<span class=value3>String secondDescendant3Data = subParentElement.getChild(<wbr>descendant<wbr>_3).getVal<wbr>ue();//Thi<wbr>s
works!</span><br>
<br>
<span class=value3>I get Tom with this syntax;</span><br>
<span class=value3>String secondDescendant3Data = subParentElement.getChild(<wbr>descendant<wbr>_3).getAtt<wbr>ribute(att<wbr>ributeValu<wbr>e).getValu<wbr>e();</span><br>
<br>
<br>
<span class=value3>With this syntax I get the actual attribute: Name;</span><br>
<span class=value3>String secondDescendant3Data = subParentElement.getChild(<wbr>descendant<wbr>_3).getAtt<wbr>ribute(att<wbr>ributeValu<wbr>e).getName<wbr>();//Name</span><br>
<br>
<span class=value3>I need syntax like this, but there is none;</span><br>
<span class=value3>String secondDescendant3Data = subParentElement.getChild(<wbr>descendant<wbr>_3).getAtt<wbr>ributeValu<wbr>e(attribut<wbr>eValue).ge<wbr>tText(of
Tom);</span><br>
<br>
<span class=value3>But there isn&#8217;t an API method that works!</span><br>
<span class=value3>Might you be able to suggest a solution?<o:p></o:p></span></span></font></p>

<p class=MsoNormal><span class=value3><font size=1 color="#333333" face=Arial><span
style='font-size:8.0pt;font-family:Arial;color:#333333'><o:p>&nbsp;</o:p></span></font></span></p>

<p class=MsoNormal><span class=value3><font size=1 color="#333333" face=Arial><span
style='font-size:8.0pt;font-family:Arial;color:#333333'>Thank you.&nbsp; I would
appreciate your comments.<o:p></o:p></span></font></span></p>

<p class=MsoNormal><span class=value3><font size=1 color="#333333" face=Arial><span
style='font-size:8.0pt;font-family:Arial;color:#333333'>will</span></font></span><o:p></o:p></p>

</div>

</body>

</html>