Re: Encrypting "enitre XML document"

I guess it depends a bit on what you want to do. If you think of the XML 
as just characters, you obviously encrypt it all. If you want to encrypt 
it as XML, you might be canonicalizing it anyway which will eliminate 
the XMK declaration.

Donald

On Wed, 20 Nov 2002, Pae Choi wrote:

> Date: Wed, 20 Nov 2002 00:16:44 -0800
> From: Pae Choi <paechoi@earthlink.net>
> To: xml-encryption@w3.org
> Subject: Encrypting "enitre XML document"
> Resent-Date: Wed, 20 Nov 2002 00:19:18 -0500 (EST)
> Resent-From: xml-encryption@w3.org
> 
> 
> Under the section,  "1. Instroduction", in the [1]XML Encryption, it
> stated as follwos:
> 
> 
>     1 Introduction
> 
>     <snip/>
>     When encrypting arbitrary data (including entire XML documents), the
>     EncryptedData element may become the root of a new XML document or
>     become a child element in an application-chosen XML document.
> 
> 
> 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.
> 
> Regards,
> 
> 
> Pae
> 
> 
> [1] http://www.w3.org/TR/xmlenc-core/
> 
> 

-- 
======================================================================
 Donald E. Eastlake 3rd                       dee3@torque.pothole.com
 155 Beaver Street              +1-508-634-2066(h) +1-508-851-8280(w)
 Milford, MA 01757 USA                   Donald.Eastlake@motorola.com

Received on Wednesday, 20 November 2002 20:21:28 UTC