[Htmlparser-user] Ignore case of attributes
Brought to you by:
derrickoswald
From: Luca T. <tuk...@gm...> - 2007-03-20 12:53:21
|
Hello everyone, I'm a newbie of htmlparser libraries so apologies for asking a possibly easy question. I have different HTML pages to parse, with the same meta attributes in different case fashions: for instance: case 1: <meta name="description" ...> case 2: <meta name="Description" ...> etc. I wrote a NodeFilter as follows: NodeFilter DescriptionMetaTag = new AndFilter (new TagNameFilter ("meta"), new HasAttributeFilter("name", "Description")); but it doesn't match the case 1. How can I correct the filter to match any possible case of the "description" keyword? Thanks in advance, Luca |