Skip to content

Do not require namespace for xmlns without prefix #34

Open
@Rhobal

Description

As I have found out after quite some trial and error (see #32), to match XPath in an <html xmlns="http://www.w3.org/1999/xhtml"> tag, I need to use the "http://www.w3.org/1999/xhtml" namespace and need to prefix all tags.

Thus, I cannot just use any XPath tool to create the XPath expressions. It would be simpler if xmlns without prefix would not require a prefix in XhtmlMatchers either. Or more commonly, the prefixes in the XPath should be the same as those in xmlns.

Right now, it seems I'm better off removing the xmlns before feeding the xhtml to XhtmlMatchers.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions