Re: Encrypting "enitre XML document"

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