[p2p-hackers] DTD for hashed files

Justin Chapweske justin at chapweske.com
Wed Apr 13 16:02:31 UTC 2005


You might want to look at what we did for THEX, the format has served us
quite well:

http://www.open-content.net/specs/draft-jchapweske-thex-02.html

By the way, we're ditching DIME for multi-part MIME for bundled THEX
files.

-Justin

On Mon, 2005-04-11 at 02:51 +0000, larytet.8753341 at bloglines.com wrote:
> 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>
> 
> _______________________________________________
> p2p-hackers mailing list
> p2p-hackers at zgp.org
> http://zgp.org/mailman/listinfo/p2p-hackers
> _______________________________________________
> Here is a web page listing P2P Conferences:
> http://www.neurogrid.net/twiki/bin/view/Main/PeerToPeerConferences
-- 
Justin Chapweske <justin at chapweske.com>




More information about the P2p-hackers mailing list