/* Read the KDM, decrypting it */
- cxml::File f (kdm.string (), "DCinemaSecurityMessage");
+ cxml::Document f ("DCinemaSecurityMessage");
+ f.read_file (kdm.string ());
shared_ptr<cxml::Node> authenticated_private = f.node_child ("AuthenticatedPrivate");
list<shared_ptr<cxml::Node> > encrypted_keys = authenticated_private->node_children ("EncryptedKey");
AssetMap::AssetMap (string file)
{
- cxml::File f (file, "AssetMap");
+ cxml::Document f ("AssetMap");
+ f.read_file (file);
id = f.string_child ("Id");
creator = f.string_child ("Creator");
CPL::CPL (string file)
{
- cxml::File f (file, "CompositionPlaylist");
+ cxml::Document f ("CompositionPlaylist");
+ f.read_file (file);
id = f.string_child ("Id");
annotation_text = f.optional_string_child ("AnnotationText").get_value_or ("");
PKL::PKL (string file)
{
- cxml::File f (file, "PackingList");
+ cxml::Document f ("PackingList");
+ f.read_file (file);
id = f.string_child ("Id");
annotation_text = f.optional_string_child ("AnnotationText").get_value_or ("");
void
SubtitleAsset::read_xml (string xml_file)
{
- shared_ptr<cxml::File> xml (new cxml::File (xml_file, "DCSubtitle"));
+ shared_ptr<cxml::Document> xml (new cxml::Document ("DCSubtitle"));
+ xml->read_file (xml_file);
_uuid = xml->string_child ("SubtitleID");
_movie_title = xml->string_child ("MovieTitle");