diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-09-02 17:16:47 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-09-02 17:16:47 +0100 |
| commit | 32bdd1282660355f85a4d1048ab0beecc8347294 (patch) | |
| tree | 36056bd06a31e085b19071859d69c1db3581d101 /src/parse | |
| parent | 2b8326dcc766aae7e1c275a6c89050c6aa507f96 (diff) | |
Make CPL a simpler parser of the XML without real assets.rework-again2
Diffstat (limited to 'src/parse')
| -rw-r--r-- | src/parse/cpl.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/parse/cpl.cc b/src/parse/cpl.cc index f6ce434c..8e62adab 100644 --- a/src/parse/cpl.cc +++ b/src/parse/cpl.cc @@ -56,6 +56,10 @@ CPL::CPL (string file) ContentVersion::ContentVersion (shared_ptr<const cxml::Node> node) { id = node->optional_string_child ("Id").get_value_or (""); + if (!id.empty ()) { + /* Trim urn:uri: */ + id = id.substr (8); + } label_text = node->string_child ("LabelText"); node->done (); } |
