[jdom-interest] Filtering entities

Wagner Stefan AII/Wien Stefan.Wagner at aiinformatics.com
Wed Jul 25 10:08:46 PDT 2001


Hello!
 
I am trying to filter some tags using XMLFilter. 

  SAXBuilder builder = new SAXBuilder ();
  builder.setExpandEntities ( false );
  builder.setXMLFilter ( filter );
  in_doc = builder.build ( in_file );

It works except one little thing: I don't now how to filter the unexpanded
entities.
Entites like § or ü within the tag's text content remain while
which I can otherwise sucessfully filter the text content.
 
(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.)
 
Stefan
 




-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://jdom.org/pipermail/jdom-interest/attachments/20010725/63dc2e5b/attachment.htm


More information about the jdom-interest mailing list