<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Message</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2800.1276" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=129230217-08122003><FONT face=Arial size=2>No matter how I try
to filter content, no filtering seems to actually occur. For instance,
here is my snippet:</FONT></SPAN></DIV>
<DIV><SPAN class=129230217-08122003><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=129230217-08122003><FONT face=Arial
size=2> Document doc =
builder.build("sampleOrder.xml");<BR>
Element root =
doc.getRootElement();<BR> Namespace
namespace = root.getNamespace();<BR>
Element lineItemsElement = root.getChild("LineItems",
namespace);<BR> List lineItems =
lineItemsElement.getChildren();<BR>
Iterator lineItemIterator =
lineItems.iterator();<BR> Element
lineItem = null;<BR>
while(lineItemIterator.hasNext() )
<BR>
{<BR> lineItem
= (Element)lineItemIterator.next();<BR>
List lineItemPrimers =
lineItem.getChildren("Primer", namespace);</FONT></SPAN></DIV>
<DIV><SPAN class=129230217-08122003><FONT face=Arial
size=2> }<BR></DIV></FONT></SPAN>
<DIV><SPAN class=129230217-08122003><FONT face=Arial size=2>lineItemPrimers
contains not just Primer elements but all elements in a LineItem. When I
look at the code for getChildren(...), I see no place where filtering actually
takes place. Am I missing something or is this a bug?</FONT></SPAN></DIV>
<DIV><SPAN class=129230217-08122003><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=129230217-08122003><FONT face=Arial
size=2>Joe</FONT></SPAN></DIV></BODY></HTML>