G
Gregory
Hi everyone.
I would like to create XML string or file according to a Schema (the
DOMWriter to output the XML string according to a Schema).
Does anyone know how to do that?
example:
DOMWriter *theSerializer =
((DOMImplementationLS*)impl)->createDOMWriter();
XMLFormatTarget myFormTarget = new LocalFileFormatTarget(outputFile);
DOMNode *docToWrite = doc;
if ( theSerializer->canSetFeature(XMLUni::fgDOMWRTFormatPrettyPrint,
true) )
theSerializer->setFeature(XMLUni::fgDOMWRTFormatPrettyPrint, true);
theSerializer->writeNode(myFormTarget ,*docToWrite);
Somewhere along the line I would like to set a schema location that
the
output has to obey. How can I add a schema location (preferably a
local one).
Thanks in advance
I would like to create XML string or file according to a Schema (the
DOMWriter to output the XML string according to a Schema).
Does anyone know how to do that?
example:
DOMWriter *theSerializer =
((DOMImplementationLS*)impl)->createDOMWriter();
XMLFormatTarget myFormTarget = new LocalFileFormatTarget(outputFile);
DOMNode *docToWrite = doc;
if ( theSerializer->canSetFeature(XMLUni::fgDOMWRTFormatPrettyPrint,
true) )
theSerializer->setFeature(XMLUni::fgDOMWRTFormatPrettyPrint, true);
theSerializer->writeNode(myFormTarget ,*docToWrite);
Somewhere along the line I would like to set a schema location that
the
output has to obey. How can I add a schema location (preferably a
local one).
Thanks in advance