%dw 2.0
import * from dw::xml::Dtd
output application/json
---
docTypeAsString({rootName: "cXML", systemId: "http://xml.cxml.org/schemas/cXML/1.2.014/cXML.dtd"})
docTypeAsString
docTypeAsString(docType: DocType): String
Transforms a DocType
value to a string representation.
Introduced in DataWeave version 2.5.0.
Example
This example transforms a DocType
value that includes a systemId
to a string representation.
Example
This example transforms a DocType
value that includes a publicId
and systemId
to a string representation.