ObjectRealizer: How to load markup from file system?
Looks like a dumb question :-)
But when doing so repeatedly with relative path information all files
after the first are not found. A code snippet:
Object first = realizer.getObject("demo/betterTable.jdnc");
Object second = realizer.getObject("demo/simpleTable.jdnc");
will load the first and throws an Exception:
net.openmarkup.UnknownElementTypeException: Cannot open url:
looks like it has some kind of "memory" (note the duplicate "/demo"). If
I load the second by
Object second = realizer.getObject("simpleTable.jdnc")
all is okay.
I'm unsure if this behaviour is intentional (might well be - because
there's the defaultBaseURL property in ObjectRealizer) but it's a bit
unexpected. So, what's the recommended way to load the markup files?