[svn-r3408] Purpose:

Adding new feature.
Description:
  XML output option to h5dump
Platforms tested:
  SPARC Solaris 2.7, Irix6.5 (32bit), Linux, Win98
This commit is contained in:
Robert E. McGrath 2001-02-14 15:48:22 -05:00
parent a66186cc0d
commit d12fa9b5c5
59 changed files with 10521 additions and 1449 deletions

View File

@ -1124,3 +1124,60 @@
./tools/testfiles/Expected/vg_nameclash.h5
./tools/testfiles/Expected/vg_nameclash2.h5
./tools/testfiles/Expected/vg_simple.h5
#additional test input and output for h5dump XML
./tools/testfiles/tall.h5.xml
./tools/testfiles/tarray1.h5.xml
./tools/testfiles/tarray2.h5.xml
./tools/testfiles/tarray3.h5.xml
./tools/testfiles/tarray6.h5.xml
./tools/testfiles/tarray7.h5.xml
./tools/testfiles/tattr.h5.xml
./tools/testfiles/tbitfields.h5.xml
./tools/testfiles/tcompound.h5.xml
./tools/testfiles/tcompound2.h5.xml
./tools/testfiles/tdatareg.h5.xml
./tools/testfiles/tdset.h5.xml
./tools/testfiles/tdset2.h5.xml
./tools/testfiles/tempty.h5.xml
./tools/testfiles/tenum.h5.xml
./tools/testfiles/tgroup.h5.xml
./tools/testfiles/thlink.h5.xml
./tools/testfiles/tloop.h5.xml
./tools/testfiles/tloop2.h5.xml
./tools/testfiles/tmany.h5.xml
./tools/testfiles/tname-amp.h5
./tools/testfiles/tname-amp.h5.xml
./tools/testfiles/tname-apos.h5
./tools/testfiles/tname-apos.h5.xml
./tools/testfiles/tname-gt.h5
./tools/testfiles/tname-gt.h5.xml
./tools/testfiles/tname-lt.h5
./tools/testfiles/tname-lt.h5.xml
./tools/testfiles/tname-quot.h5
./tools/testfiles/tname-quot.h5.xml
./tools/testfiles/tname-sp.h5
./tools/testfiles/tname-sp.h5.xml
./tools/testfiles/tnestedcomp.h5.xml
./tools/testfiles/tnodata.h5
./tools/testfiles/tnodata.h5.xml
./tools/testfiles/tobjref.h5.xml
./tools/testfiles/topaque.h5.xml
./tools/testfiles/tref-escapes-at.h5
./tools/testfiles/tref-escapes-at.h5.xml
./tools/testfiles/tref-escapes.h5
./tools/testfiles/tref-escapes.h5.xml
./tools/testfiles/tref.h5
./tools/testfiles/tref.h5.xml
./tools/testfiles/tsaf.h5.xml
./tools/testfiles/tslink.h5.xml
./tools/testfiles/tstr.h5.xml
./tools/testfiles/tstr2.h5.xml
./tools/testfiles/tstring-at.h5
./tools/testfiles/tstring-at.h5.xml
./tools/testfiles/tstring.h5
./tools/testfiles/tstring.h5.xml
./tools/testfiles/tvldtypes.h5.xml
./tools/testfiles/tvldtypes1.h5.xml
./tools/testfiles/tvldtypes2.h5.xml
./tools/testfiles/tvldtypes3.h5.xml

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

173
tools/testfiles/tall.h5.xml Normal file
View File

@ -0,0 +1,173 @@
#############################
Expected output for 'h5dump --xml tall.h5'
#############################
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE HDF5-File PUBLIC "HDF5-File.dtd" "http://hdf.ncsa.uiuc.edu/DTDs/HDF5-File.dtd">
<HDF5-File>
<RootGroup OBJ-XID="root">
<Attribute Name="attr1">
<Dataspace>
<SimpleDataspace Ndims="1">
<Dimension DimSize="10" MaxDimSize="10"/>
</SimpleDataspace>
</Dataspace>
<DataType>
<AtomicType>
<IntegerType ByteOrder="BE" Sign="true" Size="1" />
</AtomicType>
</DataType>
<Data>
<DataFromFile>
97 98 99 100 101 102 103 104 105 0
</DataFromFile>
</Data>
</Attribute>
<Attribute Name="attr2">
<Dataspace>
<SimpleDataspace Ndims="2">
<Dimension DimSize="2" MaxDimSize="2"/>
<Dimension DimSize="2" MaxDimSize="2"/>
</SimpleDataspace>
</Dataspace>
<DataType>
<AtomicType>
<IntegerType ByteOrder="BE" Sign="true" Size="4" />
</AtomicType>
</DataType>
<Data>
<DataFromFile>
0 1
2 3
</DataFromFile>
</Data>
</Attribute>
<Group Name="g1" OBJ-XID="/g1" Parents="/" >
<Group Name="g1.1" OBJ-XID="/g1/g1.1" Parents="/g1" >
<Dataset Name="dset1.1.1" OBJ-XID="/g1/g1.1/dset1.1.1" Parents="/g1/g1.1">
<Dataspace>
<SimpleDataspace Ndims="2">
<Dimension DimSize="10" MaxDimSize="10"/>
<Dimension DimSize="10" MaxDimSize="10"/>
</SimpleDataspace>
</Dataspace>
<DataType>
<AtomicType>
<IntegerType ByteOrder="BE" Sign="true" Size="4" />
</AtomicType>
</DataType>
<Attribute Name="attr1">
<Dataspace>
<SimpleDataspace Ndims="1">
<Dimension DimSize="27" MaxDimSize="27"/>
</SimpleDataspace>
</Dataspace>
<DataType>
<AtomicType>
<IntegerType ByteOrder="BE" Sign="true" Size="1" />
</AtomicType>
</DataType>
<Data>
<DataFromFile>
49 115 116 32 97 116 116 114 105 98 117 116 101 32 111 102 32
100 115 101 116 49 46 49 46 49 0
</DataFromFile>
</Data>
</Attribute>
<Attribute Name="attr2">
<Dataspace>
<SimpleDataspace Ndims="1">
<Dimension DimSize="27" MaxDimSize="27"/>
</SimpleDataspace>
</Dataspace>
<DataType>
<AtomicType>
<IntegerType ByteOrder="BE" Sign="true" Size="1" />
</AtomicType>
</DataType>
<Data>
<DataFromFile>
50 110 100 32 97 116 116 114 105 98 117 116 101 32 111 102 32
100 115 101 116 49 46 49 46 49 0
</DataFromFile>
</Data>
</Attribute>
<Data>
<DataFromFile>
0 0 0 0 0 0 0 0 0 0
0 1 2 3 4 5 6 7 8 9
0 2 4 6 8 10 12 14 16 18
0 3 6 9 12 15 18 21 24 27
0 4 8 12 16 20 24 28 32 36
0 5 10 15 20 25 30 35 40 45
0 6 12 18 24 30 36 42 48 54
0 7 14 21 28 35 42 49 56 63
0 8 16 24 32 40 48 56 64 72
0 9 18 27 36 45 54 63 72 81
</DataFromFile>
</Data>
</Dataset>
<Dataset Name="dset1.1.2" OBJ-XID="/g1/g1.1/dset1.1.2" Parents="/g1/g1.1">
<Dataspace>
<SimpleDataspace Ndims="1">
<Dimension DimSize="20" MaxDimSize="20"/>
</SimpleDataspace>
</Dataspace>
<DataType>
<AtomicType>
<IntegerType ByteOrder="BE" Sign="true" Size="4" />
</AtomicType>
</DataType>
<Data>
<DataFromFile>
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
</DataFromFile>
</Data>
</Dataset>
</Group>
<Group Name="g1.2" OBJ-XID="/g1/g1.2" Parents="/g1" >
<Group Name="g1.2.1" OBJ-XID="/g1/g1.2/g1.2.1" Parents="/g1/g1.2" >
<SoftLink LinkName="slink" Target="somevalue" TargetObj="somevalue" OBJ-XID="slink" Source="/g1/g1.2/g1.2.1"/>
</Group>
</Group>
</Group>
<Group Name="g2" OBJ-XID="/g2" Parents="/" >
<Dataset Name="dset2.1" OBJ-XID="/g2/dset2.1" Parents="/g2">
<Dataspace>
<SimpleDataspace Ndims="1">
<Dimension DimSize="10" MaxDimSize="10"/>
</SimpleDataspace>
</Dataspace>
<DataType>
<AtomicType>
<FloatType ByteOrder="BE" Size="4" SignBitLocation="31" ExponentBits="8" ExponentLocation="23" MantissaBits="23" MantissaLocation="0" />
</AtomicType>
</DataType>
<Data>
<DataFromFile>
1 1.1 1.2 1.3 1.4 1.5 1.6 1.7 1.8 1.9
</DataFromFile>
</Data>
</Dataset>
<Dataset Name="dset2.2" OBJ-XID="/g2/dset2.2" Parents="/g2">
<Dataspace>
<SimpleDataspace Ndims="2">
<Dimension DimSize="3" MaxDimSize="3"/>
<Dimension DimSize="5" MaxDimSize="5"/>
</SimpleDataspace>
</Dataspace>
<DataType>
<AtomicType>
<FloatType ByteOrder="BE" Size="4" SignBitLocation="31" ExponentBits="8" ExponentLocation="23" MantissaBits="23" MantissaLocation="0" />
</AtomicType>
</DataType>
<Data>
<DataFromFile>
0 0.1 0.2 0.3 0.4
0 0.2 0.4 0.6 0.8
0 0.3 0.6 0.9 1.2
</DataFromFile>
</Data>
</Dataset>
</Group>
</RootGroup>
</HDF5-File>

View File

@ -0,0 +1,31 @@
#############################
Expected output for 'h5dump --xml tarray1.h5'
#############################
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE HDF5-File PUBLIC "HDF5-File.dtd" "http://hdf.ncsa.uiuc.edu/DTDs/HDF5-File.dtd">
<HDF5-File>
<RootGroup OBJ-XID="root">
<Dataset Name="Dataset1" OBJ-XID="/Dataset1" Parents="root">
<Dataspace>
<SimpleDataspace Ndims="1">
<Dimension DimSize="4" MaxDimSize="4"/>
</SimpleDataspace>
</Dataspace>
<DataType>
<ArrayType Ndims="1">
<ArrayDimension DimSize="4" DimPerm="0"/>
<DataType>
<AtomicType>
<IntegerType ByteOrder="LE" Sign="true" Size="4" />
</AtomicType>
</DataType>
</ArrayType>
</DataType>
<Data>
<DataFromFile>
0 1 2 3 10 11 12 13 20 21 22 23 30 31 32 33
</DataFromFile>
</Data>
</Dataset>
</RootGroup>
</HDF5-File>

View File

@ -0,0 +1,80 @@
#############################
Expected output for 'h5dump --xml tarray2.h5'
#############################
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE HDF5-File PUBLIC "HDF5-File.dtd" "http://hdf.ncsa.uiuc.edu/DTDs/HDF5-File.dtd">
<HDF5-File>
<RootGroup OBJ-XID="root">
<Dataset Name="Dataset1" OBJ-XID="/Dataset1" Parents="root">
<Dataspace>
<SimpleDataspace Ndims="1">
<Dimension DimSize="4" MaxDimSize="4"/>
</SimpleDataspace>
</Dataspace>
<DataType>
<ArrayType Ndims="3">
<ArrayDimension DimSize="3" DimPerm="0"/>
<ArrayDimension DimSize="4" DimPerm="1"/>
<ArrayDimension DimSize="5" DimPerm="2"/>
<DataType>
<AtomicType>
<IntegerType ByteOrder="LE" Sign="true" Size="4" />
</AtomicType>
</DataType>
</ArrayType>
</DataType>
<Data>
<DataFromFile>
0 1 2 3 4
10 11 12 13 14
20 21 22 23 24
30 31 32 33 34
100 101 102 103 104
110 111 112 113 114
120 121 122 123 124
130 131 132 133 134
200 201 202 203 204
210 211 212 213 214
220 221 222 223 224
230 231 232 233 234
1000 1001 1002 1003 1004
1010 1011 1012 1013 1014
1020 1021 1022 1023 1024
1030 1031 1032 1033 1034
1100 1101 1102 1103 1104
1110 1111 1112 1113 1114
1120 1121 1122 1123 1124
1130 1131 1132 1133 1134
1200 1201 1202 1203 1204
1210 1211 1212 1213 1214
1220 1221 1222 1223 1224
1230 1231 1232 1233 1234
2000 2001 2002 2003 2004
2010 2011 2012 2013 2014
2020 2021 2022 2023 2024
2030 2031 2032 2033 2034
2100 2101 2102 2103 2104
2110 2111 2112 2113 2114
2120 2121 2122 2123 2124
2130 2131 2132 2133 2134
2200 2201 2202 2203 2204
2210 2211 2212 2213 2214
2220 2221 2222 2223 2224
2230 2231 2232 2233 2234
3000 3001 3002 3003 3004
3010 3011 3012 3013 3014
3020 3021 3022 3023 3024
3030 3031 3032 3033 3034
3100 3101 3102 3103 3104
3110 3111 3112 3113 3114
3120 3121 3122 3123 3124
3130 3131 3132 3133 3134
3200 3201 3202 3203 3204
3210 3211 3212 3213 3214
3220 3221 3222 3223 3224
3230 3231 3232 3233 3234
</DataFromFile>
</Data>
</Dataset>
</RootGroup>
</HDF5-File>

View File

@ -0,0 +1,120 @@
#############################
Expected output for 'h5dump --xml tarray3.h5'
#############################
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE HDF5-File PUBLIC "HDF5-File.dtd" "http://hdf.ncsa.uiuc.edu/DTDs/HDF5-File.dtd">
<HDF5-File>
<RootGroup OBJ-XID="root">
<Dataset Name="Dataset1" OBJ-XID="/Dataset1" Parents="root">
<Dataspace>
<SimpleDataspace Ndims="1">
<Dimension DimSize="4" MaxDimSize="4"/>
</SimpleDataspace>
</Dataspace>
<DataType>
<ArrayType Ndims="1">
<ArrayDimension DimSize="4" DimPerm="0"/>
<DataType>
<ArrayType Ndims="2">
<ArrayDimension DimSize="6" DimPerm="0"/>
<ArrayDimension DimSize="3" DimPerm="1"/>
<DataType>
<AtomicType>
<IntegerType ByteOrder="LE" Sign="true" Size="4" />
</AtomicType>
</DataType>
</ArrayType>
</DataType>
</ArrayType>
</DataType>
<Data>
<DataFromFile>
0 1 2
10 11 12
20 21 22
30 31 32
40 41 42
50 51 52 100 101 102
110 111 112
120 121 122
130 131 132
140 141 142
150 151 152 200 201 202
210 211 212
220 221 222
230 231 232
240 241 242
250 251 252 300 301 302
310 311 312
320 321 322
330 331 332
340 341 342
350 351 352
1000 1001 1002
1010 1011 1012
1020 1021 1022
1030 1031 1032
1040 1041 1042
1050 1051 1052 1100 1101 1102
1110 1111 1112
1120 1121 1122
1130 1131 1132
1140 1141 1142
1150 1151 1152 1200 1201 1202
1210 1211 1212
1220 1221 1222
1230 1231 1232
1240 1241 1242
1250 1251 1252 1300 1301 1302
1310 1311 1312
1320 1321 1322
1330 1331 1332
1340 1341 1342
1350 1351 1352
2000 2001 2002
2010 2011 2012
2020 2021 2022
2030 2031 2032
2040 2041 2042
2050 2051 2052 2100 2101 2102
2110 2111 2112
2120 2121 2122
2130 2131 2132
2140 2141 2142
2150 2151 2152 2200 2201 2202
2210 2211 2212
2220 2221 2222
2230 2231 2232
2240 2241 2242
2250 2251 2252 2300 2301 2302
2310 2311 2312
2320 2321 2322
2330 2331 2332
2340 2341 2342
2350 2351 2352
3000 3001 3002
3010 3011 3012
3020 3021 3022
3030 3031 3032
3040 3041 3042
3050 3051 3052 3100 3101 3102
3110 3111 3112
3120 3121 3122
3130 3131 3132
3140 3141 3142
3150 3151 3152 3200 3201 3202
3210 3211 3212
3220 3221 3222
3230 3231 3232
3240 3241 3242
3250 3251 3252 3300 3301 3302
3310 3311 3312
3320 3321 3322
3330 3331 3332
3340 3341 3342
3350 3351 3352
</DataFromFile>
</Data>
</Dataset>
</RootGroup>
</HDF5-File>

View File

@ -0,0 +1,38 @@
#############################
Expected output for 'h5dump --xml tarray6.h5'
#############################
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE HDF5-File PUBLIC "HDF5-File.dtd" "http://hdf.ncsa.uiuc.edu/DTDs/HDF5-File.dtd">
<HDF5-File>
<RootGroup OBJ-XID="root">
<Dataset Name="Dataset1" OBJ-XID="/Dataset1" Parents="root">
<Dataspace>
<SimpleDataspace Ndims="1">
<Dimension DimSize="4" MaxDimSize="4"/>
</SimpleDataspace>
</Dataspace>
<DataType>
<ArrayType Ndims="1">
<ArrayDimension DimSize="4" DimPerm="0"/>
<DataType>
<VLType>
<DataType>
<AtomicType>
<IntegerType ByteOrder="LE" Sign="false" Size="4" />
</AtomicType>
</DataType>
</VLType>
</DataType>
</ArrayType>
</DataType>
<Data>
<DataFromFile>
0 10 11 20 21 22 30 31 32 33
100 101 110 111 112 120 121 122 123 130 131 132 133 134
200 201 202 210 211 212 213 220 221 222 223 224 230 231 232 233 234 235
300 301 302 303 310 311 312 313 314 320 321 322 323 324 325 330 331 332 333 334 335 336
</DataFromFile>
</Data>
</Dataset>
</RootGroup>
</HDF5-File>

View File

@ -0,0 +1,43 @@
#############################
Expected output for 'h5dump --xml tarray7.h5'
#############################
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE HDF5-File PUBLIC "HDF5-File.dtd" "http://hdf.ncsa.uiuc.edu/DTDs/HDF5-File.dtd">
<HDF5-File>
<RootGroup OBJ-XID="root">
<Dataset Name="Dataset1" OBJ-XID="/Dataset1" Parents="root">
<Dataspace>
<SimpleDataspace Ndims="1">
<Dimension DimSize="4" MaxDimSize="4"/>
</SimpleDataspace>
</Dataspace>
<DataType>
<ArrayType Ndims="1">
<ArrayDimension DimSize="4" DimPerm="0"/>
<DataType>
<VLType>
<DataType>
<ArrayType Ndims="1">
<ArrayDimension DimSize="4" DimPerm="0"/>
<DataType>
<AtomicType>
<IntegerType ByteOrder="LE" Sign="false" Size="4" />
</AtomicType>
</DataType>
</ArrayType>
</DataType>
</VLType>
</DataType>
</ArrayType>
</DataType>
<Data>
<DataFromFile>
0 1 2 3 100 101 102 103 110 111 112 113 200 201 202 203 210 211 212 213 220 221 222 223 300 301 302 303 310 311 312 313 320 321 322 323 330 331 332 333
1000 1001 1002 1003 1010 1011 1012 1013 1100 1101 1102 1103 1110 1111 1112 1113 1120 1121 1122 1123 1200 1201 1202 1203 1210 1211 1212 1213 1220 1221 1222 1223 1230 1231 1232 1233 1300 1301 1302 1303 1310 1311 1312 1313 1320 1321 1322 1323 1330 1331 1332 1333 1340 1341 1342 1343
2000 2001 2002 2003 2010 2011 2012 2013 2020 2021 2022 2023 2100 2101 2102 2103 2110 2111 2112 2113 2120 2121 2122 2123 2130 2131 2132 2133 2200 2201 2202 2203 2210 2211 2212 2213 2220 2221 2222 2223 2230 2231 2232 2233 2240 2241 2242 2243 2300 2301 2302 2303 2310 2311 2312 2313 2320 2321 2322 2323 2330 2331 2332 2333 2340 2341 2342 2343 2350 2351 2352 2353
3000 3001 3002 3003 3010 3011 3012 3013 3020 3021 3022 3023 3030 3031 3032 3033 3100 3101 3102 3103 3110 3111 3112 3113 3120 3121 3122 3123 3130 3131 3132 3133 3140 3141 3142 3143 3200 3201 3202 3203 3210 3211 3212 3213 3220 3221 3222 3223 3230 3231 3232 3233 3240 3241 3242 3243 3250 3251 3252 3253 3300 3301 3302 3303 3310 3311 3312 3313 3320 3321 3322 3323 3330 3331 3332 3333 3340 3341 3342 3343 3350 3351 3352 3353 3360 3361 3362 3363
</DataFromFile>
</Data>
</Dataset>
</RootGroup>
</HDF5-File>

View File

@ -0,0 +1,91 @@
#############################
Expected output for 'h5dump --xml tattr.h5'
#############################
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE HDF5-File PUBLIC "HDF5-File.dtd" "http://hdf.ncsa.uiuc.edu/DTDs/HDF5-File.dtd">
<HDF5-File>
<RootGroup OBJ-XID="root">
<Attribute Name="attr1">
<Dataspace>
<SimpleDataspace Ndims="1">
<Dimension DimSize="24" MaxDimSize="24"/>
</SimpleDataspace>
</Dataspace>
<DataType>
<AtomicType>
<IntegerType ByteOrder="BE" Sign="true" Size="1" />
</AtomicType>
</DataType>
<Data>
<DataFromFile>
97 116 116 114 105 98 117 116 101 32 111 102 32 114 111 111 116 32 103
114 111 117 112 0
</DataFromFile>
</Data>
</Attribute>
<Attribute Name="attr2">
<Dataspace>
<SimpleDataspace Ndims="1">
<Dimension DimSize="10" MaxDimSize="10"/>
</SimpleDataspace>
</Dataspace>
<DataType>
<AtomicType>
<IntegerType ByteOrder="BE" Sign="true" Size="4" />
</AtomicType>
</DataType>
<Data>
<DataFromFile>
1 2 3 4 5 6 7 8 9 10
</DataFromFile>
</Data>
</Attribute>
<Attribute Name="attr3">
<Dataspace>
<SimpleDataspace Ndims="1">
<Dimension DimSize="10" MaxDimSize="10"/>
</SimpleDataspace>
</Dataspace>
<DataType>
<AtomicType>
<FloatType ByteOrder="BE" Size="8" SignBitLocation="63" ExponentBits="11" ExponentLocation="52" MantissaBits="52" MantissaLocation="0" />
</AtomicType>
</DataType>
<Data>
<DataFromFile>
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9
</DataFromFile>
</Data>
</Attribute>
<Attribute Name="attr4">
<Dataspace>
<ScalarDataspace />
</Dataspace>
<DataType>
<AtomicType>
<IntegerType ByteOrder="BE" Sign="true" Size="4" />
</AtomicType>
</DataType>
<Data>
<DataFromFile>
100
</DataFromFile>
</Data>
</Attribute>
<Attribute Name="attr5">
<Dataspace>
<ScalarDataspace />
</Dataspace>
<DataType>
<AtomicType>
<StringType Cset="H5T_CSET_ASCII" StrSize="17" StrPad="H5T_STR_NULLTERM"/>
</AtomicType>
</DataType>
<Data>
<DataFromFile>
"string attribute"
</DataFromFile>
</Data>
</Attribute>
</RootGroup>
</HDF5-File>

View File

@ -0,0 +1,48 @@
#############################
Expected output for 'h5dump --xml tbitfields.h5'
#############################
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE HDF5-File PUBLIC "HDF5-File.dtd" "http://hdf.ncsa.uiuc.edu/DTDs/HDF5-File.dtd">
<HDF5-File>
<RootGroup OBJ-XID="root">
<Group Name="typetests" OBJ-XID="/typetests" Parents="/" >
<Dataset Name="bitfield_1" OBJ-XID="/typetests/bitfield_1" Parents="/typetests">
<Dataspace>
<SimpleDataspace Ndims="1">
<Dimension DimSize="32" MaxDimSize="32"/>
</SimpleDataspace>
</Dataspace>
<DataType>
<AtomicType>
<BitfieldType ByteOrder="LE" Size="1"/>
</AtomicType>
</DataType>
<Data>
<DataFromFile>
0xff 0xfe 0xfd 0xfc 0xfb 0xfa 0xf9 0xf8 0xf7 0xf6 0xf5 0xf4 0xf3
0xf2 0xf1 0xf0 0xef 0xee 0xed 0xec 0xeb 0xea 0xe9 0xe8 0xe7 0xe6
0xe5 0xe4 0xe3 0xe2 0xe1 0xe0
</DataFromFile>
</Data>
</Dataset>
<Dataset Name="bitfield_2" OBJ-XID="/typetests/bitfield_2" Parents="/typetests">
<Dataspace>
<SimpleDataspace Ndims="1">
<Dimension DimSize="16" MaxDimSize="16"/>
</SimpleDataspace>
</Dataspace>
<DataType>
<AtomicType>
<BitfieldType ByteOrder="LE" Size="2"/>
</AtomicType>
</DataType>
<Data>
<DataFromFile>
0xfffe 0xfdfc 0xfbfa 0xf9f8 0xf7f6 0xf5f4 0xf3f2 0xf1f0 0xefee
0xedec 0xebea 0xe9e8 0xe7e6 0xe5e4 0xe3e2 0xe1e0
</DataFromFile>
</Data>
</Dataset>
</Group>
</RootGroup>
</HDF5-File>

View File

@ -0,0 +1,280 @@
#############################
Expected output for 'h5dump --xml tcompound.h5'
#############################
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE HDF5-File PUBLIC "HDF5-File.dtd" "http://hdf.ncsa.uiuc.edu/DTDs/HDF5-File.dtd">
<HDF5-File>
<RootGroup OBJ-XID="root">
<NamedDataType Name="#6632:0" OBJ-XID="/#6632:0" Parents="#6632:0">
<CompoundType>
<Field FieldName="int">
<DataType>
<AtomicType>
<IntegerType ByteOrder="BE" Sign="true" Size="4" />
</AtomicType>
</DataType>
</Field>
<Field FieldName="float">
<DataType>
<AtomicType>
<FloatType ByteOrder="BE" Size="4" SignBitLocation="31" ExponentBits="8" ExponentLocation="23" MantissaBits="23" MantissaLocation="0" />
</AtomicType>
</DataType>
</Field>
</CompoundType>
</NamedDataType>
<NamedDataType Name="type1" OBJ-XID="/type1" Parents="root">
<CompoundType>
<Field FieldName="int_name">
<DataType>
<AtomicType>
<IntegerType ByteOrder="BE" Sign="true" Size="4" />
</AtomicType>
</DataType>
</Field>
<Field FieldName="float_name">
<DataType>
<AtomicType>
<FloatType ByteOrder="BE" Size="4" SignBitLocation="31" ExponentBits="8" ExponentLocation="23" MantissaBits="23" MantissaLocation="0" />
</AtomicType>
</DataType>
</Field>
</CompoundType>
</NamedDataType>
<NamedDataType Name="type2" OBJ-XID="/type2" Parents="root">
<CompoundType>
<Field FieldName="int_array">
<DataType>
<ArrayType Ndims="1">
<ArrayDimension DimSize="4" DimPerm="0"/>
<DataType>
<AtomicType>
<IntegerType ByteOrder="BE" Sign="true" Size="4" />
</AtomicType>
</DataType>
</ArrayType>
</DataType>
</Field>
<Field FieldName="float_array">
<DataType>
<ArrayType Ndims="2">
<ArrayDimension DimSize="5" DimPerm="0"/>
<ArrayDimension DimSize="6" DimPerm="1"/>
<DataType>
<AtomicType>
<FloatType ByteOrder="BE" Size="4" SignBitLocation="31" ExponentBits="8" ExponentLocation="23" MantissaBits="23" MantissaLocation="0" />
</AtomicType>
</DataType>
</ArrayType>
</DataType>
</Field>
</CompoundType>
</NamedDataType>
<Dataset Name="dset1" OBJ-XID="/dset1" Parents="root">
<Dataspace>
<SimpleDataspace Ndims="1">
<Dimension DimSize="5" MaxDimSize="5"/>
</SimpleDataspace>
</Dataspace>
<DataType>
<CompoundType>
<Field FieldName="a_name">
<DataType>
<AtomicType>
<IntegerType ByteOrder="BE" Sign="true" Size="4" />
</AtomicType>
</DataType>
</Field>
<Field FieldName="b_name">
<DataType>
<AtomicType>
<FloatType ByteOrder="BE" Size="4" SignBitLocation="31" ExponentBits="8" ExponentLocation="23" MantissaBits="23" MantissaLocation="0" />
</AtomicType>
</DataType>
</Field>
<Field FieldName="c_name">
<DataType>
<AtomicType>
<FloatType ByteOrder="BE" Size="8" SignBitLocation="63" ExponentBits="11" ExponentLocation="52" MantissaBits="52" MantissaLocation="0" />
</AtomicType>
</DataType>
</Field>
</CompoundType>
</DataType>
<!-- Note: format of compound data not specified -->
<Data>
<DataFromFile>
0 0 1 1 1 0.5 2 4 0.333333 3 9 0.25 4 16 0.2
</DataFromFile>
</Data>
</Dataset>
<Group Name="group1" OBJ-XID="/group1" Parents="/" >
<NamedDataType Name="type3" OBJ-XID="/group1/type3" Parents="type3">
<CompoundType>
<Field FieldName="int">
<DataType>
<AtomicType>
<IntegerType ByteOrder="BE" Sign="true" Size="4" />
</AtomicType>
</DataType>
</Field>
<Field FieldName="float">
<DataType>
<AtomicType>
<FloatType ByteOrder="BE" Size="4" SignBitLocation="31" ExponentBits="8" ExponentLocation="23" MantissaBits="23" MantissaLocation="0" />
</AtomicType>
</DataType>
</Field>
</CompoundType>
</NamedDataType>
<Dataset Name="dset2" OBJ-XID="/group1/dset2" Parents="/group1">
<Dataspace>
<SimpleDataspace Ndims="1">
<Dimension DimSize="5" MaxDimSize="5"/>
</SimpleDataspace>
</Dataspace>
<NamedDataTypePtr OBJ-XID="/type1"/>
<!-- Note: format of compound data not specified -->
<Data>
<DataFromFile>
0 0 1 1.1 2 2.2 3 3.3 4 4.4
</DataFromFile>
</Data>
</Dataset>
<Dataset Name="dset3" OBJ-XID="/group1/dset3" Parents="/group1">
<Dataspace>
<SimpleDataspace Ndims="2">
<Dimension DimSize="3" MaxDimSize="3"/>
<Dimension DimSize="6" MaxDimSize="6"/>
</SimpleDataspace>
</Dataspace>
<NamedDataTypePtr OBJ-XID="/type2"/>
<!-- Note: format of compound data not specified -->
<Data>
<DataFromFile>
0 1 2 3 1 2 3 4 5 6
2 3 4 5 6 7
3 4 5 6 7 8
4 5 6 7 8 9
5 6 7 8 9 10
1 2 3 4 2 3 4 5 6 7
3 4 5 6 7 8
4 5 6 7 8 9
5 6 7 8 9 10
6 7 8 9 10 11
2 3 4 5 3 4 5 6 7 8
4 5 6 7 8 9
5 6 7 8 9 10
6 7 8 9 10 11
7 8 9 10 11 12
3 4 5 6 4 5 6 7 8 9
5 6 7 8 9 10
6 7 8 9 10 11
7 8 9 10 11 12
8 9 10 11 12 13
4 5 6 7 5 6 7 8 9 10
6 7 8 9 10 11
7 8 9 10 11 12
8 9 10 11 12 13
9 10 11 12 13 14
5 6 7 8 6 7 8 9 10 11
7 8 9 10 11 12
8 9 10 11 12 13
9 10 11 12 13 14
10 11 12 13 14 15
1 2 3 4 2 3 4 5 6 7
3 4 5 6 7 8
4 5 6 7 8 9
5 6 7 8 9 10
6 7 8 9 10 11
2 3 4 5 3 4 5 6 7 8
4 5 6 7 8 9
5 6 7 8 9 10
6 7 8 9 10 11
7 8 9 10 11 12
3 4 5 6 4 5 6 7 8 9
5 6 7 8 9 10
6 7 8 9 10 11
7 8 9 10 11 12
8 9 10 11 12 13
4 5 6 7 5 6 7 8 9 10
6 7 8 9 10 11
7 8 9 10 11 12
8 9 10 11 12 13
9 10 11 12 13 14
5 6 7 8 6 7 8 9 10 11
7 8 9 10 11 12
8 9 10 11 12 13
9 10 11 12 13 14
10 11 12 13 14 15
6 7 8 9 7 8 9 10 11 12
8 9 10 11 12 13
9 10 11 12 13 14
10 11 12 13 14 15
11 12 13 14 15 16
2 3 4 5 3 4 5 6 7 8
4 5 6 7 8 9
5 6 7 8 9 10
6 7 8 9 10 11
7 8 9 10 11 12
3 4 5 6 4 5 6 7 8 9
5 6 7 8 9 10
6 7 8 9 10 11
7 8 9 10 11 12
8 9 10 11 12 13
4 5 6 7 5 6 7 8 9 10
6 7 8 9 10 11
7 8 9 10 11 12
8 9 10 11 12 13
9 10 11 12 13 14
5 6 7 8 6 7 8 9 10 11
7 8 9 10 11 12
8 9 10 11 12 13
9 10 11 12 13 14
10 11 12 13 14 15
6 7 8 9 7 8 9 10 11 12
8 9 10 11 12 13
9 10 11 12 13 14
10 11 12 13 14 15
11 12 13 14 15 16
7 8 9 10 8 9 10 11 12 13
9 10 11 12 13 14
10 11 12 13 14 15
11 12 13 14 15 16
12 13 14 15 16 17
</DataFromFile>
</Data>
</Dataset>
<Dataset Name="dset4" OBJ-XID="/group1/dset4" Parents="/group1">
<Dataspace>
<SimpleDataspace Ndims="1">
<Dimension DimSize="5" MaxDimSize="5"/>
</SimpleDataspace>
</Dataspace>
<NamedDataTypePtr OBJ-XID="/group1/type3"/>
<!-- Note: format of compound data not specified -->
<Data>
<DataFromFile>
0 3 1 4 2 5 3 6 4 7
</DataFromFile>
</Data>
</Dataset>
</Group>
<Group Name="group2" OBJ-XID="/group2" Parents="/" >
<Dataset Name="dset5" OBJ-XID="/group2/dset5" Parents="/group2">
<Dataspace>
<SimpleDataspace Ndims="1">
<Dimension DimSize="5" MaxDimSize="5"/>
</SimpleDataspace>
</Dataspace>
<NamedDataTypePtr OBJ-XID="/#6632:0"/>
<!-- Note: format of compound data not specified -->
<Data>
<DataFromFile>
0 0 1 0.1 2 0.2 3 0.3 4 0.4
</DataFromFile>
</Data>
</Dataset>
</Group>
</RootGroup>
</HDF5-File>

View File

@ -0,0 +1,196 @@
#############################
Expected output for 'h5dump --xml tcompound2.h5'
#############################
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE HDF5-File PUBLIC "HDF5-File.dtd" "http://hdf.ncsa.uiuc.edu/DTDs/HDF5-File.dtd">
<HDF5-File>
<RootGroup OBJ-XID="root">
<NamedDataType Name="#9560:0" OBJ-XID="/#9560:0" Parents="#9560:0">
<CompoundType>
<Field FieldName="int">
<DataType>
<AtomicType>
<IntegerType ByteOrder="BE" Sign="true" Size="4" />
</AtomicType>
</DataType>
</Field>
<Field FieldName="float">
<DataType>
<AtomicType>
<FloatType ByteOrder="BE" Size="4" SignBitLocation="31" ExponentBits="8" ExponentLocation="23" MantissaBits="23" MantissaLocation="0" />
</AtomicType>
</DataType>
</Field>
</CompoundType>
</NamedDataType>
<NamedDataType Name="type1" OBJ-XID="/type1" Parents="root">
<CompoundType>
<Field FieldName="int_name">
<DataType>
<AtomicType>
<IntegerType ByteOrder="BE" Sign="true" Size="4" />
</AtomicType>
</DataType>
</Field>
<Field FieldName="float_name">
<DataType>
<AtomicType>
<FloatType ByteOrder="BE" Size="4" SignBitLocation="31" ExponentBits="8" ExponentLocation="23" MantissaBits="23" MantissaLocation="0" />
</AtomicType>
</DataType>
</Field>
</CompoundType>
</NamedDataType>
<NamedDataType Name="type2" OBJ-XID="/type2" Parents="root">
<CompoundType>
<Field FieldName="int_array">
<DataType>
<ArrayType Ndims="1">
<ArrayDimension DimSize="4" DimPerm="0"/>
<DataType>
<AtomicType>
<IntegerType ByteOrder="BE" Sign="true" Size="4" />
</AtomicType>
</DataType>
</ArrayType>
</DataType>
</Field>
<Field FieldName="float_array">
<DataType>
<ArrayType Ndims="2">
<ArrayDimension DimSize="5" DimPerm="0"/>
<ArrayDimension DimSize="6" DimPerm="1"/>
<DataType>
<AtomicType>
<FloatType ByteOrder="BE" Size="4" SignBitLocation="31" ExponentBits="8" ExponentLocation="23" MantissaBits="23" MantissaLocation="0" />
</AtomicType>
</DataType>
</ArrayType>
</DataType>
</Field>
</CompoundType>
</NamedDataType>
<Dataset Name="dset1" OBJ-XID="/dset1" Parents="root">
<StorageLayout>
<ChunkedLayout Ndims="1">
<ChunkDimension DimSize="2" />
</ChunkedLayout>
</StorageLayout>
<Dataspace>
<SimpleDataspace Ndims="1">
<Dimension DimSize="6" MaxDimSize="UNLIMITED"/>
</SimpleDataspace>
</Dataspace>
<DataType>
<CompoundType>
<Field FieldName="a_name">
<DataType>
<AtomicType>
<IntegerType ByteOrder="BE" Sign="true" Size="4" />
</AtomicType>
</DataType>
</Field>
<Field FieldName="b_name">
<DataType>
<AtomicType>
<FloatType ByteOrder="BE" Size="4" SignBitLocation="31" ExponentBits="8" ExponentLocation="23" MantissaBits="23" MantissaLocation="0" />
</AtomicType>
</DataType>
</Field>
<Field FieldName="c_name">
<DataType>
<AtomicType>
<FloatType ByteOrder="BE" Size="8" SignBitLocation="63" ExponentBits="11" ExponentLocation="52" MantissaBits="52" MantissaLocation="0" />
</AtomicType>
</DataType>
</Field>
</CompoundType>
</DataType>
<!-- Note: format of compound data not specified -->
<Data>
<DataFromFile>
0 0 1 1 1 0.5 2 4 0.333333 3 9 0.25 4 16 0.2 5 25 0.166667
</DataFromFile>
</Data>
</Dataset>
<Group Name="group1" OBJ-XID="/group1" Parents="/" >
<NamedDataType Name="type3" OBJ-XID="/group1/type3" Parents="type3">
<CompoundType>
<Field FieldName="int">
<DataType>
<AtomicType>
<IntegerType ByteOrder="BE" Sign="true" Size="4" />
</AtomicType>
</DataType>
</Field>
<Field FieldName="float">
<DataType>
<AtomicType>
<FloatType ByteOrder="BE" Size="4" SignBitLocation="31" ExponentBits="8" ExponentLocation="23" MantissaBits="23" MantissaLocation="0" />
</AtomicType>
</DataType>
</Field>
</CompoundType>
</NamedDataType>
<Dataset Name="dset2" OBJ-XID="/group1/dset2" Parents="/group1">
<StorageLayout>
<ChunkedLayout Ndims="1">
<ChunkDimension DimSize="2" />
</ChunkedLayout>
</StorageLayout>
<Dataspace>
<SimpleDataspace Ndims="1">
<Dimension DimSize="6" MaxDimSize="10"/>
</SimpleDataspace>
</Dataspace>
<NamedDataTypePtr OBJ-XID="/type1"/>
<!-- Note: format of compound data not specified -->
<Data>
<DataFromFile>
0 0 1 1.1 2 2.2 3 3.3 4 4.4 5 5.5
</DataFromFile>
</Data>
</Dataset>
<Dataset Name="dset4" OBJ-XID="/group1/dset4" Parents="/group1">
<StorageLayout>
<ChunkedLayout Ndims="1">
<ChunkDimension DimSize="2" />
</ChunkedLayout>
</StorageLayout>
<Dataspace>
<SimpleDataspace Ndims="1">
<Dimension DimSize="6" MaxDimSize="10"/>
</SimpleDataspace>
</Dataspace>
<NamedDataTypePtr OBJ-XID="/group1/type3"/>
<!-- Note: format of compound data not specified -->
<Data>
<DataFromFile>
0 0 1 1 2 2 3 3 4 4 5 5
</DataFromFile>
</Data>
</Dataset>
</Group>
<Group Name="group2" OBJ-XID="/group2" Parents="/" >
<Dataset Name="dset5" OBJ-XID="/group2/dset5" Parents="/group2">
<StorageLayout>
<ChunkedLayout Ndims="1">
<ChunkDimension DimSize="2" />
</ChunkedLayout>
</StorageLayout>
<Dataspace>
<SimpleDataspace Ndims="1">
<Dimension DimSize="6" MaxDimSize="10"/>
</SimpleDataspace>
</Dataspace>
<NamedDataTypePtr OBJ-XID="/#9560:0"/>
<!-- Note: format of compound data not specified -->
<Data>
<DataFromFile>
0 0 1 1 2 2 3 3 4 4 5 5
</DataFromFile>
</Data>
</Dataset>
</Group>
</RootGroup>
</HDF5-File>

View File

@ -0,0 +1,54 @@
#############################
Expected output for 'h5dump --xml tdatareg.h5'
#############################
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE HDF5-File PUBLIC "HDF5-File.dtd" "http://hdf.ncsa.uiuc.edu/DTDs/HDF5-File.dtd">
<HDF5-File>
<RootGroup OBJ-XID="root">
<Dataset Name="Dataset1" OBJ-XID="/Dataset1" Parents="root">
<Dataspace>
<SimpleDataspace Ndims="1">
<Dimension DimSize="4" MaxDimSize="4"/>
</SimpleDataspace>
</Dataspace>
<DataType>
<AtomicType>
<ReferenceType>
<ObjectReferenceType />
</ReferenceType>
</AtomicType>
</DataType>
<Data>
<DataFromFile>
</DataFromFile>
</Data>
</Dataset>
<Dataset Name="Dataset2" OBJ-XID="/Dataset2" Parents="root">
<Dataspace>
<SimpleDataspace Ndims="2">
<Dimension DimSize="10" MaxDimSize="10"/>
<Dimension DimSize="10" MaxDimSize="10"/>
</SimpleDataspace>
</Dataspace>
<DataType>
<AtomicType>
<IntegerType ByteOrder="BE" Sign="false" Size="1" />
</AtomicType>
</DataType>
<Data>
<DataFromFile>
0 3 6 9 12 15 18 21 24 27
30 33 36 39 42 45 48 51 54 57
60 63 66 69 72 75 78 81 84 87
90 93 96 99 102 105 108 111 114 117
120 123 126 129 132 135 138 141 144 147
150 153 156 159 162 165 168 171 174 177
180 183 186 189 192 195 198 201 204 207
210 213 216 219 222 225 228 231 234 237
240 243 246 249 252 255 2 5 8 11
14 17 20 23 26 29 32 35 38 41
</DataFromFile>
</Data>
</Dataset>
</RootGroup>
</HDF5-File>

View File

@ -0,0 +1,133 @@
#############################
Expected output for 'h5dump --xml tdset.h5'
#############################
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE HDF5-File PUBLIC "HDF5-File.dtd" "http://hdf.ncsa.uiuc.edu/DTDs/HDF5-File.dtd">
<HDF5-File>
<RootGroup OBJ-XID="root">
<Dataset Name="dset1" OBJ-XID="/dset1" Parents="root">
<Dataspace>
<SimpleDataspace Ndims="2">
<Dimension DimSize="10" MaxDimSize="10"/>
<Dimension DimSize="20" MaxDimSize="20"/>
</SimpleDataspace>
</Dataspace>
<DataType>
<AtomicType>
<IntegerType ByteOrder="BE" Sign="true" Size="4" />
</AtomicType>
</DataType>
<Data>
<DataFromFile>
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
</DataFromFile>
</Data>
</Dataset>
<Dataset Name="dset2" OBJ-XID="/dset2" Parents="root">
<Dataspace>
<SimpleDataspace Ndims="2">
<Dimension DimSize="30" MaxDimSize="30"/>
<Dimension DimSize="20" MaxDimSize="20"/>
</SimpleDataspace>
</Dataspace>
<DataType>
<AtomicType>
<FloatType ByteOrder="BE" Size="8" SignBitLocation="63" ExponentBits="11" ExponentLocation="52" MantissaBits="52" MantissaLocation="0" />
</AtomicType>
</DataType>
<Data>
<DataFromFile>
0 0.0001 0.0002 0.0003 0.0004 0.0005 0.0006 0.0007 0.0008 0.0009 0.001
0.0011 0.0012 0.0013 0.0014 0.0015 0.0016 0.0017 0.0018 0.0019
1 1.0001 1.0002 1.0003 1.0004 1.0005 1.0006 1.0007 1.0008 1.0009 1.001
1.0011 1.0012 1.0013 1.0014 1.0015 1.0016 1.0017 1.0018 1.0019
2 2.0001 2.0002 2.0003 2.0004 2.0005 2.0006 2.0007 2.0008 2.0009 2.001
2.0011 2.0012 2.0013 2.0014 2.0015 2.0016 2.0017 2.0018 2.0019
3 3.0001 3.0002 3.0003 3.0004 3.0005 3.0006 3.0007 3.0008 3.0009 3.001
3.0011 3.0012 3.0013 3.0014 3.0015 3.0016 3.0017 3.0018 3.0019
4 4.0001 4.0002 4.0003 4.0004 4.0005 4.0006 4.0007 4.0008 4.0009 4.001
4.0011 4.0012 4.0013 4.0014 4.0015 4.0016 4.0017 4.0018 4.0019
5 5.0001 5.0002 5.0003 5.0004 5.0005 5.0006 5.0007 5.0008 5.0009 5.001
5.0011 5.0012 5.0013 5.0014 5.0015 5.0016 5.0017 5.0018 5.0019
6 6.0001 6.0002 6.0003 6.0004 6.0005 6.0006 6.0007 6.0008 6.0009 6.001
6.0011 6.0012 6.0013 6.0014 6.0015 6.0016 6.0017 6.0018 6.0019
7 7.0001 7.0002 7.0003 7.0004 7.0005 7.0006 7.0007 7.0008 7.0009 7.001
7.0011 7.0012 7.0013 7.0014 7.0015 7.0016 7.0017 7.0018 7.0019
8 8.0001 8.0002 8.0003 8.0004 8.0005 8.0006 8.0007 8.0008 8.0009 8.001
8.0011 8.0012 8.0013 8.0014 8.0015 8.0016 8.0017 8.0018 8.0019
9 9.0001 9.0002 9.0003 9.0004 9.0005 9.0006 9.0007 9.0008 9.0009 9.001
9.0011 9.0012 9.0013 9.0014 9.0015 9.0016 9.0017 9.0018 9.0019
10 10.0001 10.0002 10.0003 10.0004 10.0005 10.0006 10.0007 10.0008
10.0009 10.001 10.0011 10.0012 10.0013 10.0014 10.0015 10.0016 10.0017
10.0018 10.0019
11 11.0001 11.0002 11.0003 11.0004 11.0005 11.0006 11.0007 11.0008
11.0009 11.001 11.0011 11.0012 11.0013 11.0014 11.0015 11.0016 11.0017
11.0018 11.0019
12 12.0001 12.0002 12.0003 12.0004 12.0005 12.0006 12.0007 12.0008
12.0009 12.001 12.0011 12.0012 12.0013 12.0014 12.0015 12.0016 12.0017
12.0018 12.0019
13 13.0001 13.0002 13.0003 13.0004 13.0005 13.0006 13.0007 13.0008
13.0009 13.001 13.0011 13.0012 13.0013 13.0014 13.0015 13.0016 13.0017
13.0018 13.0019
14 14.0001 14.0002 14.0003 14.0004 14.0005 14.0006 14.0007 14.0008
14.0009 14.001 14.0011 14.0012 14.0013 14.0014 14.0015 14.0016 14.0017
14.0018 14.0019
15 15.0001 15.0002 15.0003 15.0004 15.0005 15.0006 15.0007 15.0008
15.0009 15.001 15.0011 15.0012 15.0013 15.0014 15.0015 15.0016 15.0017
15.0018 15.0019
16 16.0001 16.0002 16.0003 16.0004 16.0005 16.0006 16.0007 16.0008
16.0009 16.001 16.0011 16.0012 16.0013 16.0014 16.0015 16.0016 16.0017
16.0018 16.0019
17 17.0001 17.0002 17.0003 17.0004 17.0005 17.0006 17.0007 17.0008
17.0009 17.001 17.0011 17.0012 17.0013 17.0014 17.0015 17.0016 17.0017
17.0018 17.0019
18 18.0001 18.0002 18.0003 18.0004 18.0005 18.0006 18.0007 18.0008
18.0009 18.001 18.0011 18.0012 18.0013 18.0014 18.0015 18.0016 18.0017
18.0018 18.0019
19 19.0001 19.0002 19.0003 19.0004 19.0005 19.0006 19.0007 19.0008
19.0009 19.001 19.0011 19.0012 19.0013 19.0014 19.0015 19.0016 19.0017
19.0018 19.0019
20 20.0001 20.0002 20.0003 20.0004 20.0005 20.0006 20.0007 20.0008
20.0009 20.001 20.0011 20.0012 20.0013 20.0014 20.0015 20.0016 20.0017
20.0018 20.0019
21 21.0001 21.0002 21.0003 21.0004 21.0005 21.0006 21.0007 21.0008
21.0009 21.001 21.0011 21.0012 21.0013 21.0014 21.0015 21.0016 21.0017
21.0018 21.0019
22 22.0001 22.0002 22.0003 22.0004 22.0005 22.0006 22.0007 22.0008
22.0009 22.001 22.0011 22.0012 22.0013 22.0014 22.0015 22.0016 22.0017
22.0018 22.0019
23 23.0001 23.0002 23.0003 23.0004 23.0005 23.0006 23.0007 23.0008
23.0009 23.001 23.0011 23.0012 23.0013 23.0014 23.0015 23.0016 23.0017
23.0018 23.0019
24 24.0001 24.0002 24.0003 24.0004 24.0005 24.0006 24.0007 24.0008
24.0009 24.001 24.0011 24.0012 24.0013 24.0014 24.0015 24.0016 24.0017
24.0018 24.0019
25 25.0001 25.0002 25.0003 25.0004 25.0005 25.0006 25.0007 25.0008
25.0009 25.001 25.0011 25.0012 25.0013 25.0014 25.0015 25.0016 25.0017
25.0018 25.0019
26 26.0001 26.0002 26.0003 26.0004 26.0005 26.0006 26.0007 26.0008
26.0009 26.001 26.0011 26.0012 26.0013 26.0014 26.0015 26.0016 26.0017
26.0018 26.0019
27 27.0001 27.0002 27.0003 27.0004 27.0005 27.0006 27.0007 27.0008
27.0009 27.001 27.0011 27.0012 27.0013 27.0014 27.0015 27.0016 27.0017
27.0018 27.0019
28 28.0001 28.0002 28.0003 28.0004 28.0005 28.0006 28.0007 28.0008
28.0009 28.001 28.0011 28.0012 28.0013 28.0014 28.0015 28.0016 28.0017
28.0018 28.0019
29 29.0001 29.0002 29.0003 29.0004 29.0005 29.0006 29.0007 29.0008
29.0009 29.001 29.0011 29.0012 29.0013 29.0014 29.0015 29.0016 29.0017
29.0018 29.0019
</DataFromFile>
</Data>
</Dataset>
</RootGroup>
</HDF5-File>

View File

@ -0,0 +1,95 @@
#############################
Expected output for 'h5dump --xml tdset2.h5'
#############################
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE HDF5-File PUBLIC "HDF5-File.dtd" "http://hdf.ncsa.uiuc.edu/DTDs/HDF5-File.dtd">
<HDF5-File>
<RootGroup OBJ-XID="root">
<Dataset Name="dset1" OBJ-XID="/dset1" Parents="root">
<StorageLayout>
<ChunkedLayout Ndims="2">
<ChunkDimension DimSize="5" />
<ChunkDimension DimSize="5" />
</ChunkedLayout>
</StorageLayout>
<Dataspace>
<SimpleDataspace Ndims="2">
<Dimension DimSize="10" MaxDimSize="UNLIMITED"/>
<Dimension DimSize="20" MaxDimSize="20"/>
</SimpleDataspace>
</Dataspace>
<DataType>
<AtomicType>
<IntegerType ByteOrder="BE" Sign="true" Size="4" />
</AtomicType>
</DataType>
<Data>
<DataFromFile>
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
</DataFromFile>
</Data>
</Dataset>
<Dataset Name="dset2" OBJ-XID="/dset2" Parents="root">
<StorageLayout>
<ChunkedLayout Ndims="2">
<ChunkDimension DimSize="5" />
<ChunkDimension DimSize="5" />
</ChunkedLayout>
</StorageLayout>
<Dataspace>
<SimpleDataspace Ndims="2">
<Dimension DimSize="30" MaxDimSize="30"/>
<Dimension DimSize="10" MaxDimSize="UNLIMITED"/>
</SimpleDataspace>
</Dataspace>
<DataType>
<AtomicType>
<FloatType ByteOrder="BE" Size="8" SignBitLocation="63" ExponentBits="11" ExponentLocation="52" MantissaBits="52" MantissaLocation="0" />
</AtomicType>
</DataType>
<Data>
<DataFromFile>
0 1 2 3 4 5 6 7 8 9
0 1 2 3 4 5 6 7 8 9
0 1 2 3 4 5 6 7 8 9
0 1 2 3 4 5 6 7 8 9
0 1 2 3 4 5 6 7 8 9
0 1 2 3 4 5 6 7 8 9
0 1 2 3 4 5 6 7 8 9
0 1 2 3 4 5 6 7 8 9
0 1 2 3 4 5 6 7 8 9
0 1 2 3 4 5 6 7 8 9
0 1 2 3 4 5 6 7 8 9
0 1 2 3 4 5 6 7 8 9
0 1 2 3 4 5 6 7 8 9
0 1 2 3 4 5 6 7 8 9
0 1 2 3 4 5 6 7 8 9
0 1 2 3 4 5 6 7 8 9
0 1 2 3 4 5 6 7 8 9
0 1 2 3 4 5 6 7 8 9
0 1 2 3 4 5 6 7 8 9
0 1 2 3 4 5 6 7 8 9
0 1 2 3 4 5 6 7 8 9
0 1 2 3 4 5 6 7 8 9
0 1 2 3 4 5 6 7 8 9
0 1 2 3 4 5 6 7 8 9
0 1 2 3 4 5 6 7 8 9
0 1 2 3 4 5 6 7 8 9
0 1 2 3 4 5 6 7 8 9
0 1 2 3 4 5 6 7 8 9
0 1 2 3 4 5 6 7 8 9
0 1 2 3 4 5 6 7 8 9
</DataFromFile>
</Data>
</Dataset>
</RootGroup>
</HDF5-File>

View File

@ -0,0 +1,125 @@
#############################
Expected output for 'h5dump --xml tempty.h5'
#############################
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE HDF5-File PUBLIC "HDF5-File.dtd" "http://hdf.ncsa.uiuc.edu/DTDs/HDF5-File.dtd">
<HDF5-File>
<RootGroup OBJ-XID="root">
<Dataset Name="Dataset1.0" OBJ-XID="/Dataset1.0" Parents="root">
<Dataspace>
<SimpleDataspace Ndims="1">
<Dimension DimSize="4" MaxDimSize="4"/>
</SimpleDataspace>
</Dataspace>
<DataType>
<VLType>
<DataType>
<AtomicType>
<IntegerType ByteOrder="LE" Sign="true" Size="4" />
</AtomicType>
</DataType>
</VLType>
</DataType>
<!-- Note: format of VL data not specified -->
<Data>
<DataFromFile>
</DataFromFile>
</Data>
</Dataset>
<Dataset Name="Dataset2.0" OBJ-XID="/Dataset2.0" Parents="root">
<Dataspace>
<SimpleDataspace Ndims="1">
<Dimension DimSize="4" MaxDimSize="4"/>
</SimpleDataspace>
</Dataspace>
<DataType>
<AtomicType>
<IntegerType ByteOrder="LE" Sign="true" Size="4" />
</AtomicType>
</DataType>
<Data>
<DataFromFile>
0 0 0 0
</DataFromFile>
</Data>
</Dataset>
<Dataset Name="Dataset3.0" OBJ-XID="/Dataset3.0" Parents="root">
<Dataspace>
<SimpleDataspace Ndims="1">
<Dimension DimSize="4" MaxDimSize="4"/>
</SimpleDataspace>
</Dataspace>
<DataType>
<AtomicType>
<FloatType ByteOrder="LE" Size="4" SignBitLocation="31" ExponentBits="8" ExponentLocation="23" MantissaBits="23" MantissaLocation="0" />
</AtomicType>
</DataType>
<Data>
<DataFromFile>
0 0 0 0
</DataFromFile>
</Data>
</Dataset>
<Dataset Name="Dataset4.0" OBJ-XID="/Dataset4.0" Parents="root">
<Dataspace>
<SimpleDataspace Ndims="1">
<Dimension DimSize="4" MaxDimSize="4"/>
</SimpleDataspace>
</Dataspace>
<DataType>
<ArrayType Ndims="1">
<ArrayDimension DimSize="4" DimPerm="0"/>
<DataType>
<AtomicType>
<IntegerType ByteOrder="LE" Sign="true" Size="4" />
</AtomicType>
</DataType>
</ArrayType>
</DataType>
<Data>
<DataFromFile>
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
</DataFromFile>
</Data>
</Dataset>
<Dataset Name="Dataset5.0" OBJ-XID="/Dataset5.0" Parents="root">
<Dataspace>
<SimpleDataspace Ndims="1">
<Dimension DimSize="4" MaxDimSize="4"/>
</SimpleDataspace>
</Dataspace>
<DataType>
<CompoundType>
<Field FieldName="a">
<DataType>
<AtomicType>
<IntegerType ByteOrder="LE" Sign="true" Size="4" />
</AtomicType>
</DataType>
</Field>
<Field FieldName="b">
<DataType>
<AtomicType>
<FloatType ByteOrder="LE" Size="4" SignBitLocation="31" ExponentBits="8" ExponentLocation="23" MantissaBits="23" MantissaLocation="0" />
</AtomicType>
</DataType>
</Field>
<Field FieldName="c">
<DataType>
<AtomicType>
<IntegerType ByteOrder="LE" Sign="true" Size="1" />
</AtomicType>
</DataType>
</Field>
</CompoundType>
</DataType>
<!-- Note: format of compound data not specified -->
<Data>
<DataFromFile>
0 0 0 0 0 0 0 0 0 0 0 0
</DataFromFile>
</Data>
</Dataset>
</RootGroup>
</HDF5-File>

View File

@ -0,0 +1,59 @@
#############################
Expected output for 'h5dump --xml tenum.h5'
#############################
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE HDF5-File PUBLIC "HDF5-File.dtd" "http://hdf.ncsa.uiuc.edu/DTDs/HDF5-File.dtd">
<HDF5-File>
<RootGroup OBJ-XID="root">
<NamedDataType Name="enum normal" OBJ-XID="/enum normal" Parents="root">
<AtomicType>
<EnumType Nelems="5">
<EnumElement>
RED
</EnumElement>
<EnumValue>
0
</EnumValue>
<EnumElement>
GREEN
</EnumElement>
<EnumValue>
1
</EnumValue>
<EnumElement>
BLUE
</EnumElement>
<EnumValue>
2
</EnumValue>
<EnumElement>
WHITE
</EnumElement>
<EnumValue>
3
</EnumValue>
<EnumElement>
BLACK
</EnumElement>
<EnumValue>
4
</EnumValue>
</EnumType>
</AtomicType>
</NamedDataType>
<Dataset Name="table" OBJ-XID="/table" Parents="root">
<Dataspace>
<SimpleDataspace Ndims="1">
<Dimension DimSize="20" MaxDimSize="20"/>
</SimpleDataspace>
</Dataspace>
<NamedDataTypePtr OBJ-XID="/enum normal"/>
<Data>
<DataFromFile>
RED GREEN BLUE GREEN WHITE WHITE BLACK GREEN BLUE RED RED BLUE GREEN
BLACK WHITE RED WHITE GREEN GREEN BLUE
</DataFromFile>
</Data>
</Dataset>
</RootGroup>
</HDF5-File>

View File

@ -0,0 +1,35 @@
#############################
Expected output for 'h5dump --xml tgroup.h5'
#############################
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE HDF5-File PUBLIC "HDF5-File.dtd" "http://hdf.ncsa.uiuc.edu/DTDs/HDF5-File.dtd">
<HDF5-File>
<RootGroup OBJ-XID="root">
<Group Name="g1" OBJ-XID="/g1" Parents="/" >
<Group Name="g1.1" OBJ-XID="/g1/g1.1" Parents="/g1" >
</Group>
<Group Name="g1.2" OBJ-XID="/g1/g1.2" Parents="/g1" >
</Group>
</Group>
<Group Name="g2" OBJ-XID="/g2" Parents="/" >
<Group Name="g2.1" OBJ-XID="/g2/g2.1" Parents="/g2" >
<Group Name="g2.1.1" OBJ-XID="/g2/g2.1/g2.1.1" Parents="/g2/g2.1" >
</Group>
<Group Name="g2.1.2" OBJ-XID="/g2/g2.1/g2.1.2" Parents="/g2/g2.1" >
</Group>
<Group Name="g2.1.3" OBJ-XID="/g2/g2.1/g2.1.3" Parents="/g2/g2.1" >
</Group>
</Group>
</Group>
<Group Name="g3" OBJ-XID="/g3" Parents="/" >
<Group Name="g3.1" OBJ-XID="/g3/g3.1" Parents="/g3" >
</Group>
<Group Name="g3.2" OBJ-XID="/g3/g3.2" Parents="/g3" >
</Group>
<Group Name="g3.3" OBJ-XID="/g3/g3.3" Parents="/g3" >
</Group>
<Group Name="g3.4" OBJ-XID="/g3/g3.4" Parents="/g3" >
</Group>
</Group>
</RootGroup>
</HDF5-File>

View File

@ -0,0 +1,39 @@
#############################
Expected output for 'h5dump --xml thlink.h5'
#############################
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE HDF5-File PUBLIC "HDF5-File.dtd" "http://hdf.ncsa.uiuc.edu/DTDs/HDF5-File.dtd">
<HDF5-File>
<RootGroup OBJ-XID="root">
<Dataset Name="dset1" OBJ-XID="/dset1" Parents="root">
<Dataspace>
<SimpleDataspace Ndims="1">
<Dimension DimSize="5" MaxDimSize="5"/>
</SimpleDataspace>
</Dataspace>
<DataType>
<AtomicType>
<IntegerType ByteOrder="BE" Sign="true" Size="4" />
</AtomicType>
</DataType>
<Data>
<DataFromFile>
0 1 2 3 4
</DataFromFile>
</Data>
</Dataset>
<Group Name="g1" OBJ-XID="/g1" Parents="/" >
<Dataset Name="dset2" OBJ-XID="/g1" Parents="/g1">
<DatasetPtr OBJ-XID="/dset1"/>
</Dataset>
<Group Name="g1.1" OBJ-XID="/g1/g1.1" Parents="/g1" >
<Dataset Name="dset3" OBJ-XID="/g1/g1.1" Parents="/g1/g1.1">
<DatasetPtr OBJ-XID="/dset1"/>
</Dataset>
</Group>
</Group>
<Group Name="g2" OBJ-XID="/g2" Parents="/" >
<GroupPtr OBJ-XID="/g1/g1.1"/>
</Group>
</RootGroup>
</HDF5-File>

View File

@ -0,0 +1,19 @@
#############################
Expected output for 'h5dump --xml tloop.h5'
#############################
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE HDF5-File PUBLIC "HDF5-File.dtd" "http://hdf.ncsa.uiuc.edu/DTDs/HDF5-File.dtd">
<HDF5-File>
<RootGroup OBJ-XID="root">
<Group Name="g1" OBJ-XID="/g1" Parents="/" >
<Group Name="g1.1" OBJ-XID="/g1/g1.1" Parents="/g1" >
<Group Name="g2.1" OBJ-XID="/g1/g1.1/g2.1" Parents="/g1/g1.1" >
<GroupPtr OBJ-XID="/g1"/>
</Group>
</Group>
</Group>
<Group Name="g2" OBJ-XID="/g2" Parents="/" >
<GroupPtr OBJ-XID="/g1/g1.1"/>
</Group>
</RootGroup>
</HDF5-File>

View File

@ -0,0 +1,17 @@
#############################
Expected output for 'h5dump --xml tloop2.h5'
#############################
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE HDF5-File PUBLIC "HDF5-File.dtd" "http://hdf.ncsa.uiuc.edu/DTDs/HDF5-File.dtd">
<HDF5-File>
<RootGroup OBJ-XID="root">
<Group Name="g1" OBJ-XID="/g1" Parents="/" >
<Group Name="g1.1" OBJ-XID="/g1/g1.1" Parents="/g1" >
<SoftLink LinkName="g2.1" Target="/g1" TargetObj="/g1" OBJ-XID="g2.1" Source="/g1/g1.1"/>
</Group>
</Group>
<Group Name="g2" OBJ-XID="/g2" Parents="/" >
<GroupPtr OBJ-XID="/g1/g1.1"/>
</Group>
</RootGroup>
</HDF5-File>

View File

@ -0,0 +1,338 @@
#############################
Expected output for 'h5dump --xml tmany.h5'
#############################
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE HDF5-File PUBLIC "HDF5-File.dtd" "http://hdf.ncsa.uiuc.edu/DTDs/HDF5-File.dtd">
<HDF5-File>
<RootGroup OBJ-XID="root">
<Group Name="g1" OBJ-XID="/g1" Parents="/" >
<Group Name="g1.1" OBJ-XID="/g1/g1.1" Parents="/g1" >
<Dataset Name="dset1" OBJ-XID="/g1/g1.1/dset1" Parents="/g1/g1.1">
<StorageLayout>
<ChunkedLayout Ndims="1">
<ChunkDimension DimSize="2" />
</ChunkedLayout>
</StorageLayout>
<Dataspace>
<SimpleDataspace Ndims="1">
<Dimension DimSize="6" MaxDimSize="UNLIMITED"/>
</SimpleDataspace>
</Dataspace>
<DataType>
<CompoundType>
<Field FieldName="a_array">
<DataType>
<ArrayType Ndims="4">
<ArrayDimension DimSize="2" DimPerm="0"/>
<ArrayDimension DimSize="2" DimPerm="1"/>
<ArrayDimension DimSize="2" DimPerm="2"/>
<ArrayDimension DimSize="2" DimPerm="3"/>
<DataType>
<AtomicType>
<IntegerType ByteOrder="BE" Sign="true" Size="4" />
</AtomicType>
</DataType>
</ArrayType>
</DataType>
</Field>
<Field FieldName="b_array">
<DataType>
<ArrayType Ndims="4">
<ArrayDimension DimSize="2" DimPerm="0"/>
<ArrayDimension DimSize="2" DimPerm="1"/>
<ArrayDimension DimSize="2" DimPerm="2"/>
<ArrayDimension DimSize="2" DimPerm="3"/>
<DataType>
<AtomicType>
<FloatType ByteOrder="BE" Size="8" SignBitLocation="63" ExponentBits="11" ExponentLocation="52" MantissaBits="52" MantissaLocation="0" />
</AtomicType>
</DataType>
</ArrayType>
</DataType>
</Field>
<Field FieldName="c_array">
<DataType>
<ArrayType Ndims="4">
<ArrayDimension DimSize="2" DimPerm="0"/>
<ArrayDimension DimSize="2" DimPerm="1"/>
<ArrayDimension DimSize="2" DimPerm="2"/>
<ArrayDimension DimSize="2" DimPerm="3"/>
<DataType>
<AtomicType>
<FloatType ByteOrder="BE" Size="8" SignBitLocation="63" ExponentBits="11" ExponentLocation="52" MantissaBits="52" MantissaLocation="0" />
</AtomicType>
</DataType>
</ArrayType>
</DataType>
</Field>
</CompoundType>
</DataType>
<Attribute Name="attr1">
<Dataspace>
<SimpleDataspace Ndims="1">
<Dimension DimSize="10" MaxDimSize="10"/>
</SimpleDataspace>
</Dataspace>
<DataType>
<AtomicType>
<IntegerType ByteOrder="BE" Sign="true" Size="1" />
</AtomicType>
</DataType>
<Data>
<DataFromFile>
97 98 99 100 101 102 103 104 105 0
</DataFromFile>
</Data>
</Attribute>
<Attribute Name="attr2">
<Dataspace>
<SimpleDataspace Ndims="2">
<Dimension DimSize="2" MaxDimSize="2"/>
<Dimension DimSize="2" MaxDimSize="2"/>
</SimpleDataspace>
</Dataspace>
<DataType>
<AtomicType>
<IntegerType ByteOrder="BE" Sign="true" Size="4" />
</AtomicType>
</DataType>
<Data>
<DataFromFile>
0 1
2 3
</DataFromFile>
</Data>
</Attribute>
<Attribute Name="attr3">
<Dataspace>
<SimpleDataspace Ndims="1">
<Dimension DimSize="10" MaxDimSize="10"/>
</SimpleDataspace>
</Dataspace>
<DataType>
<AtomicType>
<FloatType ByteOrder="BE" Size="8" SignBitLocation="63" ExponentBits="11" ExponentLocation="52" MantissaBits="52" MantissaLocation="0" />
</AtomicType>
</DataType>
<Data>
<DataFromFile>
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9
</DataFromFile>
</Data>
</Attribute>
<!-- Note: format of compound data not specified -->
<Data>
<DataFromFile>
0 1
0 1
0 1
0 1
0 1
0 1
0 1
0 1 0 1
0 1
0 1
0 1
0 1
0 1
0 1
0 1 6 7
6 7
6 7
6 7
6 7
6 7
6 7
6 7
1 2
1 2
1 2
1 2
1 2
1 2
1 2
1 2 1 2
1 2
1 2
1 2
1 2
1 2
1 2
1 2 7 8
7 8
7 8
7 8
7 8
7 8
7 8
7 8
2 3
2 3
2 3
2 3
2 3
2 3
2 3
2 3 2 3
2 3
2 3
2 3
2 3
2 3
2 3
2 3 8 9
8 9
8 9
8 9
8 9
8 9
8 9
8 9
3 4
3 4
3 4
3 4
3 4
3 4
3 4
3 4 3 4
3 4
3 4
3 4
3 4
3 4
3 4
3 4 9 10
9 10
9 10
9 10
9 10
9 10
9 10
9 10
4 5
4 5
4 5
4 5
4 5
4 5
4 5
4 5 4 5
4 5
4 5
4 5
4 5
4 5
4 5
4 5 10 11
10 11
10 11
10 11
10 11
10 11
10 11
10 11
5 6
5 6
5 6
5 6
5 6
5 6
5 6
5 6 5 6
5 6
5 6
5 6
5 6
5 6
5 6
5 6 11 12
11 12
11 12
11 12
11 12
11 12
11 12
11 12
</DataFromFile>
</Data>
</Dataset>
</Group>
<Group Name="g1.2" OBJ-XID="/g1/g1.2" Parents="/g1" >
<Dataset Name="link1" OBJ-XID="/g1/g1.2" Parents="/g1/g1.2">
<DatasetPtr OBJ-XID="/g1/g1.1/dset1"/>
</Dataset>
</Group>
</Group>
<Group Name="g2" OBJ-XID="/g2" Parents="/" >
<SoftLink LinkName="slink2" Target="/g1" TargetObj="/g1" OBJ-XID="slink2" Source="/g2"/>
</Group>
<Group Name="g3" OBJ-XID="/g3" Parents="/" >
<Dataset Name="link3" OBJ-XID="/g3/link3" Parents="/g3">
<Dataspace>
<SimpleDataspace Ndims="2">
<Dimension DimSize="10" MaxDimSize="10"/>
<Dimension DimSize="10" MaxDimSize="10"/>
</SimpleDataspace>
</Dataspace>
<DataType>
<AtomicType>
<IntegerType ByteOrder="BE" Sign="true" Size="4" />
</AtomicType>
</DataType>
<Data>
<DataFromFile>
0 1 2 3 4 5 6 7 8 9
0 1 2 3 4 5 6 7 8 9
0 1 2 3 4 5 6 7 8 9
0 1 2 3 4 5 6 7 8 9
0 1 2 3 4 5 6 7 8 9
0 1 2 3 4 5 6 7 8 9
0 1 2 3 4 5 6 7 8 9
0 1 2 3 4 5 6 7 8 9
0 1 2 3 4 5 6 7 8 9
0 1 2 3 4 5 6 7 8 9
</DataFromFile>
</Data>
</Dataset>
</Group>
<Group Name="g4" OBJ-XID="/g4" Parents="/" >
<Dataset Name="dset2" OBJ-XID="/g4" Parents="/g4">
<DatasetPtr OBJ-XID="/g3/link3"/>
</Dataset>
</Group>
<Group Name="g5" OBJ-XID="/g5" Parents="/" >
<SoftLink LinkName="slink4" Target="/g6/dset3" TargetObj="/g6/dset3" OBJ-XID="slink4" Source="/g5"/>
</Group>
<Group Name="g6" OBJ-XID="/g6" Parents="/" >
<Dataset Name="dset3" OBJ-XID="/g6/dset3" Parents="/g6">
<Dataspace>
<SimpleDataspace Ndims="2">
<Dimension DimSize="10" MaxDimSize="10"/>
<Dimension DimSize="10" MaxDimSize="10"/>
</SimpleDataspace>
</Dataspace>
<DataType>
<AtomicType>
<IntegerType ByteOrder="BE" Sign="true" Size="4" />
</AtomicType>
</DataType>
<Data>
<DataFromFile>
0 0 0 0 0 0 0 0 0 0
1 1 1 1 1 1 1 1 1 1
2 2 2 2 2 2 2 2 2 2
3 3 3 3 3 3 3 3 3 3
4 4 4 4 4 4 4 4 4 4
5 5 5 5 5 5 5 5 5 5
6 6 6 6 6 6 6 6 6 6
7 7 7 7 7 7 7 7 7 7
8 8 8 8 8 8 8 8 8 8
9 9 9 9 9 9 9 9 9 9
</DataFromFile>
</Data>
</Dataset>
</Group>
</RootGroup>
</HDF5-File>

Binary file not shown.

View File

@ -0,0 +1,55 @@
#############################
Expected output for 'h5dump --xml tname-amp.h5'
#############################
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE HDF5-File PUBLIC "HDF5-File.dtd" "http://hdf.ncsa.uiuc.edu/DTDs/HDF5-File.dtd">
<HDF5-File>
<RootGroup OBJ-XID="root">
<Attribute Name="attr1&amp;withamp">
<Dataspace>
<SimpleDataspace Ndims="1">
<Dimension DimSize="10" MaxDimSize="10"/>
</SimpleDataspace>
</Dataspace>
<DataType>
<AtomicType>
<IntegerType ByteOrder="BE" Sign="true" Size="1" />
</AtomicType>
</DataType>
<Data>
<DataFromFile>
97 98 99 100 101 102 103 104 105 0
</DataFromFile>
</Data>
</Attribute>
<Group Name="g1.1&amp;withamp" OBJ-XID="/g1.1&amp;withamp" Parents="/" >
<Dataset Name="dset1.1.1&amp;withamp" OBJ-XID="/g1.1&amp;withamp/dset1.1.1&amp;withamp" Parents="/g1.1&amp;withamp">
<Dataspace>
<SimpleDataspace Ndims="2">
<Dimension DimSize="10" MaxDimSize="10"/>
<Dimension DimSize="10" MaxDimSize="10"/>
</SimpleDataspace>
</Dataspace>
<DataType>
<AtomicType>
<IntegerType ByteOrder="BE" Sign="true" Size="4" />
</AtomicType>
</DataType>
<Data>
<DataFromFile>
0 0 0 0 0 0 0 0 0 0
0 1 2 3 4 5 6 7 8 9
0 2 4 6 8 10 12 14 16 18
0 3 6 9 12 15 18 21 24 27
0 4 8 12 16 20 24 28 32 36
0 5 10 15 20 25 30 35 40 45
0 6 12 18 24 30 36 42 48 54
0 7 14 21 28 35 42 49 56 63
0 8 16 24 32 40 48 56 64 72
0 9 18 27 36 45 54 63 72 81
</DataFromFile>
</Data>
</Dataset>
</Group>
</RootGroup>
</HDF5-File>

Binary file not shown.

View File

@ -0,0 +1,55 @@
#############################
Expected output for 'h5dump --xml tname-apos.h5'
#############################
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE HDF5-File PUBLIC "HDF5-File.dtd" "http://hdf.ncsa.uiuc.edu/DTDs/HDF5-File.dtd">
<HDF5-File>
<RootGroup OBJ-XID="root">
<Attribute Name="attr1&apos;withapos">
<Dataspace>
<SimpleDataspace Ndims="1">
<Dimension DimSize="10" MaxDimSize="10"/>
</SimpleDataspace>
</Dataspace>
<DataType>
<AtomicType>
<IntegerType ByteOrder="BE" Sign="true" Size="1" />
</AtomicType>
</DataType>
<Data>
<DataFromFile>
97 98 99 100 101 102 103 104 105 0
</DataFromFile>
</Data>
</Attribute>
<Group Name="g1.1&apos;withapos" OBJ-XID="/g1.1&apos;withapos" Parents="/" >
<Dataset Name="dset1.1.1&apos;withapos" OBJ-XID="/g1.1&apos;withapos/dset1.1.1&apos;withapos" Parents="/g1.1&apos;withapos">
<Dataspace>
<SimpleDataspace Ndims="2">
<Dimension DimSize="10" MaxDimSize="10"/>
<Dimension DimSize="10" MaxDimSize="10"/>
</SimpleDataspace>
</Dataspace>
<DataType>
<AtomicType>
<IntegerType ByteOrder="BE" Sign="true" Size="4" />
</AtomicType>
</DataType>
<Data>
<DataFromFile>
0 0 0 0 0 0 0 0 0 0
0 1 2 3 4 5 6 7 8 9
0 2 4 6 8 10 12 14 16 18
0 3 6 9 12 15 18 21 24 27
0 4 8 12 16 20 24 28 32 36
0 5 10 15 20 25 30 35 40 45
0 6 12 18 24 30 36 42 48 54
0 7 14 21 28 35 42 49 56 63
0 8 16 24 32 40 48 56 64 72
0 9 18 27 36 45 54 63 72 81
</DataFromFile>
</Data>
</Dataset>
</Group>
</RootGroup>
</HDF5-File>

BIN
tools/testfiles/tname-gt.h5 Normal file

Binary file not shown.

View File

@ -0,0 +1,55 @@
#############################
Expected output for 'h5dump --xml tname-gt.h5'
#############################
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE HDF5-File PUBLIC "HDF5-File.dtd" "http://hdf.ncsa.uiuc.edu/DTDs/HDF5-File.dtd">
<HDF5-File>
<RootGroup OBJ-XID="root">
<Attribute Name="attr1&gt;withgt">
<Dataspace>
<SimpleDataspace Ndims="1">
<Dimension DimSize="10" MaxDimSize="10"/>
</SimpleDataspace>
</Dataspace>
<DataType>
<AtomicType>
<IntegerType ByteOrder="BE" Sign="true" Size="1" />
</AtomicType>
</DataType>
<Data>
<DataFromFile>
97 98 99 100 101 102 103 104 105 0
</DataFromFile>
</Data>
</Attribute>
<Group Name="g1.1&gt;withgt" OBJ-XID="/g1.1&gt;withgt" Parents="/" >
<Dataset Name="dset1.1.1&gt;withgt" OBJ-XID="/g1.1&gt;withgt/dset1.1.1&gt;withgt" Parents="/g1.1&gt;withgt">
<Dataspace>
<SimpleDataspace Ndims="2">
<Dimension DimSize="10" MaxDimSize="10"/>
<Dimension DimSize="10" MaxDimSize="10"/>
</SimpleDataspace>
</Dataspace>
<DataType>
<AtomicType>
<IntegerType ByteOrder="BE" Sign="true" Size="4" />
</AtomicType>
</DataType>
<Data>
<DataFromFile>
0 0 0 0 0 0 0 0 0 0
0 1 2 3 4 5 6 7 8 9
0 2 4 6 8 10 12 14 16 18
0 3 6 9 12 15 18 21 24 27
0 4 8 12 16 20 24 28 32 36
0 5 10 15 20 25 30 35 40 45
0 6 12 18 24 30 36 42 48 54
0 7 14 21 28 35 42 49 56 63
0 8 16 24 32 40 48 56 64 72
0 9 18 27 36 45 54 63 72 81
</DataFromFile>
</Data>
</Dataset>
</Group>
</RootGroup>
</HDF5-File>

BIN
tools/testfiles/tname-lt.h5 Normal file

Binary file not shown.

View File

@ -0,0 +1,55 @@
#############################
Expected output for 'h5dump --xml tname-lt.h5'
#############################
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE HDF5-File PUBLIC "HDF5-File.dtd" "http://hdf.ncsa.uiuc.edu/DTDs/HDF5-File.dtd">
<HDF5-File>
<RootGroup OBJ-XID="root">
<Attribute Name="attr1&lt;withlt">
<Dataspace>
<SimpleDataspace Ndims="1">
<Dimension DimSize="10" MaxDimSize="10"/>
</SimpleDataspace>
</Dataspace>
<DataType>
<AtomicType>
<IntegerType ByteOrder="BE" Sign="true" Size="1" />
</AtomicType>
</DataType>
<Data>
<DataFromFile>
97 98 99 100 101 102 103 104 105 0
</DataFromFile>
</Data>
</Attribute>
<Group Name="g1.1&lt;withlt" OBJ-XID="/g1.1&lt;withlt" Parents="/" >
<Dataset Name="dset1.1.1&lt;withlt" OBJ-XID="/g1.1&lt;withlt/dset1.1.1&lt;withlt" Parents="/g1.1&lt;withlt">
<Dataspace>
<SimpleDataspace Ndims="2">
<Dimension DimSize="10" MaxDimSize="10"/>
<Dimension DimSize="10" MaxDimSize="10"/>
</SimpleDataspace>
</Dataspace>
<DataType>
<AtomicType>
<IntegerType ByteOrder="BE" Sign="true" Size="4" />
</AtomicType>
</DataType>
<Data>
<DataFromFile>
0 0 0 0 0 0 0 0 0 0
0 1 2 3 4 5 6 7 8 9
0 2 4 6 8 10 12 14 16 18
0 3 6 9 12 15 18 21 24 27
0 4 8 12 16 20 24 28 32 36
0 5 10 15 20 25 30 35 40 45
0 6 12 18 24 30 36 42 48 54
0 7 14 21 28 35 42 49 56 63
0 8 16 24 32 40 48 56 64 72
0 9 18 27 36 45 54 63 72 81
</DataFromFile>
</Data>
</Dataset>
</Group>
</RootGroup>
</HDF5-File>

Binary file not shown.

View File

@ -0,0 +1,55 @@
#############################
Expected output for 'h5dump --xml tname-quot.h5'
#############################
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE HDF5-File PUBLIC "HDF5-File.dtd" "http://hdf.ncsa.uiuc.edu/DTDs/HDF5-File.dtd">
<HDF5-File>
<RootGroup OBJ-XID="root">
<Attribute Name="attr1&quot;withquot">
<Dataspace>
<SimpleDataspace Ndims="1">
<Dimension DimSize="10" MaxDimSize="10"/>
</SimpleDataspace>
</Dataspace>
<DataType>
<AtomicType>
<IntegerType ByteOrder="BE" Sign="true" Size="1" />
</AtomicType>
</DataType>
<Data>
<DataFromFile>
97 98 99 100 101 102 103 104 105 0
</DataFromFile>
</Data>
</Attribute>
<Group Name="g1.1&quot;withquot" OBJ-XID="/g1.1&quot;withquot" Parents="/" >
<Dataset Name="dset1.1.1&quot;withquot" OBJ-XID="/g1.1&quot;withquot/dset1.1.1&quot;withquot" Parents="/g1.1&quot;withquot">
<Dataspace>
<SimpleDataspace Ndims="2">
<Dimension DimSize="10" MaxDimSize="10"/>
<Dimension DimSize="10" MaxDimSize="10"/>
</SimpleDataspace>
</Dataspace>
<DataType>
<AtomicType>
<IntegerType ByteOrder="BE" Sign="true" Size="4" />
</AtomicType>
</DataType>
<Data>
<DataFromFile>
0 0 0 0 0 0 0 0 0 0
0 1 2 3 4 5 6 7 8 9
0 2 4 6 8 10 12 14 16 18
0 3 6 9 12 15 18 21 24 27
0 4 8 12 16 20 24 28 32 36
0 5 10 15 20 25 30 35 40 45
0 6 12 18 24 30 36 42 48 54
0 7 14 21 28 35 42 49 56 63
0 8 16 24 32 40 48 56 64 72
0 9 18 27 36 45 54 63 72 81
</DataFromFile>
</Data>
</Dataset>
</Group>
</RootGroup>
</HDF5-File>

BIN
tools/testfiles/tname-sp.h5 Normal file

Binary file not shown.

View File

@ -0,0 +1,55 @@
#############################
Expected output for 'h5dump --xml tname-sp.h5'
#############################
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE HDF5-File PUBLIC "HDF5-File.dtd" "http://hdf.ncsa.uiuc.edu/DTDs/HDF5-File.dtd">
<HDF5-File>
<RootGroup OBJ-XID="root">
<Attribute Name="attr1 withspace">
<Dataspace>
<SimpleDataspace Ndims="1">
<Dimension DimSize="10" MaxDimSize="10"/>
</SimpleDataspace>
</Dataspace>
<DataType>
<AtomicType>
<IntegerType ByteOrder="BE" Sign="true" Size="1" />
</AtomicType>
</DataType>
<Data>
<DataFromFile>
97 98 99 100 101 102 103 104 105 0
</DataFromFile>
</Data>
</Attribute>
<Group Name="g1.1 withspace" OBJ-XID="/g1.1 withspace" Parents="/" >
<Dataset Name="dset1.1.1 withspace" OBJ-XID="/g1.1 withspace/dset1.1.1 withspace" Parents="/g1.1 withspace">
<Dataspace>
<SimpleDataspace Ndims="2">
<Dimension DimSize="10" MaxDimSize="10"/>
<Dimension DimSize="10" MaxDimSize="10"/>
</SimpleDataspace>
</Dataspace>
<DataType>
<AtomicType>
<IntegerType ByteOrder="BE" Sign="true" Size="4" />
</AtomicType>
</DataType>
<Data>
<DataFromFile>
0 0 0 0 0 0 0 0 0 0
0 1 2 3 4 5 6 7 8 9
0 2 4 6 8 10 12 14 16 18
0 3 6 9 12 15 18 21 24 27
0 4 8 12 16 20 24 28 32 36
0 5 10 15 20 25 30 35 40 45
0 6 12 18 24 30 36 42 48 54
0 7 14 21 28 35 42 49 56 63
0 8 16 24 32 40 48 56 64 72
0 9 18 27 36 45 54 63 72 81
</DataFromFile>
</Data>
</Dataset>
</Group>
</RootGroup>
</HDF5-File>

View File

@ -0,0 +1,76 @@
#############################
Expected output for 'h5dump --xml tnestedcomp.h5'
#############################
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE HDF5-File PUBLIC "HDF5-File.dtd" "http://hdf.ncsa.uiuc.edu/DTDs/HDF5-File.dtd">
<HDF5-File>
<RootGroup OBJ-XID="root">
<Dataset Name="ArrayOfStructures" OBJ-XID="/ArrayOfStructures" Parents="root">
<Dataspace>
<SimpleDataspace Ndims="1">
<Dimension DimSize="10" MaxDimSize="10"/>
</SimpleDataspace>
</Dataspace>
<DataType>
<CompoundType>
<Field FieldName="a_name">
<DataType>
<AtomicType>
<IntegerType ByteOrder="LE" Sign="true" Size="4" />
</AtomicType>
</DataType>
</Field>
<Field FieldName="b_name">
<DataType>
<AtomicType>
<FloatType ByteOrder="LE" Size="4" SignBitLocation="31" ExponentBits="8" ExponentLocation="23" MantissaBits="23" MantissaLocation="0" />
</AtomicType>
</DataType>
</Field>
<Field FieldName="c_name">
<DataType>
<AtomicType>
<FloatType ByteOrder="LE" Size="8" SignBitLocation="63" ExponentBits="11" ExponentLocation="52" MantissaBits="52" MantissaLocation="0" />
</AtomicType>
</DataType>
</Field>
<Field FieldName="d_name">
<DataType>
<CompoundType>
<Field FieldName="char_name">
<DataType>
<AtomicType>
<StringType Cset="H5T_CSET_ASCII" StrSize="1" StrPad="H5T_STR_NULLTERM"/>
</AtomicType>
</DataType>
</Field>
<Field FieldName="array_name">
<DataType>
<ArrayType Ndims="1">
<ArrayDimension DimSize="2" DimPerm="0"/>
<DataType>
<AtomicType>
<FloatType ByteOrder="LE" Size="4" SignBitLocation="31" ExponentBits="8" ExponentLocation="23" MantissaBits="23" MantissaLocation="0" />
</AtomicType>
</DataType>
</ArrayType>
</DataType>
</Field>
</CompoundType>
</DataType>
</Field>
</CompoundType>
</DataType>
<!-- Note: format of compound data not specified -->
<Data>
<DataFromFile>
0 0 1 "A" -100 100 1 1 0.5 "B" -100 100
2 4 0.333333 "C" -100 100 3 9 0.25 "D" -100 100
4 16 0.2 "E" -100 100 5 25 0.166667 "F" -100 100
6 36 0.142857 "G" -100 100 7 49 0.125 "H" -100 100
8 64 0.111111 "I" -100 100 9 81 0.1 "J" -100 100
</DataFromFile>
</Data>
</Dataset>
</RootGroup>
</HDF5-File>

BIN
tools/testfiles/tnodata.h5 Normal file

Binary file not shown.

View File

@ -0,0 +1,26 @@
#############################
Expected output for 'h5dump --xml tnodata.h5'
#############################
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE HDF5-File PUBLIC "HDF5-File.dtd" "http://hdf.ncsa.uiuc.edu/DTDs/HDF5-File.dtd">
<HDF5-File>
<RootGroup OBJ-XID="root">
<Dataset Name="dset1" OBJ-XID="/dset1" Parents="root">
<Dataspace>
<SimpleDataspace Ndims="1">
<Dimension DimSize="5" MaxDimSize="5"/>
</SimpleDataspace>
</Dataspace>
<DataType>
<AtomicType>
<IntegerType ByteOrder="BE" Sign="true" Size="4" />
</AtomicType>
</DataType>
<Data>
<DataFromFile>
0 0 0 0 0
</DataFromFile>
</Data>
</Dataset>
</RootGroup>
</HDF5-File>

View File

@ -0,0 +1,92 @@
#############################
Expected output for 'h5dump --xml tobjref.h5'
#############################
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE HDF5-File PUBLIC "HDF5-File.dtd" "http://hdf.ncsa.uiuc.edu/DTDs/HDF5-File.dtd">
<HDF5-File>
<RootGroup OBJ-XID="root">
<Dataset Name="Dataset3" OBJ-XID="/Dataset3" Parents="root">
<Dataspace>
<SimpleDataspace Ndims="1">
<Dimension DimSize="4" MaxDimSize="4"/>
</SimpleDataspace>
</Dataspace>
<DataType>
<AtomicType>
<ReferenceType>
<ObjectReferenceType />
</ReferenceType>
</AtomicType>
</DataType>
<Data>
<DataFromFile>
"/Group1/Dataset1"
"/Group1/Dataset2"
"/Group1"
"/Group1/Datatype1"
</DataFromFile>
</Data>
</Dataset>
<Group Name="Group1" OBJ-XID="/Group1" Parents="/" >
<NamedDataType Name="Datatype1" OBJ-XID="/Group1/Datatype1" Parents="Datatype1">
<CompoundType>
<Field FieldName="a">
<DataType>
<AtomicType>
<IntegerType ByteOrder="BE" Sign="true" Size="4" />
</AtomicType>
</DataType>
</Field>
<Field FieldName="b">
<DataType>
<AtomicType>
<FloatType ByteOrder="BE" Size="4" SignBitLocation="31" ExponentBits="8" ExponentLocation="23" MantissaBits="23" MantissaLocation="0" />
</AtomicType>
</DataType>
</Field>
<Field FieldName="c">
<DataType>
<AtomicType>
<FloatType ByteOrder="BE" Size="4" SignBitLocation="31" ExponentBits="8" ExponentLocation="23" MantissaBits="23" MantissaLocation="0" />
</AtomicType>
</DataType>
</Field>
</CompoundType>
</NamedDataType>
<Dataset Name="Dataset1" OBJ-XID="/Group1/Dataset1" Parents="/Group1">
<Dataspace>
<SimpleDataspace Ndims="1">
<Dimension DimSize="4" MaxDimSize="4"/>
</SimpleDataspace>
</Dataspace>
<DataType>
<AtomicType>
<IntegerType ByteOrder="BE" Sign="false" Size="4" />
</AtomicType>
</DataType>
<Data>
<DataFromFile>
0 3 6 9
</DataFromFile>
</Data>
</Dataset>
<Dataset Name="Dataset2" OBJ-XID="/Group1/Dataset2" Parents="/Group1">
<Dataspace>
<SimpleDataspace Ndims="1">
<Dimension DimSize="4" MaxDimSize="4"/>
</SimpleDataspace>
</Dataspace>
<DataType>
<AtomicType>
<IntegerType ByteOrder="BE" Sign="false" Size="1" />
</AtomicType>
</DataType>
<Data>
<DataFromFile>
0 0 0 0
</DataFromFile>
</Data>
</Dataset>
</Group>
</RootGroup>
</HDF5-File>

View File

@ -0,0 +1,27 @@
#############################
Expected output for 'h5dump --xml topaque.h5'
#############################
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE HDF5-File PUBLIC "HDF5-File.dtd" "http://hdf.ncsa.uiuc.edu/DTDs/HDF5-File.dtd">
<HDF5-File>
<RootGroup OBJ-XID="root">
<Dataset Name="opaque test" OBJ-XID="/opaque test" Parents="root">
<Dataspace>
<SimpleDataspace Ndims="1">
<Dimension DimSize="2" MaxDimSize="2"/>
</SimpleDataspace>
</Dataspace>
<DataType>
<AtomicType>
<OpaqueType Tag="test opaque type" Size="200"/>
</AtomicType>
</DataType>
<Data>
<DataFromFile>
0x0063016202610360045f055e065d075c085b095a0a590b580c570d560e550f541053115212511350144f154e164d174c184b194a1a491b481c471d461e451f442043214222412340243f253e263d273c283b293a2a392b382c372d362e352f343033313232313330342f352e362d372c382b392a3a293b283c273d263e253f244023412242214320441f451e461d471c481b491a4a194b184c174d164e154f145013511252115310540f550e560d570c580b590a5a095b085c075d065e055f046003610262016300
0x3800002c3c000027340001ea04000012000000000008a4640000000000000000000000000000000000000000ef7ec9c000000001effffa84effffa8c0003fc000000000000000000effffa2000012e84effffa2000012e5800000003effffa8400000004effffa8c00000005effffaf0000000000000000000000001effffa84effffa8c0003fc0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
</DataFromFile>
</Data>
</Dataset>
</RootGroup>
</HDF5-File>

Binary file not shown.

View File

@ -0,0 +1,282 @@
#############################
Expected output for 'h5dump --xml tref-escapes-at.h5'
#############################
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE HDF5-File PUBLIC "HDF5-File.dtd" "http://hdf.ncsa.uiuc.edu/DTDs/HDF5-File.dtd">
<HDF5-File>
<RootGroup OBJ-XID="root">
<Group Name="Group1" OBJ-XID="/Group1" Parents="/" >
<Dataset Name="Dataset space" OBJ-XID="/Group1/Dataset space" Parents="/Group1">
<Dataspace>
<SimpleDataspace Ndims="1">
<Dimension DimSize="4" MaxDimSize="4"/>
</SimpleDataspace>
</Dataspace>
<DataType>
<AtomicType>
<IntegerType ByteOrder="BE" Sign="false" Size="1" />
</AtomicType>
</DataType>
<Data>
<DataFromFile>
0 0 0 0
</DataFromFile>
</Data>
</Dataset>
<Dataset Name="Dataset&quot;quote" OBJ-XID="/Group1/Dataset&quot;quote" Parents="/Group1">
<Dataspace>
<SimpleDataspace Ndims="1">
<Dimension DimSize="4" MaxDimSize="4"/>
</SimpleDataspace>
</Dataspace>
<DataType>
<AtomicType>
<IntegerType ByteOrder="BE" Sign="false" Size="4" />
</AtomicType>
</DataType>
<Data>
<DataFromFile>
0 3 6 9
</DataFromFile>
</Data>
</Dataset>
<Dataset Name="Dataset&amp;amp" OBJ-XID="/Group1/Dataset&amp;amp" Parents="/Group1">
<Dataspace>
<SimpleDataspace Ndims="1">
<Dimension DimSize="4" MaxDimSize="4"/>
</SimpleDataspace>
</Dataspace>
<DataType>
<AtomicType>
<IntegerType ByteOrder="BE" Sign="false" Size="1" />
</AtomicType>
</DataType>
<Data>
<DataFromFile>
0 0 0 0
</DataFromFile>
</Data>
</Dataset>
<Dataset Name="Dataset&apos;apos" OBJ-XID="/Group1/Dataset&apos;apos" Parents="/Group1">
<Dataspace>
<SimpleDataspace Ndims="1">
<Dimension DimSize="4" MaxDimSize="4"/>
</SimpleDataspace>
</Dataspace>
<DataType>
<AtomicType>
<IntegerType ByteOrder="BE" Sign="false" Size="1" />
</AtomicType>
</DataType>
<Data>
<DataFromFile>
0 0 0 0
</DataFromFile>
</Data>
</Dataset>
<Dataset Name="Dataset&lt;lt" OBJ-XID="/Group1/Dataset&lt;lt" Parents="/Group1">
<Dataspace>
<SimpleDataspace Ndims="1">
<Dimension DimSize="4" MaxDimSize="4"/>
</SimpleDataspace>
</Dataspace>
<DataType>
<AtomicType>
<IntegerType ByteOrder="BE" Sign="false" Size="1" />
</AtomicType>
</DataType>
<Data>
<DataFromFile>
0 0 0 0
</DataFromFile>
</Data>
</Dataset>
<Dataset Name="Dataset&gt;gt" OBJ-XID="/Group1/Dataset&gt;gt" Parents="/Group1">
<Dataspace>
<SimpleDataspace Ndims="1">
<Dimension DimSize="4" MaxDimSize="4"/>
</SimpleDataspace>
</Dataspace>
<DataType>
<AtomicType>
<IntegerType ByteOrder="BE" Sign="false" Size="1" />
</AtomicType>
</DataType>
<Data>
<DataFromFile>
0 0 0 0
</DataFromFile>
</Data>
</Dataset>
<Dataset Name="Dataset\slash" OBJ-XID="/Group1/Dataset\slash" Parents="/Group1">
<Dataspace>
<SimpleDataspace Ndims="1">
<Dimension DimSize="4" MaxDimSize="4"/>
</SimpleDataspace>
</Dataspace>
<DataType>
<AtomicType>
<IntegerType ByteOrder="BE" Sign="false" Size="1" />
</AtomicType>
</DataType>
<Data>
<DataFromFile>
0 0 0 0
</DataFromFile>
</Data>
</Dataset>
<Group Name="Group1.1" OBJ-XID="/Group1/Group1.1" Parents="/Group1" >
<Dataset Name="Datasetrefs" OBJ-XID="/Group1/Group1.1/Datasetrefs" Parents="/Group1/Group1.1">
<Dataspace>
<SimpleDataspace Ndims="1">
<Dimension DimSize="1" MaxDimSize="1"/>
</SimpleDataspace>
</Dataspace>
<DataType>
<AtomicType>
<IntegerType ByteOrder="BE" Sign="false" Size="1" />
</AtomicType>
</DataType>
<Attribute Name="reftoquote">
<Dataspace>
<SimpleDataspace Ndims="1">
<Dimension DimSize="1" MaxDimSize="1"/>
</SimpleDataspace>
</Dataspace>
<DataType>
<AtomicType>
<ReferenceType>
<ObjectReferenceType />
</ReferenceType>
</AtomicType>
</DataType>
<Data>
<DataFromFile>
"/Group1/Dataset\"quote"
</DataFromFile>
</Data>
</Attribute>
<Attribute Name="reftoslash">
<Dataspace>
<SimpleDataspace Ndims="1">
<Dimension DimSize="1" MaxDimSize="1"/>
</SimpleDataspace>
</Dataspace>
<DataType>
<AtomicType>
<ReferenceType>
<ObjectReferenceType />
</ReferenceType>
</AtomicType>
</DataType>
<Data>
<DataFromFile>
"/Group1/Dataset\\slash"
</DataFromFile>
</Data>
</Attribute>
<Attribute Name="reftoamp">
<Dataspace>
<SimpleDataspace Ndims="1">
<Dimension DimSize="1" MaxDimSize="1"/>
</SimpleDataspace>
</Dataspace>
<DataType>
<AtomicType>
<ReferenceType>
<ObjectReferenceType />
</ReferenceType>
</AtomicType>
</DataType>
<Data>
<DataFromFile>
"/Group1/Dataset&amp;amp"
</DataFromFile>
</Data>
</Attribute>
<Attribute Name="reftolt">
<Dataspace>
<SimpleDataspace Ndims="1">
<Dimension DimSize="1" MaxDimSize="1"/>
</SimpleDataspace>
</Dataspace>
<DataType>
<AtomicType>
<ReferenceType>
<ObjectReferenceType />
</ReferenceType>
</AtomicType>
</DataType>
<Data>
<DataFromFile>
"/Group1/Dataset&lt;lt"
</DataFromFile>
</Data>
</Attribute>
<Attribute Name="reftogt">
<Dataspace>
<SimpleDataspace Ndims="1">
<Dimension DimSize="1" MaxDimSize="1"/>
</SimpleDataspace>
</Dataspace>
<DataType>
<AtomicType>
<ReferenceType>
<ObjectReferenceType />
</ReferenceType>
</AtomicType>
</DataType>
<Data>
<DataFromFile>
"/Group1/Dataset&gt;gt"
</DataFromFile>
</Data>
</Attribute>
<Attribute Name="reftoapos">
<Dataspace>
<SimpleDataspace Ndims="1">
<Dimension DimSize="1" MaxDimSize="1"/>
</SimpleDataspace>
</Dataspace>
<DataType>
<AtomicType>
<ReferenceType>
<ObjectReferenceType />
</ReferenceType>
</AtomicType>
</DataType>
<Data>
<DataFromFile>
"/Group1/Dataset&apos;apos"
</DataFromFile>
</Data>
</Attribute>
<Attribute Name="reftospace">
<Dataspace>
<SimpleDataspace Ndims="1">
<Dimension DimSize="1" MaxDimSize="1"/>
</SimpleDataspace>
</Dataspace>
<DataType>
<AtomicType>
<ReferenceType>
<ObjectReferenceType />
</ReferenceType>
</AtomicType>
</DataType>
<Data>
<DataFromFile>
"/Group1/Dataset space"
</DataFromFile>
</Data>
</Attribute>
<Data>
<DataFromFile>
0
</DataFromFile>
</Data>
</Dataset>
</Group>
</Group>
</RootGroup>
</HDF5-File>

Binary file not shown.

View File

@ -0,0 +1,157 @@
#############################
Expected output for 'h5dump --xml tref-escapes.h5'
#############################
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE HDF5-File PUBLIC "HDF5-File.dtd" "http://hdf.ncsa.uiuc.edu/DTDs/HDF5-File.dtd">
<HDF5-File>
<RootGroup OBJ-XID="root">
<Group Name="Group1" OBJ-XID="/Group1" Parents="/" >
<Dataset Name="Dataset space" OBJ-XID="/Group1/Dataset space" Parents="/Group1">
<Dataspace>
<SimpleDataspace Ndims="1">
<Dimension DimSize="4" MaxDimSize="4"/>
</SimpleDataspace>
</Dataspace>
<DataType>
<AtomicType>
<IntegerType ByteOrder="BE" Sign="false" Size="1" />
</AtomicType>
</DataType>
<Data>
<DataFromFile>
0 0 0 0
</DataFromFile>
</Data>
</Dataset>
<Dataset Name="Dataset&quot;quote" OBJ-XID="/Group1/Dataset&quot;quote" Parents="/Group1">
<Dataspace>
<SimpleDataspace Ndims="1">
<Dimension DimSize="4" MaxDimSize="4"/>
</SimpleDataspace>
</Dataspace>
<DataType>
<AtomicType>
<IntegerType ByteOrder="BE" Sign="false" Size="4" />
</AtomicType>
</DataType>
<Data>
<DataFromFile>
0 3 6 9
</DataFromFile>
</Data>
</Dataset>
<Dataset Name="Dataset&amp;amp" OBJ-XID="/Group1/Dataset&amp;amp" Parents="/Group1">
<Dataspace>
<SimpleDataspace Ndims="1">
<Dimension DimSize="4" MaxDimSize="4"/>
</SimpleDataspace>
</Dataspace>
<DataType>
<AtomicType>
<IntegerType ByteOrder="BE" Sign="false" Size="1" />
</AtomicType>
</DataType>
<Data>
<DataFromFile>
0 0 0 0
</DataFromFile>
</Data>
</Dataset>
<Dataset Name="Dataset&apos;apos" OBJ-XID="/Group1/Dataset&apos;apos" Parents="/Group1">
<Dataspace>
<SimpleDataspace Ndims="1">
<Dimension DimSize="4" MaxDimSize="4"/>
</SimpleDataspace>
</Dataspace>
<DataType>
<AtomicType>
<IntegerType ByteOrder="BE" Sign="false" Size="1" />
</AtomicType>
</DataType>
<Data>
<DataFromFile>
0 0 0 0
</DataFromFile>
</Data>
</Dataset>
<Dataset Name="Dataset&lt;lt" OBJ-XID="/Group1/Dataset&lt;lt" Parents="/Group1">
<Dataspace>
<SimpleDataspace Ndims="1">
<Dimension DimSize="4" MaxDimSize="4"/>
</SimpleDataspace>
</Dataspace>
<DataType>
<AtomicType>
<IntegerType ByteOrder="BE" Sign="false" Size="1" />
</AtomicType>
</DataType>
<Data>
<DataFromFile>
0 0 0 0
</DataFromFile>
</Data>
</Dataset>
<Dataset Name="Dataset&gt;gt" OBJ-XID="/Group1/Dataset&gt;gt" Parents="/Group1">
<Dataspace>
<SimpleDataspace Ndims="1">
<Dimension DimSize="4" MaxDimSize="4"/>
</SimpleDataspace>
</Dataspace>
<DataType>
<AtomicType>
<IntegerType ByteOrder="BE" Sign="false" Size="1" />
</AtomicType>
</DataType>
<Data>
<DataFromFile>
0 0 0 0
</DataFromFile>
</Data>
</Dataset>
<Dataset Name="Dataset\slash" OBJ-XID="/Group1/Dataset\slash" Parents="/Group1">
<Dataspace>
<SimpleDataspace Ndims="1">
<Dimension DimSize="4" MaxDimSize="4"/>
</SimpleDataspace>
</Dataspace>
<DataType>
<AtomicType>
<IntegerType ByteOrder="BE" Sign="false" Size="1" />
</AtomicType>
</DataType>
<Data>
<DataFromFile>
0 0 0 0
</DataFromFile>
</Data>
</Dataset>
<Group Name="Group1.1" OBJ-XID="/Group1/Group1.1" Parents="/Group1" >
<Dataset Name="Datasetrefs" OBJ-XID="/Group1/Group1.1/Datasetrefs" Parents="/Group1/Group1.1">
<Dataspace>
<SimpleDataspace Ndims="1">
<Dimension DimSize="7" MaxDimSize="7"/>
</SimpleDataspace>
</Dataspace>
<DataType>
<AtomicType>
<ReferenceType>
<ObjectReferenceType />
</ReferenceType>
</AtomicType>
</DataType>
<Data>
<DataFromFile>
"/Group1/Dataset\"quote"
"/Group1/Dataset\\slash"
"/Group1/Dataset&amp;amp"
"/Group1/Dataset&lt;lt"
"/Group1/Dataset space"
"/Group1/Dataset&apos;apos"
"/Group1/Dataset&gt;gt"
</DataFromFile>
</Data>
</Dataset>
</Group>
</Group>
</RootGroup>
</HDF5-File>

BIN
tools/testfiles/tref.h5 Normal file

Binary file not shown.

View File

@ -0,0 +1,66 @@
#############################
Expected output for 'h5dump --xml tref.h5'
#############################
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE HDF5-File PUBLIC "HDF5-File.dtd" "http://hdf.ncsa.uiuc.edu/DTDs/HDF5-File.dtd">
<HDF5-File>
<RootGroup OBJ-XID="root">
<Dataset Name="ZZZDataset3" OBJ-XID="/ZZZDataset3" Parents="root">
<Dataspace>
<SimpleDataspace Ndims="1">
<Dimension DimSize="3" MaxDimSize="3"/>
</SimpleDataspace>
</Dataspace>
<DataType>
<AtomicType>
<ReferenceType>
<ObjectReferenceType />
</ReferenceType>
</AtomicType>
</DataType>
<Data>
<DataFromFile>
"/Group1/Dataset1"
"/Group1/Dataset2"
"/Group1"
</DataFromFile>
</Data>
</Dataset>
<Group Name="Group1" OBJ-XID="/Group1" Parents="/" >
<Dataset Name="Dataset1" OBJ-XID="/Group1/Dataset1" Parents="/Group1">
<Dataspace>
<SimpleDataspace Ndims="1">
<Dimension DimSize="4" MaxDimSize="4"/>
</SimpleDataspace>
</Dataspace>
<DataType>
<AtomicType>
<IntegerType ByteOrder="BE" Sign="false" Size="4" />
</AtomicType>
</DataType>
<Data>
<DataFromFile>
0 3 6 9
</DataFromFile>
</Data>
</Dataset>
<Dataset Name="Dataset2" OBJ-XID="/Group1/Dataset2" Parents="/Group1">
<Dataspace>
<SimpleDataspace Ndims="1">
<Dimension DimSize="4" MaxDimSize="4"/>
</SimpleDataspace>
</Dataspace>
<DataType>
<AtomicType>
<IntegerType ByteOrder="BE" Sign="false" Size="1" />
</AtomicType>
</DataType>
<Data>
<DataFromFile>
0 0 0 0
</DataFromFile>
</Data>
</Dataset>
</Group>
</RootGroup>
</HDF5-File>

2602
tools/testfiles/tsaf.h5.xml Normal file

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,11 @@
#############################
Expected output for 'h5dump --xml tslink.h5'
#############################
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE HDF5-File PUBLIC "HDF5-File.dtd" "http://hdf.ncsa.uiuc.edu/DTDs/HDF5-File.dtd">
<HDF5-File>
<RootGroup OBJ-XID="root">
<SoftLink LinkName="slink1" Target="somevalue" TargetObj="somevalue" OBJ-XID="slink1" Source="root"/>
<SoftLink LinkName="slink2" Target="linkvalue" TargetObj="linkvalue" OBJ-XID="slink2" Source="root"/>
</RootGroup>
</HDF5-File>

359
tools/testfiles/tstr.h5.xml Normal file
View File

@ -0,0 +1,359 @@
#############################
Expected output for 'h5dump --xml tstr.h5'
#############################
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE HDF5-File PUBLIC "HDF5-File.dtd" "http://hdf.ncsa.uiuc.edu/DTDs/HDF5-File.dtd">
<HDF5-File>
<RootGroup OBJ-XID="root">
<Dataset Name="comp1" OBJ-XID="/comp1" Parents="root">
<Dataspace>
<SimpleDataspace Ndims="2">
<Dimension DimSize="3" MaxDimSize="3"/>
<Dimension DimSize="6" MaxDimSize="6"/>
</SimpleDataspace>
</Dataspace>
<DataType>
<CompoundType>
<Field FieldName="int_array">
<DataType>
<ArrayType Ndims="2">
<ArrayDimension DimSize="8" DimPerm="0"/>
<ArrayDimension DimSize="10" DimPerm="1"/>
<DataType>
<AtomicType>
<IntegerType ByteOrder="BE" Sign="true" Size="4" />
</AtomicType>
</DataType>
</ArrayType>
</DataType>
</Field>
<Field FieldName="string">
<DataType>
<ArrayType Ndims="2">
<ArrayDimension DimSize="3" DimPerm="0"/>
<ArrayDimension DimSize="4" DimPerm="1"/>
<DataType>
<AtomicType>
<StringType Cset="H5T_CSET_ASCII" StrSize="32" StrPad="H5T_STR_SPACEPAD"/>
</AtomicType>
</DataType>
</ArrayType>
</DataType>
</Field>
</CompoundType>
</DataType>
<!-- Note: format of compound data not specified -->
<Data>
<DataFromFile>
0 1 4 9 16 25 36 49 64 81
1 4 9 16 25 36 49 64 81 100
4 9 16 25 36 49 64 81 100 121
9 16 25 36 49 64 81 100 121 144
16 25 36 49 64 81 100 121 144 169
25 36 49 64 81 100 121 144 169 196
36 49 64 81 100 121 144 169 196 225
49 64 81 100 121 144 169 196 225 256 "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678"
"abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678"
"abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678"
1 4 9 16 25 36 49 64 81 100
4 9 16 25 36 49 64 81 100 121
9 16 25 36 49 64 81 100 121 144
16 25 36 49 64 81 100 121 144 169
25 36 49 64 81 100 121 144 169 196
36 49 64 81 100 121 144 169 196 225
49 64 81 100 121 144 169 196 225 256
64 81 100 121 144 169 196 225 256 289 "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678"
"abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678"
"abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678"
4 9 16 25 36 49 64 81 100 121
9 16 25 36 49 64 81 100 121 144
16 25 36 49 64 81 100 121 144 169
25 36 49 64 81 100 121 144 169 196
36 49 64 81 100 121 144 169 196 225
49 64 81 100 121 144 169 196 225 256
64 81 100 121 144 169 196 225 256 289
81 100 121 144 169 196 225 256 289 324 "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678"
"abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678"
"abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678"
9 16 25 36 49 64 81 100 121 144
16 25 36 49 64 81 100 121 144 169
25 36 49 64 81 100 121 144 169 196
36 49 64 81 100 121 144 169 196 225
49 64 81 100 121 144 169 196 225 256
64 81 100 121 144 169 196 225 256 289
81 100 121 144 169 196 225 256 289 324
100 121 144 169 196 225 256 289 324 361 "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678"
"abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678"
"abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678"
16 25 36 49 64 81 100 121 144 169
25 36 49 64 81 100 121 144 169 196
36 49 64 81 100 121 144 169 196 225
49 64 81 100 121 144 169 196 225 256
64 81 100 121 144 169 196 225 256 289
81 100 121 144 169 196 225 256 289 324
100 121 144 169 196 225 256 289 324 361
121 144 169 196 225 256 289 324 361 400 "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678"
"abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678"
"abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678"
25 36 49 64 81 100 121 144 169 196
36 49 64 81 100 121 144 169 196 225
49 64 81 100 121 144 169 196 225 256
64 81 100 121 144 169 196 225 256 289
81 100 121 144 169 196 225 256 289 324
100 121 144 169 196 225 256 289 324 361
121 144 169 196 225 256 289 324 361 400
144 169 196 225 256 289 324 361 400 441 "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678"
"abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678"
"abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678"
0 1 4 9 16 25 36 49 64 81
1 4 9 16 25 36 49 64 81 100
4 9 16 25 36 49 64 81 100 121
9 16 25 36 49 64 81 100 121 144
16 25 36 49 64 81 100 121 144 169
25 36 49 64 81 100 121 144 169 196
36 49 64 81 100 121 144 169 196 225
49 64 81 100 121 144 169 196 225 256 "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678"
"abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678"
"abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678"
1 4 9 16 25 36 49 64 81 100
4 9 16 25 36 49 64 81 100 121
9 16 25 36 49 64 81 100 121 144
16 25 36 49 64 81 100 121 144 169
25 36 49 64 81 100 121 144 169 196
36 49 64 81 100 121 144 169 196 225
49 64 81 100 121 144 169 196 225 256
64 81 100 121 144 169 196 225 256 289 "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678"
"abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678"
"abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678"
4 9 16 25 36 49 64 81 100 121
9 16 25 36 49 64 81 100 121 144
16 25 36 49 64 81 100 121 144 169
25 36 49 64 81 100 121 144 169 196
36 49 64 81 100 121 144 169 196 225
49 64 81 100 121 144 169 196 225 256
64 81 100 121 144 169 196 225 256 289
81 100 121 144 169 196 225 256 289 324 "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678"
"abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678"
"abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678"
9 16 25 36 49 64 81 100 121 144
16 25 36 49 64 81 100 121 144 169
25 36 49 64 81 100 121 144 169 196
36 49 64 81 100 121 144 169 196 225
49 64 81 100 121 144 169 196 225 256
64 81 100 121 144 169 196 225 256 289
81 100 121 144 169 196 225 256 289 324
100 121 144 169 196 225 256 289 324 361 "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678"
"abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678"
"abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678"
16 25 36 49 64 81 100 121 144 169
25 36 49 64 81 100 121 144 169 196
36 49 64 81 100 121 144 169 196 225
49 64 81 100 121 144 169 196 225 256
64 81 100 121 144 169 196 225 256 289
81 100 121 144 169 196 225 256 289 324
100 121 144 169 196 225 256 289 324 361
121 144 169 196 225 256 289 324 361 400 "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678"
"abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678"
"abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678"
25 36 49 64 81 100 121 144 169 196
36 49 64 81 100 121 144 169 196 225
49 64 81 100 121 144 169 196 225 256
64 81 100 121 144 169 196 225 256 289
81 100 121 144 169 196 225 256 289 324
100 121 144 169 196 225 256 289 324 361
121 144 169 196 225 256 289 324 361 400
144 169 196 225 256 289 324 361 400 441 "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678"
"abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678"
"abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678"
0 1 4 9 16 25 36 49 64 81
1 4 9 16 25 36 49 64 81 100
4 9 16 25 36 49 64 81 100 121
9 16 25 36 49 64 81 100 121 144
16 25 36 49 64 81 100 121 144 169
25 36 49 64 81 100 121 144 169 196
36 49 64 81 100 121 144 169 196 225
49 64 81 100 121 144 169 196 225 256 "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678"
"abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678"
"abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678"
1 4 9 16 25 36 49 64 81 100
4 9 16 25 36 49 64 81 100 121
9 16 25 36 49 64 81 100 121 144
16 25 36 49 64 81 100 121 144 169
25 36 49 64 81 100 121 144 169 196
36 49 64 81 100 121 144 169 196 225
49 64 81 100 121 144 169 196 225 256
64 81 100 121 144 169 196 225 256 289 "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678"
"abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678"
"abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678"
4 9 16 25 36 49 64 81 100 121
9 16 25 36 49 64 81 100 121 144
16 25 36 49 64 81 100 121 144 169
25 36 49 64 81 100 121 144 169 196
36 49 64 81 100 121 144 169 196 225
49 64 81 100 121 144 169 196 225 256
64 81 100 121 144 169 196 225 256 289
81 100 121 144 169 196 225 256 289 324 "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678"
"abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678"
"abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678"
9 16 25 36 49 64 81 100 121 144
16 25 36 49 64 81 100 121 144 169
25 36 49 64 81 100 121 144 169 196
36 49 64 81 100 121 144 169 196 225
49 64 81 100 121 144 169 196 225 256
64 81 100 121 144 169 196 225 256 289
81 100 121 144 169 196 225 256 289 324
100 121 144 169 196 225 256 289 324 361 "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678"
"abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678"
"abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678"
16 25 36 49 64 81 100 121 144 169
25 36 49 64 81 100 121 144 169 196
36 49 64 81 100 121 144 169 196 225
49 64 81 100 121 144 169 196 225 256
64 81 100 121 144 169 196 225 256 289
81 100 121 144 169 196 225 256 289 324
100 121 144 169 196 225 256 289 324 361
121 144 169 196 225 256 289 324 361 400 "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678"
"abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678"
"abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678"
25 36 49 64 81 100 121 144 169 196
36 49 64 81 100 121 144 169 196 225
49 64 81 100 121 144 169 196 225 256
64 81 100 121 144 169 196 225 256 289
81 100 121 144 169 196 225 256 289 324
100 121 144 169 196 225 256 289 324 361
121 144 169 196 225 256 289 324 361 400
144 169 196 225 256 289 324 361 400 441 "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678"
"abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678"
"abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678" "abcdefgh12345678abcdefgh12345678"
</DataFromFile>
</Data>
</Dataset>
<Dataset Name="string1" OBJ-XID="/string1" Parents="root">
<Dataspace>
<SimpleDataspace Ndims="2">
<Dimension DimSize="3" MaxDimSize="3"/>
<Dimension DimSize="4" MaxDimSize="4"/>
</SimpleDataspace>
</Dataspace>
<DataType>
<AtomicType>
<StringType Cset="H5T_CSET_ASCII" StrSize="5" StrPad="H5T_STR_NULLTERM"/>
</AtomicType>
</DataType>
<Data>
<DataFromFile>
"s1"
"s2"
"s3"
"s4"
"s5"
"s6"
"s7"
"s8"
"s9"
"s0"
"s1"
"s2"
</DataFromFile>
</Data>
</Dataset>
<Dataset Name="string2" OBJ-XID="/string2" Parents="root">
<Dataspace>
<SimpleDataspace Ndims="1">
<Dimension DimSize="20" MaxDimSize="20"/>
</SimpleDataspace>
</Dataspace>
<DataType>
<AtomicType>
<StringType Cset="H5T_CSET_ASCII" StrSize="11" StrPad="H5T_STR_SPACEPAD"/>
</AtomicType>
</DataType>
<Data>
<DataFromFile>
"ab cd ef1 "
"ab cd ef2 "
"ab cd ef3 "
"ab cd ef4 "
"ab cd ef5 "
"ab cd ef6 "
"ab cd ef7 "
"ab cd ef8 "
"ab cd ef9 "
"ab cd ef0 "
"ab cd ef1 "
"ab cd ef2 "
"ab cd ef3 "
"ab cd ef4 "
"ab cd ef5 "
"ab cd ef6 "
"ab cd ef7 "
"ab cd ef8 "
"ab cd ef9 "
"ab cd ef0 "
</DataFromFile>
</Data>
</Dataset>
<Dataset Name="string3" OBJ-XID="/string3" Parents="root">
<Dataspace>
<SimpleDataspace Ndims="1">
<Dimension DimSize="27" MaxDimSize="27"/>
</SimpleDataspace>
</Dataspace>
<DataType>
<AtomicType>
<StringType Cset="H5T_CSET_ASCII" StrSize="8" StrPad="H5T_STR_NULLPAD"/>
</AtomicType>
</DataType>
<Data>
<DataFromFile>
"abcd0"
"abcd1"
"abcd2"
"abcd3"
"abcd4"
"abcd5"
"abcd6"
"abcd7"
"abcd8"
"abcd9"
"abcd0"
"abcd1"
"abcd2"
"abcd3"
"abcd4"
"abcd5"
"abcd6"
"abcd7"
"abcd8"
"abcd9"
"abcd0"
"abcd1"
"abcd2"
"abcd3"
"abcd4"
"abcd5"
"abcd6"
</DataFromFile>
</Data>
</Dataset>
<Dataset Name="string4" OBJ-XID="/string4" Parents="root">
<Dataspace>
<SimpleDataspace Ndims="1">
<Dimension DimSize="3" MaxDimSize="3"/>
</SimpleDataspace>
</Dataspace>
<DataType>
<AtomicType>
<StringType Cset="H5T_CSET_ASCII" StrSize="168" StrPad="H5T_STR_SPACEPAD"/>
</AtomicType>
</DataType>
<Data>
<DataFromFile>
"s1234567890123456789 "
"s1234567890123456789 "
"s1234567890123456789 "
</DataFromFile>
</Data>
</Dataset>
</RootGroup>
</HDF5-File>

View File

@ -0,0 +1,196 @@
#############################
Expected output for 'h5dump --xml tstr2.h5'
#############################
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE HDF5-File PUBLIC "HDF5-File.dtd" "http://hdf.ncsa.uiuc.edu/DTDs/HDF5-File.dtd">
<HDF5-File>
<RootGroup OBJ-XID="root">
<Group Name="g1" OBJ-XID="/g1" Parents="/" >
<Dataset Name="dset1" OBJ-XID="/g1/dset1" Parents="/g1">
<Dataspace>
<SimpleDataspace Ndims="1">
<Dimension DimSize="10" MaxDimSize="10"/>
</SimpleDataspace>
</Dataspace>
<DataType>
<AtomicType>
<StringType Cset="H5T_CSET_ASCII" StrSize="50" StrPad="H5T_STR_NULLTERM"/>
</AtomicType>
</DataType>
<Attribute Name="attr1">
<Dataspace>
<SimpleDataspace Ndims="1">
<Dimension DimSize="3" MaxDimSize="3"/>
</SimpleDataspace>
</Dataspace>
<DataType>
<AtomicType>
<StringType Cset="H5T_CSET_ASCII" StrSize="11" StrPad="H5T_STR_NULLTERM"/>
</AtomicType>
</DataType>
<Data>
<DataFromFile>
"0123456789"
"abcdefghij"
"ABCDEFGHIJ"
</DataFromFile>
</Data>
</Attribute>
<Data>
<DataFromFile>
"This is row 0 of type H5T_STR_NULLTERM of"
"This is row 1 of type H5T_STR_NULLTERM of"
"This is row 2 of type H5T_STR_NULLTERM of"
"This is row 3 of type H5T_STR_NULLTERM of"
"This is row 4 of type H5T_STR_NULLTERM of"
"This is row 5 of type H5T_STR_NULLTERM of"
"This is row 6 of type H5T_STR_NULLTERM of"
"This is row 7 of type H5T_STR_NULLTERM of"
"This is row 8 of type H5T_STR_NULLTERM of"
"This is row 9 of type H5T_STR_NULLTERM of"
</DataFromFile>
</Data>
</Dataset>
</Group>
<Group Name="g2" OBJ-XID="/g2" Parents="/" >
<Dataset Name="dset2" OBJ-XID="/g2/dset2" Parents="/g2">
<Dataspace>
<SimpleDataspace Ndims="1">
<Dimension DimSize="10" MaxDimSize="10"/>
</SimpleDataspace>
</Dataspace>
<DataType>
<AtomicType>
<StringType Cset="H5T_CSET_ASCII" StrSize="50" StrPad="H5T_STR_NULLTERM"/>
</AtomicType>
</DataType>
<Data>
<DataFromFile>
"This is row 0 of type H5T_STR_NULLTERM of string "
"This is row 1 of type H5T_STR_NULLTERM of string "
"This is row 2 of type H5T_STR_NULLTERM of string "
"This is row 3 of type H5T_STR_NULLTERM of string "
"This is row 4 of type H5T_STR_NULLTERM of string "
"This is row 5 of type H5T_STR_NULLTERM of string "
"This is row 6 of type H5T_STR_NULLTERM of string "
"This is row 7 of type H5T_STR_NULLTERM of string "
"This is row 8 of type H5T_STR_NULLTERM of string "
"This is row 9 of type H5T_STR_NULLTERM of string "
</DataFromFile>
</Data>
</Dataset>
</Group>
<Group Name="g3" OBJ-XID="/g3" Parents="/" >
<Dataset Name="dset3" OBJ-XID="/g3/dset3" Parents="/g3">
<Dataspace>
<SimpleDataspace Ndims="1">
<Dimension DimSize="10" MaxDimSize="10"/>
</SimpleDataspace>
</Dataspace>
<DataType>
<AtomicType>
<StringType Cset="H5T_CSET_ASCII" StrSize="50" StrPad="H5T_STR_NULLPAD"/>
</AtomicType>
</DataType>
<Data>
<DataFromFile>
"This is row 0 of type H5T_STR_NULLPAD of"
"This is row 1 of type H5T_STR_NULLPAD of"
"This is row 2 of type H5T_STR_NULLPAD of"
"This is row 3 of type H5T_STR_NULLPAD of"
"This is row 4 of type H5T_STR_NULLPAD of"
"This is row 5 of type H5T_STR_NULLPAD of"
"This is row 6 of type H5T_STR_NULLPAD of"
"This is row 7 of type H5T_STR_NULLPAD of"
"This is row 8 of type H5T_STR_NULLPAD of"
"This is row 9 of type H5T_STR_NULLPAD of"
</DataFromFile>
</Data>
</Dataset>
</Group>
<Group Name="g4" OBJ-XID="/g4" Parents="/" >
<Dataset Name="dset4" OBJ-XID="/g4/dset4" Parents="/g4">
<Dataspace>
<SimpleDataspace Ndims="1">
<Dimension DimSize="10" MaxDimSize="10"/>
</SimpleDataspace>
</Dataspace>
<DataType>
<AtomicType>
<StringType Cset="H5T_CSET_ASCII" StrSize="50" StrPad="H5T_STR_NULLPAD"/>
</AtomicType>
</DataType>
<Data>
<DataFromFile>
"This is row 0 of type H5T_STR_NULLPAD of string ar"
"This is row 1 of type H5T_STR_NULLPAD of string ar"
"This is row 2 of type H5T_STR_NULLPAD of string ar"
"This is row 3 of type H5T_STR_NULLPAD of string ar"
"This is row 4 of type H5T_STR_NULLPAD of string ar"
"This is row 5 of type H5T_STR_NULLPAD of string ar"
"This is row 6 of type H5T_STR_NULLPAD of string ar"
"This is row 7 of type H5T_STR_NULLPAD of string ar"
"This is row 8 of type H5T_STR_NULLPAD of string ar"
"This is row 9 of type H5T_STR_NULLPAD of string ar"
</DataFromFile>
</Data>
</Dataset>
</Group>
<Group Name="g5" OBJ-XID="/g5" Parents="/" >
<Dataset Name="dset5" OBJ-XID="/g5/dset5" Parents="/g5">
<Dataspace>
<SimpleDataspace Ndims="1">
<Dimension DimSize="10" MaxDimSize="10"/>
</SimpleDataspace>
</Dataspace>
<DataType>
<AtomicType>
<StringType Cset="H5T_CSET_ASCII" StrSize="50" StrPad="H5T_STR_SPACEPAD"/>
</AtomicType>
</DataType>
<Data>
<DataFromFile>
"This is row 0 of type H5T_STR_SPACEPAD of "
"This is row 1 of type H5T_STR_SPACEPAD of "
"This is row 2 of type H5T_STR_SPACEPAD of "
"This is row 3 of type H5T_STR_SPACEPAD of "
"This is row 4 of type H5T_STR_SPACEPAD of "
"This is row 5 of type H5T_STR_SPACEPAD of "
"This is row 6 of type H5T_STR_SPACEPAD of "
"This is row 7 of type H5T_STR_SPACEPAD of "
"This is row 8 of type H5T_STR_SPACEPAD of "
"This is row 9 of type H5T_STR_SPACEPAD of "
</DataFromFile>
</Data>
</Dataset>
</Group>
<Group Name="g6" OBJ-XID="/g6" Parents="/" >
<Dataset Name="dset6" OBJ-XID="/g6/dset6" Parents="/g6">
<Dataspace>
<SimpleDataspace Ndims="1">
<Dimension DimSize="10" MaxDimSize="10"/>
</SimpleDataspace>
</Dataspace>
<DataType>
<AtomicType>
<StringType Cset="H5T_CSET_ASCII" StrSize="50" StrPad="H5T_STR_SPACEPAD"/>
</AtomicType>
</DataType>
<Data>
<DataFromFile>
"This is row 0 of type H5T_STR_SPACEPAD of string a"
"This is row 1 of type H5T_STR_SPACEPAD of string a"
"This is row 2 of type H5T_STR_SPACEPAD of string a"
"This is row 3 of type H5T_STR_SPACEPAD of string a"
"This is row 4 of type H5T_STR_SPACEPAD of string a"
"This is row 5 of type H5T_STR_SPACEPAD of string a"
"This is row 6 of type H5T_STR_SPACEPAD of string a"
"This is row 7 of type H5T_STR_SPACEPAD of string a"
"This is row 8 of type H5T_STR_SPACEPAD of string a"
"This is row 9 of type H5T_STR_SPACEPAD of string a"
</DataFromFile>
</Data>
</Dataset>
</Group>
</RootGroup>
</HDF5-File>

Binary file not shown.

View File

@ -0,0 +1,55 @@
#############################
Expected output for 'h5dump --xml tstring-at.h5'
#############################
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE HDF5-File PUBLIC "HDF5-File.dtd" "http://hdf.ncsa.uiuc.edu/DTDs/HDF5-File.dtd">
<HDF5-File>
<RootGroup OBJ-XID="root">
<Dataset Name="dset1" OBJ-XID="/dset1" Parents="root">
<Dataspace>
<SimpleDataspace Ndims="1">
<Dimension DimSize="7" MaxDimSize="7"/>
</SimpleDataspace>
</Dataspace>
<DataType>
<AtomicType>
<StringType Cset="H5T_CSET_ASCII" StrSize="16" StrPad="H5T_STR_SPACEPAD"/>
</AtomicType>
</DataType>
<Attribute Name="attr1">
<Dataspace>
<SimpleDataspace Ndims="1">
<Dimension DimSize="7" MaxDimSize="7"/>
</SimpleDataspace>
</Dataspace>
<DataType>
<AtomicType>
<StringType Cset="H5T_CSET_ASCII" StrSize="16" StrPad="H5T_STR_SPACEPAD"/>
</AtomicType>
</DataType>
<Data>
<DataFromFile>
"String withsp "
"String\\withsl "
"String&amp;withamp "
"String&lt;withlt "
"String&gt;withgt "
"String&apos;withapos "
"String\"withquot "
</DataFromFile>
</Data>
</Attribute>
<Data>
<DataFromFile>
""
""
""
""
""
""
""
</DataFromFile>
</Data>
</Dataset>
</RootGroup>
</HDF5-File>

BIN
tools/testfiles/tstring.h5 Normal file

Binary file not shown.

View File

@ -0,0 +1,55 @@
#############################
Expected output for 'h5dump --xml tstring.h5'
#############################
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE HDF5-File PUBLIC "HDF5-File.dtd" "http://hdf.ncsa.uiuc.edu/DTDs/HDF5-File.dtd">
<HDF5-File>
<RootGroup OBJ-XID="root">
<Dataset Name="dset1" OBJ-XID="/dset1" Parents="root">
<Dataspace>
<SimpleDataspace Ndims="1">
<Dimension DimSize="7" MaxDimSize="7"/>
</SimpleDataspace>
</Dataspace>
<DataType>
<AtomicType>
<StringType Cset="H5T_CSET_ASCII" StrSize="16" StrPad="H5T_STR_SPACEPAD"/>
</AtomicType>
</DataType>
<Attribute Name="attr1">
<Dataspace>
<SimpleDataspace Ndims="1">
<Dimension DimSize="7" MaxDimSize="7"/>
</SimpleDataspace>
</Dataspace>
<DataType>
<AtomicType>
<StringType Cset="H5T_CSET_ASCII" StrSize="16" StrPad="H5T_STR_SPACEPAD"/>
</AtomicType>
</DataType>
<Data>
<DataFromFile>
" "
" "
" "
" "
" "
" "
" "
</DataFromFile>
</Data>
</Attribute>
<Data>
<DataFromFile>
"String withsp "
"String\\withsl "
"String&amp;withamp "
"String&lt;withlt "
"String&gt;withgt "
"String&apos;withapos "
"String\"withquot "
</DataFromFile>
</Data>
</Dataset>
</RootGroup>
</HDF5-File>

View File

@ -0,0 +1,3 @@
#############################
Expected output for 'h5dump -xml tvldtypes.h5'
#############################

View File

@ -0,0 +1,73 @@
#############################
Expected output for 'h5dump --xml tvldtypes1.h5'
#############################
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE HDF5-File PUBLIC "HDF5-File.dtd" "http://hdf.ncsa.uiuc.edu/DTDs/HDF5-File.dtd">
<HDF5-File>
<RootGroup OBJ-XID="root">
<Dataset Name="Dataset1.0" OBJ-XID="/Dataset1.0" Parents="root">
<Dataspace>
<SimpleDataspace Ndims="1">
<Dimension DimSize="4" MaxDimSize="4"/>
</SimpleDataspace>
</Dataspace>
<DataType>
<VLType>
<DataType>
<AtomicType>
<IntegerType ByteOrder="LE" Sign="true" Size="4" />
</AtomicType>
</DataType>
</VLType>
</DataType>
<!-- Note: format of VL data not specified -->
<Data>
<DataFromFile>
0 10 11 20 21 22 30 31 32 33
</DataFromFile>
</Data>
</Dataset>
<Dataset Name="Dataset2.0" OBJ-XID="/Dataset2.0" Parents="root">
<Dataspace>
<SimpleDataspace Ndims="1">
<Dimension DimSize="4" MaxDimSize="4"/>
</SimpleDataspace>
</Dataspace>
<DataType>
<VLType>
<DataType>
<AtomicType>
<FloatType ByteOrder="LE" Size="4" SignBitLocation="31" ExponentBits="8" ExponentLocation="23" MantissaBits="23" MantissaLocation="0" />
</AtomicType>
</DataType>
</VLType>
</DataType>
<!-- Note: format of VL data not specified -->
<Data>
<DataFromFile>
0 10 10.1 20 20.1 20.2 30 30.1 30.2 30.3
</DataFromFile>
</Data>
</Dataset>
<Dataset Name="Dataset3.0" OBJ-XID="/Dataset3.0" Parents="root">
<Dataspace>
<ScalarDataspace />
</Dataspace>
<DataType>
<VLType>
<DataType>
<AtomicType>
<IntegerType ByteOrder="LE" Sign="true" Size="4" />
</AtomicType>
</DataType>
</VLType>
</DataType>
<!-- Note: format of VL data not specified -->
<Data>
<DataFromFile>
0 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40 42 44 46 48 50 52 54 56 58 60 62 64 66 68 70 72
</DataFromFile>
</Data>
</Dataset>
</RootGroup>
</HDF5-File>

View File

@ -0,0 +1,36 @@
#############################
Expected output for 'h5dump --xml tvldtypes2.h5'
#############################
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE HDF5-File PUBLIC "HDF5-File.dtd" "http://hdf.ncsa.uiuc.edu/DTDs/HDF5-File.dtd">
<HDF5-File>
<RootGroup OBJ-XID="root">
<Dataset Name="Dataset1" OBJ-XID="/Dataset1" Parents="root">
<Dataspace>
<SimpleDataspace Ndims="1">
<Dimension DimSize="4" MaxDimSize="4"/>
</SimpleDataspace>
</Dataspace>
<DataType>
<VLType>
<DataType>
<VLType>
<DataType>
<AtomicType>
<IntegerType ByteOrder="LE" Sign="false" Size="4" />
</AtomicType>
</DataType>
</VLType>
</DataType>
</VLType>
</DataType>
<!-- Note: format of VL data not specified -->
<Data>
<DataFromFile>
0 100 110 111 200 210 211 220 221 222
300 310 311 320 321 322 330 331 332 333
</DataFromFile>
</Data>
</Dataset>
</RootGroup>
</HDF5-File>

View File

@ -0,0 +1,51 @@
#############################
Expected output for 'h5dump --xml tvldtypes3.h5'
#############################
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE HDF5-File PUBLIC "HDF5-File.dtd" "http://hdf.ncsa.uiuc.edu/DTDs/HDF5-File.dtd">
<HDF5-File>
<RootGroup OBJ-XID="root">
<Dataset Name="Dataset1" OBJ-XID="/Dataset1" Parents="root">
<Dataspace>
<SimpleDataspace Ndims="1">
<Dimension DimSize="4" MaxDimSize="4"/>
</SimpleDataspace>
</Dataspace>
<DataType>
<CompoundType>
<Field FieldName="i">
<DataType>
<AtomicType>
<IntegerType ByteOrder="LE" Sign="true" Size="4" />
</AtomicType>
</DataType>
</Field>
<Field FieldName="f">
<DataType>
<AtomicType>
<FloatType ByteOrder="LE" Size="4" SignBitLocation="31" ExponentBits="8" ExponentLocation="23" MantissaBits="23" MantissaLocation="0" />
</AtomicType>
</DataType>
</Field>
<Field FieldName="v">
<DataType>
<VLType>
<DataType>
<AtomicType>
<IntegerType ByteOrder="LE" Sign="false" Size="4" />
</AtomicType>
</DataType>
</VLType>
</DataType>
</Field>
</CompoundType>
</DataType>
<!-- Note: format of compound data not specified -->
<Data>
<DataFromFile>
0 0 0 10 6.66667 10 11 20 13.3333 20 21 22 30 20 30 31 32 33
</DataFromFile>
</Data>
</Dataset>
</RootGroup>
</HDF5-File>

View File

@ -13,7 +13,7 @@ verbose=yes
if test "X$srcdir" = X; then
srcdir=.
fi
test -d testfiles || mkdir testfiles
mkdir testfiles >/dev/null 2>&1
# Print a line-line message left justified in a field of 70 characters
# beginning with the word "Testing".
@ -38,16 +38,14 @@ TOOLTEST()
full=`pwd`/$h5tool
# Run test.
# Stderr is included in stdout so that the diff can detect
# any unexpected output from that stream too.
TESTING $h5tool $@
(
echo "#############################"
echo "Expected output for '$h5tool $@'"
echo "#############################"
cd $srcdir/testfiles
$RUNSERIAL $h5tool_bin "$@"
) >$actual 2>& 1
$RUNSERIAL $h5tool_bin "$@" 2>/dev/null
) >$actual
if $CMP $expect $actual; then
echo " PASSED"
@ -144,6 +142,50 @@ TOOLTEST tarray7.ddl tarray7.h5
# test for files with empty data
TOOLTEST tempty.ddl tempty.h5
# test XML
TOOLTEST tall.h5.xml --xml tall.h5
TOOLTEST tattr.h5.xml --xml tattr.h5
TOOLTEST tbitfields.h5.xml --xml tbitfields.h5
TOOLTEST tcompound.h5.xml --xml tcompound.h5
TOOLTEST tcompound2.h5.xml --xml tcompound2.h5
TOOLTEST tdatareg.h5.xml --xml tdatareg.h5
TOOLTEST tdset.h5.xml --xml tdset.h5
TOOLTEST tdset2.h5.xml --xml tdset2.h5
TOOLTEST tenum.h5.xml --xml tenum.h5
TOOLTEST tgroup.h5.xml --xml tgroup.h5
TOOLTEST thlink.h5.xml --xml thlink.h5
TOOLTEST tloop.h5.xml --xml tloop.h5
TOOLTEST tloop2.h5.xml --xml tloop2.h5
TOOLTEST tmany.h5.xml --xml tmany.h5
TOOLTEST tnestedcomp.h5.xml --xml tnestedcomp.h5
TOOLTEST tobjref.h5.xml --xml tobjref.h5
TOOLTEST topaque.h5.xml --xml topaque.h5
TOOLTEST tslink.h5.xml --xml tslink.h5
TOOLTEST tstr.h5.xml --xml tstr.h5
TOOLTEST tstr2.h5.xml --xml tstr2.h5
TOOLTEST tref.h5.xml --xml tref.h5
TOOLTEST tname-amp.h5.xml --xml tname-amp.h5
TOOLTEST tname-apos.h5.xml --xml tname-apos.h5
TOOLTEST tname-gt.h5.xml --xml tname-gt.h5
TOOLTEST tname-lt.h5.xml --xml tname-lt.h5
TOOLTEST tname-quot.h5.xml --xml tname-quot.h5
TOOLTEST tname-sp.h5.xml --xml tname-sp.h5
TOOLTEST tstring.h5.xml --xml tstring.h5
TOOLTEST tstring-at.h5.xml --xml tstring-at.h5
TOOLTEST tref-escapes.h5.xml --xml tref-escapes.h5
TOOLTEST tref-escapes-at.h5.xml --xml tref-escapes-at.h5
TOOLTEST tnodata.h5.xml --xml tnodata.h5
TOOLTEST tarray1.h5.xml --xml tarray1.h5
TOOLTEST tarray2.h5.xml --xml tarray2.h5
TOOLTEST tarray3.h5.xml --xml tarray3.h5
TOOLTEST tarray6.h5.xml --xml tarray6.h5
TOOLTEST tarray7.h5.xml --xml tarray7.h5
TOOLTEST tvldtypes1.h5.xml --xml tvldtypes1.h5
TOOLTEST tvldtypes2.h5.xml --xml tvldtypes2.h5
TOOLTEST tvldtypes3.h5.xml --xml tvldtypes3.h5
TOOLTEST tsaf.h5.xml --xml tsaf.h5
TOOLTEST tempty.h5.xml --xml tempty.h5
if test $nerrors -eq 0 ; then
echo "All $h5tool tests passed."
fi