Hi,
I am writing a DOM tree to a file. Have a look at this code snippet:
SomeFn () {
... // SOme code
// writing to test1.xml, the tree represented by root.
myFormTarget = new
LocalFileFormatTarget("C:\\Mandeep\\Xerces\\samples\\DOMPrint\\test1.xml");
xercesWriter->writeNode(myFormTarget,*root);
delete myFormTarget;
... // Some code
}
I am writing to a file thru writeNode using LocalFileFormatTarget. But only
thing getting printed in xml file is this: <
Please note that when I write out the same root node to a string using
writeToNode, then the string contains the whole xml represented by root.
Also note that I have tested this thing in sample code (the DOMPrint sample)
and there it is successful. The xml file is written properly.
Any clues of what might have gone wrong??
regards,
Mandeep.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]