diff options
| author | Jason Albert <albertj@us.ibm.com> | 2016-08-30 08:20:19 -0500 |
|---|---|---|
| committer | Jason Albert <albertj@us.ibm.com> | 2016-08-30 08:20:19 -0500 |
| commit | a41a9601594ec3f20b73a8d5c457f6a94c109dce (patch) | |
| tree | 49897dfaa711ddcb0f52f55db0989f0ba136d7a4 /examples | |
| parent | b7ef2bedfddddb9e4b245949a96b7b780f914a36 (diff) | |
| download | vpdtools-a41a9601594ec3f20b73a8d5c457f6a94c109dce.tar.gz vpdtools-a41a9601594ec3f20b73a8d5c457f6a94c109dce.zip | |
Added support for "mixed" kwformat type
- Mixed type allows for hex or ascii tags in kwdata tag
- Added checking of new xml structure
- Added example of mixed data usage
- Fixed a bug with hex input data with white space that resulted in
data not being padded out to the length of the kw
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/mixeddata/mixeddata.tvpd | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/examples/mixeddata/mixeddata.tvpd b/examples/mixeddata/mixeddata.tvpd new file mode 100644 index 0000000..ae15c69 --- /dev/null +++ b/examples/mixeddata/mixeddata.tvpd @@ -0,0 +1,35 @@ +<?xml version='1.0' encoding='utf-8'?> +<vpd> + <name>FILENAME</name> + <size>16kb</size> + <VD>01</VD> + <record name="VINI"> + <rdesc>The VINI record</rdesc> + <keyword name="MX"> + <kwdesc>Mixed Data Keyword</kwdesc> + <kwformat>mixed</kwformat> + <kwlen>128</kwlen> + <kwdata> + <hex> + 0123456789ABCDEF + </hex> + <ascii>STRING</ascii> + <hex> + FEEDB0B0 DEADBEEF + </hex> + </kwdata> + </keyword> + <keyword name="AS"> + <kwdesc>The ascii keyword</kwdesc> + <kwformat>ascii</kwformat> + <kwlen>20</kwlen> + <kwdata>This is text data</kwdata> + </keyword> + <keyword name="HX"> + <kwdesc>The Hex keyword</kwdesc> + <kwformat>hex</kwformat> + <kwlen>4</kwlen> + <kwdata>00000000</kwdata> + </keyword> + </record> +</vpd> |

