[bittorrent] DTD for hashed files

larytet.8708132 at bloglines.com larytet.8708132 at bloglines.com
Sun Apr 10 22:50:29 EDT 2005


I am looking for DTD describing files/folders + MD5/SHA-1 hashes + block hashes

Is anybody aware of existing DTDs. 
thanks


This is what i am looking
for (rough idea)
<?xml version='1.0' encoding='utf-8'?>

<!DOCTYPE rodiFile
[
  <!ELEMENT rodiHash (file, folder)+>

  <!ELEMENT file (blocks)>
 
<!ATTLIST file 
     name CDATA #REQUIRED
     size CDATA #REQUIRED
  
  blockSize CDATA #REQUIRED
     blocksNumber CDATA #REQUIRED
     hashType
(md5|sha1) "md5" #REQUIRED
     hash CDATA #REQUIRED
     modified CDATA
#IMPLIED
  >

  <!ELEMENT blocks (block+)>
  <!ATTLIST blocks hashType
(md5|sha1) "md5">

  <!ELEMENT block (#CDATA)>
  <!ATTLIST block index
CDATA #REQUIRED>
]>

<rodiHash>
  <file name="C:\arkady\CVSROOT\rodi_0.3.04.zip"
modified="6:29 PM 4/9/2005" size="566944" blockSize="4194304" blocksNumber="1"
md5="56675f2303d5087e80f3aea757a37d45">
    <blocks type="md5">
      <block
index="0">56675f2303d5087e80f3aea757a37d45</block>
   </blocks>
  </file>

</rodiHash>




More information about the BitTorrent mailing list