[tagsoup-friends] Thank you for great product! Workaround for namespace issue

42 views
Skip to first unread message

misha680

unread,
May 12, 2010, 11:32:51 AM5/12/10
to tagsoup-friends
Dear All:

I am using tagsoup with XOM. It is working great, however I have run
into the following namespace issues as described here:
http://www.supermind.org/blog/613/dom4j-xpath-tagsoup-namespaces-sweet

Per the post, it looks like there is not an easy solution, but I was
hoping perhaps that there might be something (new) I am missing?

Thank you
Misha

p.s. I will be using tagsoup for a general Web Automation Framework
for SWT - please see www.mkosh.com for current (early) version that is
based on Javascript. I have now added a tagsoup/XOM framework for
XPath support. Thank you again.

John Cowan

unread,
May 12, 2010, 1:52:49 PM5/12/10
to misha680, tagsoup-friends
misha680 scripsit:

> I am using tagsoup with XOM. It is working great, however I have run
> into the following namespace issues as described here:
> http://www.supermind.org/blog/613/dom4j-xpath-tagsoup-namespaces-sweet
>
> Per the post, it looks like there is not an easy solution, but I was
> hoping perhaps that there might be something (new) I am missing?

Well, you could suck it up and use html: prefixes in your XPath expressions,
which is what I would recommend.

There is a long-standing bug in getting TagSoup not to send namespace
information. When I get a chance I'll work on that.

--
John Cowan http://ccil.org/~cowan co...@ccil.org
'My young friend, if you do not now, immediately and instantly, pull
as hard as ever you can, it is my opinion that your acquaintance in the
large-pattern leather ulster' (and by this he meant the Crocodile) 'will
jerk you into yonder limpid stream before you can say Jack Robinson.'
--the Bi-Coloured-Python-Rock-Snake

Misha Koshelev

unread,
May 12, 2010, 2:03:08 PM5/12/10
to John Cowan, tagsoup-friends
Thank you so much.

I am working on a Web Automation Framework
www.mkosh.com
that emulates WebDriver for SWT Browser widget, and thus would not like to restrict the users that
way.

However, I will think of a workaround.

Thank you
Misha

p.s. Any opinion on XOM vs DOM4j btw? It seems that I can use tagsoup with both.... Thank you!
Reply all
Reply to author
Forward
0 new messages