Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Namespaces? #10

Open
sampov2 opened this issue Oct 23, 2012 · 1 comment
Open

Namespaces? #10

sampov2 opened this issue Oct 23, 2012 · 1 comment

Comments

@sampov2
Copy link

sampov2 commented Oct 23, 2012

What a great tool. However, I really need namespace-awareness. More specifically, I need to match elements belonging to certain namespaces.

Document document = factory.newDocumentBuilder().parse(input);
DOMNodeSelector nodeSelector = new DOMNodeSelector(document);
nodeSelector.registerNamespace("namespace", "http://www.what.com/namespace/1.0");

Set result = nodeSelector.querySelectorAll("namespace|Element > namespace|Child");

Do you have any interest in such a feature?

@chrsan
Copy link
Owner

chrsan commented Oct 23, 2012

Hi!

Thanks a lot. I my self doesn't have any need for that but wouldn't mind
that feature being part of the library. Do you have any suggestion up front
of how to do it?

/Christer

On Tue, Oct 23, 2012 at 3:16 PM, sampov2 notifications@github.com wrote:

What a great tool. However, I really need namespace-awareness. More
specifically, I need to match elements belonging to certain namespaces.

Document document = factory.newDocumentBuilder().parse(input);
DOMNodeSelector nodeSelector = new DOMNodeSelector(document);
nodeSelector.registerNamespace("namespace", "
http://www.what.com/namespace/1.0");

Set result = nodeSelector.querySelectorAll("namespace|Element >
namespace|Child");

Do you have any interest in such a feature?


Reply to this email directly or view it on GitHubhttps://github.com//issues/10.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants