W3C home > Mailing lists > Public > xml-encryption@w3.org > November 2002

Re: Encrypting "enitre XML document"

From: Joseph Reagle <reagle@w3.org>
Date: Thu, 21 Nov 2002 07:33:26 -0500
To: "Pae Choi" <paechoi@earthlink.net>, <xml-encryption@w3.org>
Message-Id: <200211210733.26909.reagle@w3.org>

On Wednesday 20 November 2002 03:16 am, Pae Choi wrote:
> I  have a question in encrypting the "entire XML document." Say we
> have an XML document as follows:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <PatientInfo>
>     <Patient>
>     </Patient>
> </PatientInfo>
>
> Should we encrypt the entire document literally beginning from the
> XMLDecl, "<?xml version="1.0" encoding="UTF-8"?>", or exclude that.

It's up to you. When you are encrypting the document it's merely a bag of 
octets with a media-type like any other. Whether "<?xml ...>" needs to be 
the first line is defined by the xml media type and specification -- and it 
doesn't require the declaration.
Received on Thursday, 21 November 2002 07:33:30 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:13:10 UTC