09-27-2013 04:01 AM
Hi,
I have sequence which is calling executable and I want to pass as argument xml representation of currently opened sequence file.
I have tried to pass something like - RunState.SequenceFile.Path.GetXML(XMLOption_NoOptions,0) but I get only "<TS?" string.
How can I achieve it? I dont mind if it pass xml file, or xml as string. Thanks a lot!
Solved! Go to Solution.
09-27-2013 10:24 AM
There are two XML formats. The one returned by GetXML is used for XML reports, not sequence files. The XML sequence file format is obtained by changing the FileWritingFormat of the file to XML (seqfile.AsPropertyObjectFile().FileWritingFormat) if it isn't already set to that, and then saving the file to disk. You can serialize the data for the sequence file in a similar XML format using Engine.SerializeObjects() using the serialization option SerializationOption_UseXml, but it will not be a sequence file. You will have to deserialize using Engine.UnserializeObjects to read it back into a sequence file.
If you explain in more detail what you are trying to do, I could perhaps suggest what might be the best approach.
-Doug