RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TXMLTransform.SourceXml Property

Specifies a string of XML to be translated.

Pascal
property SourceXml: string;
C++
__property AnsiString SourceXml;

Specify the XML to be translated as the value of SourceXml. SourceXml can be the text of any XML document, including an XML data packet. It must, however, conform to the schema expected by the transformation specified by TransformationFile or TransformationDocument. If the transformation converts a specific type of XML document into a data packet, SourceXml must conform to the expected schema. If the transformation converts a data packet into an XML document, SourceXml is an XML data packet with the expected metadata. 

SourceXmlDocument is used only if the SourceXmlFile property has not been set. If both SourceXmlFile and SourceXml are empty strings, TXMLTransform uses the SourceXmlDocument property instead. SourceXml takes precedence over SourceXmlDocument: If SourceXmlDocument is set, TXMLTransform still uses SourceXml (even if its value is not a valid string of XML). 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!