<p>do you know any not strict xpath for java? (I want it to not check dtd and schema) and it would be cool if it dont care about correct xml.</p>

Ok, first of all, "correct xml" can be interpreted in a couple of ways.  If you mean "non-well-formed" (missing angle brackets, overlapping elements, etc.), no version of xpath would likely do anything useful with that.  You'd be better off with some sort of regular expressions.  If your XML isn't well-formed, I hope you have some clue of how it won't be well-formed, otherwise you have no hope of getting anywhere with it.
If you actually mean "invalid", which simply means it doesn't validate against a schema or DTD, then you can use predicates which compare against the "local-name()" function.  For instance, if you want to find the "/foo/bar" element, ignoring schemas, then your xpath would look like this:
```
```
/*[local-name()='foo']/*[local-name()='bar']
```
```