XML Digital Signatures Chapter 5
159
T01330039 -->
<!-- 16 -->
</weather>
<weather Id="KMVY">
<location> Vineyard Haven, Marthas Vineyard Airport, MA, United States
(KMVY) 41-23-32N 070-37-00W 16M </location>
<time> Apr 19, 2002 - 10:53 AM EST / 2002.04.19 1553 UTC </time>
<wind> from the S (170 degrees) at 9 MPH (8 KT) </wind>
<visibility> 6 mile(s) </visibility>
<sky> overcast </sky>
<note> haze </note>
<temperature> 55.0 F (12.8 C) </temperature>
<dewpt> 48.9 F (9.4 C) </dewpt>
<humidity> 79% </humidity>
<press> 30 in. Hg (1015 hPa) </press>
<!-- KMVY 191553Z 17008KT 6SM HZ OVC005 13/09 A3000 RMK AO2 SLP159
T01280094 -->
<!-- 16 -->
</weather>
</content>
</document>
For the purposes of the digital signatures, the file that is being signed does not
have to be an XML fileit can be any kind of file.We use an XML file in this
example because it will be useful to illustrate other aspects of signing a document
later on.The signature generated using the template in Figure 5.7 with the data file
shown in Figure 5.8 gives the digital signature that is illustrated in Figure 5.9.
Figure 5.9 Complete Detached XML Digital Signature
<?xml version="1.0" encoding="UTF-8"?>
<Envelope xmlns="urn:envelope">
<Signature xmlns="http://www.w3.org/2000/09/xmldsig#">
<SignedInfo>
www.syngress.com
Figure 5.8 Continued
Continued