ODAC

TOraXML.Transform Method

Transforms and returns a TOraXML object.

Class

TOraXML

Syntax

procedure Transform(XSLDoc: TOraXML; RetDoc: TOraXML);

Parameters
XSLDoc
Holds an XSL document.
RetDoc
Holds a destination TOraXML object which holds the new (transformed) XML document.

Remarks

Call the Transform method to transform and return TOraXML, using the given XSL document in XSLDoc parameter. The new (transformed) XML document is assigned to RetDoc. XSLDoc parameter is the XSL document to be applied to the XMLType. RetDoc parameter is a destination TOraXML object which holds the operation result. RetDoc object must be created before passing it as a parameter.

Example

var
   RetDoc, XSLDoc: TOraXML;
begin
   RetDoc := TOraXML.Create();
   RetDoc.OCISvcCtx := OraSession1.OCISvcCtx;
   XSLDoc := TOraXML.Create();
   XSLDoc.OCISvcCtx := OraSession1.OCISvcCtx;
   try
      with TOraXMLField(FieldByName('XMLField')).AsXML do begin
         XSLDoc.AsString:=XSLDocument;
         Transform(XSLDoc, RetDoc);
         Str := RetDoc.AsString;
      end;
   finally
      RetDoc.Free;
      XSLDoc.Free;
   end;
end; 

See Also

© 1997-2022 Devart. All Rights Reserved. Request Support DAC Forum Provide Feedback