0N/AREADME:
0N/A
0N/AThis directory contains a program to read a DTD, and produce a compressed
0N/Arepresentation of it. It's intended that this program be run at build
0N/Atime, and the resultant .bdtd binary DTD file be read at program startup.
0N/A
0N/A
0N/A .dtdb FILE FORMAT
0N/A
0N/Afile ::= version_no:int num_names:short name[]:string num_entities entity[]
0N/A num_elements element[]
0N/A
0N/Aentity ::= name_id:short type:byte data:string
0N/A
0N/Aelement ::= name_id:short type:byte
0N/A flags:byte (&0x01 = omit start, &0x02 = omit end)
0N/A content_model
0N/A num_exclusions:byte name_id[]
0N/A num_inclusions:byte name_id[]
0N/A num_attributes:byte attribute[]
0N/A
0N/Aattribute ::= name_id:short type:byte modifier:byte
0N/A value:name_id (or -1 for null)
0N/A num_values:short name_id[]
0N/A
0N/Acontent_model ::= content_c | content_e | content_null
0N/A
0N/Acontent_null ::= flag:byte=0
0N/A
0N/Acontent_c ::= flag:byte=1 type:int content:content_model next:content_model
0N/A
0N/Acontent_e ::= flag:byte=2 type:int element_name_id next:content_model
0N/A
0N/Astring ::= modified UTF-8 encoding of a string
0N/A
0N/ASee the java.io.InputStream class description for the specification of modified
0N/AUTF-8.