W3C home > Mailing lists > Public > public-exi@w3.org > July 2008

[EXI] processing instruction

From: santhanakrishnan <santhana@huawei.com>
Date: Tue, 08 Jul 2008 15:40:43 +0530
To: public-exi@w3.org
Message-id: <000001c8e0e2$e2838540$4a18120a@china.huawei.com>
Hi EXI experts
    Should the first line of an XML file treated as a processing instruction
or is there any deviation for this. 
<?xml version="1.0" encoding="UTF-8"?>
Can it be under the control of the preserve.pi fidelity option. Otherwise
there is no way to convey the first line information in the EXI binary to
the decoder. If it is not as per preserve.pi then there can be chances of
improper decoding of some information completely.
The encoder can encode from xml with first line as 
    <?xml version="1.0"?>
and decoder can produce an xml with first line as
    <?xml version="1.0" encoding="UTF-8"?>
Also assuming that the encoder has encoded an XML file in some encoding
format 'x'. Then as per the above statement only when the pi is preserved
decoder will be able to decode the binary completely considering the same
encoding format 'x'.
Received on Tuesday, 8 July 2008 10:11:34 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 19:52:43 UTC