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

Re: #element or #content

From: Joseph Reagle <reagle@w3.org>
Date: Fri, 23 Aug 2002 09:50:42 -0400
To: Christian Geuer-Pollmann <geuer-pollmann@nue.et-inf.uni-siegen.de>, "'XML Encryption'" <xml-encryption@w3.org>
Message-Id: <200208230950.42196.reagle@w3.org>

http://www.w3.org/TR/2002/CR-xmlenc-core-20020802/#sec-eg-Arbitrary-Data

2.1.4 Encrypting Arbitrary Data and XML Documents

If the application scenario requires all of the information to be encrypted, 
the whole document is encrypted as an octet sequence. This applies to 
arbitrary data including XML documents.

  <?xml version='1.0'?>
  <EncryptedData xmlns='http://www.w3.org/2001/04/xmlenc#'
   MimeType='text/xml'>
    <CipherData>
      <CipherValue>A23B45C56</CipherValue>
    </CipherData>
  </EncryptedData>

On Friday 23 August 2002 07:54 am, Christian Geuer-Pollmann wrote:
> short question: Given this XML file
>
> <!-- some comment>
> <root />
> <?pi data?>
>
> When I encrypt it completely so that I substitute the comment, the
> document element and the PI by a single xenc:EncryptedData element,
> what's the type of it?
>
> My guess is #content, but it's not an element's content ;-))
Received on Friday, 23 August 2002 09:50:49 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 October 2009 08:42:21 GMT