So I am storing URN references to documents in a database, and then trying to re-instantiate them on retrieval. I am not storing the documents or URNs as XML as it doesn't make sense for my particular purposes.
I can get the "string" version of the URN just fine, but when I try to turn this back into a URN, I can't find a good method.
URN a = new URN(someString);
Just creates a new URN using that string as input. Is there any way, simply using the result of urn.toString(), to recreate the same URN?
Please sign in to leave a comment.