How about running a XPath expression from Java?
Pretty straight forward right, oh wait NAMESPACE!!!!
Here's a example on how to create your xpaht parser and the more complex Name Space Context.
Let's start with the NameSpaceContextImpl
Now the actual Xpath parser imple:
Hope it helps guy!!!
Haven't you always find your self googling the same old thing you used to do always when coding? Well that's what ForgettableDev is for: a compound of really stupid stuff that we always forget HOW TO DO and it takes hours to find.
viernes, 17 de abril de 2015
The famous Jar Hell issue
So I reckon I'm not the first one to have this problem. I'm certainly not the one who will tell you how to solve it BUT!!!!
Here is a really small example about using the JHades tool
Why am I posting this?
Because the example in the home page is a little bit outdated and if you search JHades for the maven dependency the first 4 links you hit get it wrong.
Maven Dependency
Java Code
You should place this in some place that you are sure it'll get run during building.
If you have issues during tests. Just create a test where the test method has this code.
Hope this helps!
Here is a really small example about using the JHades tool
Why am I posting this?
Because the example in the home page is a little bit outdated and if you search JHades for the maven dependency the first 4 links you hit get it wrong.
Maven Dependency
Java Code
You should place this in some place that you are sure it'll get run during building.
If you have issues during tests. Just create a test where the test method has this code.
Hope this helps!
Suscribirse a:
Entradas (Atom)