transformToString
Class: matlab.io.xml.transform.Transformer
Namespace: matlab.io.xml.transform
Syntax
result = transformToString(transformer,input,stylesheet)
result = transformToString(transformer,input)
Description
uses result
= transformToString(transformer
,input
,stylesheet
)transformer
to transform input
using
stylesheet
and returns the result as a string scalar.
requires that the input document contains a processing instruction that specifies the
stylesheet. For example, this markup at the beginning of an XML document specifies a
stylesheet named result
= transformToString(transformer
,input
)catalog.xsl
that is located in the current
folder.
<?xml version="1.0" encoding="UTF-8"?> <?xml-stylesheet type="text/xsl" href="catalog.xsl"?>
Input Arguments
Output Arguments
Examples
Version History
Introduced in R2021a
See Also
matlab.io.xml.dom.Document
| matlab.io.xml.transform.CompiledStylesheet
| matlab.io.xml.transform.ResultDocument
| matlab.io.xml.transform.ResultFile
| matlab.io.xml.transform.ResultString
| matlab.io.xml.transform.SourceDocument
| matlab.io.xml.transform.SourceFile
| matlab.io.xml.transform.SourceString
| matlab.io.xml.transform.StylesheetSourceDocument
| matlab.io.xml.transform.StylesheetSourceFile
| matlab.io.xml.transform.StylesheetSourceString
| matlab.io.xml.transform.Transformer
| transform