I'm trying to save a model instance created using
Pedro. I don;t use any namespaces, so the saved XML
should use an xsi:noSchemaNamespaceLocation rather than
an xsi:schemaLocation. Unfortunately this is not the
case, so other validating XML parsers baulk when
parsing my doc.
I think that Pedro should actually do this for me, as
my model isn't using a namespace.
In addition it would be good to have the ability to
specify the location of the schema associated with the
output document, so that I can save both the schema and
the XML instance to a local directory, e.g.:
StringBuffer mySchemaLocation = new
StringBuffer(somewhere);
mySchemaLocation.append("\" + schemaName);
pedroFileWriter.writeFile(f, rootNode.getRecordModel(),
true, mySchemaLocation);
so that I can save bot the XML doc and the schema to a
local dir so allow use of the doc within another
environment.
Tony