This content has been marked as final. Show 3 replies
Those are String values. You compare a single String value to two different constants.
For one comparison it returns true, for the other one, it returns false.
Why exactly is that a surprise?
They systemID given to you here is simply the value as stated in the XML. Only if you don't return anything here, will the value be interpreted as an URI. Until then you get a verbatim copy of what was specified.
But my question is about creating that InputSource. The problem is, that when I state absolute path to .xsd file ("file:///D:/work/workspace/example/data/cars.xsd") everything works, but when I set relative path ("data/cars.xsd") it doesn't. And I can't have absolute path there.
I've got it: String defaultXsd = "file:./data/cars.xsd";