Saving and loading xml to/from file using TfsXMLDocument class does not preserve xml formatting or v

edited 2:05AM in FastReport 4.0
Hi,

I am trying to load in an xml file containing the following:

<?xml version="1.0"?>
<Minimum>test</Minimum>

When I save it back to file this is what I get:

<?xml version="1.0"?>
<Minimum/>

Is there a problem with the component or am I doing something wrong. My JScript is below:

var myXML = TfsXMLDocument.Create;
myXML.loadFromFile("h:\\test2.xml");
myXML.savetofile("h:\\test3.xml");

Thanks,

Paul

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.