- if (!node->optional_number_child<double>("SubtitleXOffset") && !node->optional_number_child<double>("SubtitleOffset")) {
- return shared_ptr<TextContent> ();
+ if (version < 37) {
+ if (!node->optional_number_child<double>("SubtitleXOffset") && !node->optional_number_child<double>("SubtitleOffset")) {
+ return list<shared_ptr<TextContent> >();
+ }
+ list<shared_ptr<TextContent> > c;
+ c.push_back (shared_ptr<TextContent> (new TextContent (parent, node, version)));
+ return c;
+ }
+
+ if (!node->optional_node_child("Text")) {
+ return list<shared_ptr<TextContent> >();
+ }
+
+ list<shared_ptr<TextContent> > c;
+ BOOST_FOREACH (cxml::ConstNodePtr i, node->node_children("Text")) {
+ c.push_back (shared_ptr<TextContent> (new TextContent (parent, i, version)));