I am trying to write an XML document from scratch using the XMLEventWriter from the StAX API.
I cannot figure out how to get the default namespace attribute to be emitted.
For example, the default namespace URI string is "http://www.liquibase.org/xml/ns/dbchangelog/1.9". I want that to be present in my XML root element as xmlns="http://www.liquibase.org/xml/ns/dbchangelog/1.9".
What's the magic recipe here? XMLEventWriter.setDefaultNamespace() didn't work.
Thanks, Laird