XMLDocument
extension XMLDocument
-
Validates an XMLDocument against the FCPXML version 1.8 DTD.
This function temporarily replaces an empty DTD with the FCPXML DTD in order to call
validate()
. It then sets an empty DTD on the document again. This prevents the XML string from including the entire DTD. The FCPXML 1.8 DTD is also available as a public extension onXMLDTD
and can be set on the document for cases when you would like to include the DTD in the ouput XML string.Declaration
Swift
public func validateFCPXML() throws