Re: [dom4j-user] xpath problem

2009-04-16 Thread Matt.Rossner-prest
Well it's an HTML document. It does have an xmlns declaration, although it's been a while since I've done any XML so I don't remember exactly what that does. But the elements themselves, like don't have any namespace prefixed to them. The xmlns declaration is: http://www.w3.org/1999/xhtml"

[dom4j-user] Xpath problem

2009-04-16 Thread Matt.Rossner-prest
Hello, I'm having an issue with a very simple Xpath expression. I don't quite understand why this fails. Probably missing something obvious. This is just a simple example: SAXReader r = new SAXReader(); try { Document document = r.read(new File("c:\\file.xml"));

[dom4j-user] xpath problem

2009-04-16 Thread Matt.Rossner-prest
Hello, I'm having an issue with a very simple Xpath expression. I don't quite understand why this fails. Probably missing something obvious. This is just a simple example: SAXReader r = new SAXReader(); try { Document document = r.read(new File("c:\\file.xml"));