diff options
| author | Jason Albert <albertj@us.ibm.com> | 2016-08-30 10:37:01 -0500 |
|---|---|---|
| committer | Jason Albert <albertj@us.ibm.com> | 2016-08-30 10:37:01 -0500 |
| commit | 0100dab32a1bb06b24143b7f3d62ee2cb1be9115 (patch) | |
| tree | 58f01b9bb25606b7366947b569dad747785d84a3 /examples/comments | |
| parent | b7ef2bedfddddb9e4b245949a96b7b780f914a36 (diff) | |
| download | vpdtools-0100dab32a1bb06b24143b7f3d62ee2cb1be9115.tar.gz vpdtools-0100dab32a1bb06b24143b7f3d62ee2cb1be9115.zip | |
Added support for comment preservation in output files
- Put a smaller wrapper on the normal parser to handle comment preservation
- Added code to handle new comment tag on all parsing levels
Diffstat (limited to 'examples/comments')
| -rw-r--r-- | examples/comments/comments.tvpd | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/examples/comments/comments.tvpd b/examples/comments/comments.tvpd new file mode 100644 index 0000000..ed937b6 --- /dev/null +++ b/examples/comments/comments.tvpd @@ -0,0 +1,28 @@ +<?xml version='1.0' encoding='utf-8'?> +<!-- top level comment --> +<vpd> + <!-- vpd level comment --> + <name>FILENAME</name> + <size>16kb</size> + <VD>01</VD> + <record name="VINI"> + <!-- record level comment --> + <rdesc>The VINI record</rdesc> + <keyword name="RT"> + <!-- keyword level comment --> + <kwdesc>The Record Type keyword</kwdesc> + <kwformat>ascii</kwformat> + <kwlen>4</kwlen> + <kwdata>VINI</kwdata> + </keyword> + <keyword name="BD"> + <kwdesc>The Big Data keyword</kwdesc> + <kwformat>hex</kwformat> + <kwlen>128</kwlen> + <kwdata> + <!-- kwdata level comment--> + FEEDB0B0DEADBEEF + </kwdata> + </keyword> + </record> +</vpd> |

