|
next
|
Subject: adding dtd reference to xml output via Xquery Author: Bruce Cantor Date: 01 Feb 2023 10:48 AM Originally Posted: 01 Feb 2023 09:58 AM
|
Hi Forum
I am trying to add the dtd reference on some xml out, but failing.
As far as I can see I should use the ddtek:serialize function to add the information , but I am having trouble getting it to work.
The docs says that cdata-section-elements are Modifiable but I cannot grab the concept of adding it, so that is actually comes out in the result.
This is the reference I would like to add: <!DOCTYPE cXML SYSTEM "http://xml.cXML.org/schemas/cXML/1.2.014/cXML.dtd">
I tried like this, and it does not fail, but it does not work either:
ddtek:serialize(
<cXML payloadID="{concat($timestampInMilisec,'@eet.group-',$environment )}" timestamp="{$timestamp}" xml:lang="{$SAPDoclang}">
<Response>
Response information
</Response>
</cXML>
, "indent=yes, omit-xml-declaration=yes, cdata-section-elements = DOCTYPE"
)
How do I add the reference in xquery, please?
|
|
|