RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TXMLTransform.OnTranslate Event

Occurs when the TXMLTransform component needs to translate a user-defined node.

Pascal
property OnTranslate: TTranslateEvent;
C++
__property TTranslateEvent OnTranslate;

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. 

 

TransformXML 

TransformationFile 

TransformationDocument 

Data 

Converting XML Documents into Data Packets 

Using an XML Document as the Client of a Provider 

Using an XML Document as the Source for a Provider

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!