RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
IXMLNode.TransformNode Method (IXMLNode, IXMLDocument)

Transforms the subtree rooted at this node, using a specified XSL interface.

Pascal
procedure TransformNode(const stylesheet: IXMLNode; var output: WideString); overload;
procedure TransformNode(const stylesheet: IXMLNode; const output: IXMLDocument); overload;
C++
__fastcall TransformNode(const IXMLNode stylesheet, BSTR output);
__fastcall TransformNode(const IXMLNode stylesheet, const IXMLDocument output);

Call TransformNode to transform the XML that is the value of the XML property using the transformation specified by an XSL document.  

stylesheet is a node in an XML document that represents an XSL transformation. Typically, it is the document element of that document. 

output represents the result of the transformation. If output is a WideString, TransformNode returns a string of XML. If output is the interface to an XML document, TransformNode replaces the content of that document with the results of the transformation.

Note: TransformNode is only available when the DOMVendor used to parse this node's XML document is MSXML.
 

 

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