}
public XMLReader.SectionHandler startElement(XMLReader.XMLName aTag, Map anAttributes) throws XMLReader.XMLReaderExc {
- if (aTag.getLocalName().equals("rss")) {
+// if (aTag.getLocalName().equals("rss")) {
return new RSS091SectionHandler(data);
- }
- else
- throw new XMLReader.XMLReaderFailure(new RSSExc("'rss' tag expected"));
+// }
+// else
+// throw new XMLReader.XMLReaderFailure(new RSSExc("'rss' tag expected"));
};
public void endElement(XMLReader.SectionHandler aHandler) throws XMLReader.XMLReaderExc {
import java.util.*;
import mir.util.*;
+import gnu.regexp.RE;
+
public class RSSTest {
public static void main(String[] args) {
+
RSSReader reader = new RSSReader();
RSS091Reader reader2 = new RSS091Reader();
try {
- RSSData wvl = reader2.parseUrl("http://paris.indymedia.org/backendg8.php3");
+ RE test = new RE(".*\\bLB\\b.*", RE.REG_ICASE);
+ System.out.println(" LB II : " + test.isMatch("LB II"));
+ System.out.println(" revised LB: " + test.isMatch("revised LB"));
+ System.out.println(" revised LB II : " + test.isMatch("revised LB II"));
+ System.out.println(" buLB: " + test.isMatch("buLB"));
+
+// RSSData wvl = reader2.parseUrl("http://paris.indymedia.org/backendg8.php3");
// Object result = StructuredContentParser.parse(" { a = 'b' 'as a' = [ 'asd' asd 'asdas asd as''asd' ] }") ;
- System.out.println("" + wvl.get("rss:item"));
+// System.out.println("" + wvl.get("rss:item"));
// RSSData fr = reader2.parseUrl("http://paris.indymedia.org/backendg8.php3");
// RSSData be = reader.parseUrl("http://belgium.indymedia.org/features.rdf");