iXML grammars that contain XML

In some cases, XML content may be encapsulated within non-XML container formats. One such example is PDF, which can include XML as the payload of a stream object. The parsed output from the iXML grammar escapes the XML, which is usually not desired.

E.g.:

```
11 0 obj
<<
/Length 165
>>
stream
<?xml version="1.0" encoding="UTF-8"?>
<xdp:xdp xmlns:xdp=http://ns.adobe.com/xdp/ timeStamp="2025-06-14T10:38:38Z" uuid="73362f55-4354-43ac-8d58-512960664b11" />
endstream
endobj
```

Produces:

<stream-content>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;xdp:xdp xmlns:xdp=http://ns.adobe.com/xdp/ timeStamp="2025-06-14T10:38:38Z" uuid="73362f55-4354-43ac-8d58-512960664b11"&gt;
</stream-content>

I imagine this could be handled with a pragma to produce:
<?xml-decl version="1.0" encoding="UTF-8"?>
<xdp:xdp xmlns:xdp=http://ns.adobe.com/xdp/ timeStamp="2025-06-14T10:38:38Z" uuid="73362f55-4354-43ac-8d58-512960664b11" />

Regards,

John Dziurłaj /d͡ʑurwaj/

Received on Sunday, 27 July 2025 12:29:07 UTC