- From: John Dziurlaj <john@turnout.rocks>
- Date: Sun, 27 Jul 2025 12:29:00 +0000
- To: ixml <public-ixml@w3.org>
- Message-ID: <DS7PR20MB399903F34D0CBC41B28C764AC25BA@DS7PR20MB3999.namprd20.prod.outlook.com>
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><?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"> </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