AnnotationText is (I believe) optional.
authorCarl Hetherington <cth@carlh.net>
Tue, 7 May 2013 14:53:38 +0000 (15:53 +0100)
committerCarl Hetherington <cth@carlh.net>
Tue, 7 May 2013 14:53:38 +0000 (15:53 +0100)
src/pkl_file.cc

index 21763f27db4d5e8ab1279a60b742319bf49f138b..6dfb627cb3bb369fc428a23403db744cc8fc1058 100644 (file)
@@ -32,7 +32,7 @@ PKLFile::PKLFile (string file)
        : XMLFile (file, "PackingList")
 {
        id = string_child ("Id");
-       annotation_text = string_child ("AnnotationText");
+       annotation_text = optional_string_child ("AnnotationText");
        issue_date = string_child ("IssueDate");
        issuer = string_child ("Issuer");
        creator = string_child ("Creator");