<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META content="MSHTML 5.50.4522.1800" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN
class=845005916-25072001>Hello!</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=845005916-25072001></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=845005916-25072001>I am trying to
filter some tags using XMLFilter. </SPAN></FONT></DIV>
<P><FONT size=2><FONT face=Arial> SAXBuilder builder = new SAXBuilder
();<BR> builder.setExpandEntities ( false
);<BR> builder.setXMLFilter ( filter );<BR></FONT><FONT
face=Arial> in_doc = builder.build ( in_file );</FONT></FONT></P>
<DIV><FONT face=Arial size=2><SPAN class=845005916-25072001>It works except one
little thing: I don't now how to filter the unexpanded
entities.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=845005916-25072001>Entites like
&sect; or &uuml; within the tag's text content remain
while which I can otherwise sucessfully filter the text
content.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=845005916-25072001></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=845005916-25072001>(Another way would
be to expand the entities on read and reencode them when outputting XML. But I
have not found an easy way to do that in JDom b7.)</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=845005916-25072001></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=845005916-25072001>Stefan</SPAN></FONT></DIV>
<DIV><FONT size=2></FONT><FONT face=Arial> </DIV>
<P><FONT size=2><BR></FONT></P></FONT></BODY></HTML>