Nearly pretty-print subtitle XML (though not in <Text> nodes).
[libdcp.git] / src / subtitle_asset.h
index f51906e22aabfe49c87611a3531dee868d942182..88b5378cab2986661b27af9f38bd3371a3f24d64 100644 (file)
 #include <libcxml/cxml.h>
 #include <boost/shared_array.hpp>
 #include <map>
+#include <string>
+#include <utility>
+#include <vector>
 
 
 namespace xmlpp {
+       class Document;
        class Element;
 }
 
@@ -128,6 +132,8 @@ public:
                return _raw_xml;
        }
 
+       static std::string format_xml (xmlpp::Document const& document, std::vector<std::pair<std::string, std::string>> const& namespaces);
+
 protected:
        friend struct ::interop_dcp_font_test;
        friend struct ::smpte_dcp_font_test;