
Hi, If I have this as my HTML <html> <head></head> <body> <a> <b>city</b>My City <b>state</b>My State </a> </body> </html> and I have this as my code s = '<html><head></head><body><a><b>city</b>City<b>state</b>State</a></body>' s1 = etree.HTML(s) How can I get (find or findall or something else) "My City" and "My State" using lxml? Thanks in advance. Silent

btw - I have tried get next() and 'following-sibling' - they do not work. following-sibing gives me an error prefix 'following-sibling' not found in prefix map getnext() on the first "b" element should return "My City", but it returns the "state" element. SS On Sat, Feb 16, 2013 at 6:29 PM, Sandip Shah <sandipshah@vthrive.com> wrote:

btw - I have tried get next() and 'following-sibling' - they do not work. following-sibing gives me an error prefix 'following-sibling' not found in prefix map getnext() on the first "b" element should return "My City", but it returns the "state" element. SS On Sat, Feb 16, 2013 at 6:29 PM, Sandip Shah <sandipshah@vthrive.com> wrote:
participants (2)
-
Piotr Owcarz
-
Sandip Shah