pub fn extract_xml_declaration(input: &str) -> Option<XmlDeclaration>
Extracts the XML declaration when present.