Yes.
The standard XML comment syntax is used so:
<!-- comment here. -->
<!--
Multi-line comment here
-->
Alas, there is no way to put a comment inside an element tag e.g.,
<element name="myElement" type="xs:int"
dfdl:byteOrder="bigEndian" ... I'd like to put a comment here ....
/>
There is no way to place a comment within an element tag.
In theory a non-native attribute like doc:comment="This is my comment"
might work, but we've found many tools reject such things.
Final hint: We have sometimes found that some XML tools IDEs will wrap text
in comments.
If you want to preserve the layout of comments we have found this works:
<!-- <![CDATA[
Structured comment where I don't want
anything to change the line
endings
]]> -->
XML tools seem to never touch things inside CDATA bracketing, and that
seems to work
even inside comments.
On Mon, Apr 17, 2023 at 2:35 PM Hardesty, Mark C (US) <
[email protected]> wrote:
> Are embedded comments allowed in a dfdl schema?
>
> Thanks
>