Xml.XmlTransform.TXMLTransform.OnTranslate
Delphi
property OnTranslate: TTranslateEvent read FOnTranslate write FOnTranslate;
C++
__property TTranslateEvent OnTranslate = {read=FOnTranslate, write=FOnTranslate};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
event | published | Xml.XmlTransform.pas Xml.XmlTransform.hpp |
Xml.XmlTransform | TXMLTransform |
Description
Occurs when the TXMLTransform component needs to translate a user-defined node.
Write an OnTranslate event handler to provide the translation for user-defined nodes.
TXMLTransform performs a translation when an application reads the Data property or calls the TransformXML method. If the transformation document that governs how to perform that translation indicates that a node in the XML document is user defined, TXMLTransform generates an OnTranslate event when it needs to translate to or from that node. OnTranslate only occurs for nodes that are marked as user defined.
If you do not translate a user-defined node in an OnTranslate event handler, the corresponding node in the translated XML is assigned the source XML node's value, if available. Otherwise, it is left blank.