angelozerr / eclipse-wtp-xml-search

Eclipse WTP/XML Search
Other
12 stars 6 forks source link

Doesn't seem to work with namespaces #50

Open davidmichaelkarr opened 6 years ago

davidmichaelkarr commented 6 years ago

It's been a few years since there's been any activity here, but I'll ask about this anyway.

After I installed this, I went into a Maven pom.xml file, double-clicked on the "version" element in a dependency and went into search. In the XML tab, it had the following as the default value:

/ns:project/ns:dependencies/ns:dependency/ns:version

I then let it search all of my project. It found nothing, not even the current file. I imagine this has something to do with namespaces, a typical problem area with xpath. I tried removing the "ns:" from the element refs, and that still found nothing.

angelozerr commented 6 years ago

Yes I know this problem. Not found a solution with that.

davidmichaelkarr commented 6 years ago

I thought that perhaps adding an entry to the XML catalog in Eclipse preferences would then let me use that registered prefix, but that didn't work.

angelozerr commented 6 years ago

To be honnest with you, it was so many years that I have tried to fix this problem. It's a XPath problem if I remember, but I had given up since I don't need this feature today.

demonfiddler commented 6 years ago

@davidmichaelkarr Oddly enough, I just installed it myself in order to do exactly the same workspace search, and found the same problem. Shame. What use is an XPath search (or any XML tool for that matter) that doesn't support namespaces?