You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There's already an open issue #27 on this. The library works with DOMs that are parsed that way, but parsing with that mime type implicitly puts the nodes in the http://www.w3.org/1999/xhtml namespace (this is the parser's doing, not the xpath library). That's why you're not finding any matches with //title.
a small adjustment to the sample code stops it working:
nodes
is an empty array.I don't know whether this is an issue with xmldom or xpath but this fixes it:
Obviously this is terribly inefficient but it does work.
The text was updated successfully, but these errors were encountered: