Parses an AFNI extension (ecode = 4) containing XML-formatted attributes.
Arguments
- ext
A
NiftiExtension-classobject with ecode = 4.- as_xml
Logical; if TRUE (default) and xml2 is available, returns an xml_document object. Otherwise returns the raw XML string.
Value
If as_xml = TRUE and xml2 is available, returns an xml_document.
Otherwise returns a character string containing the XML.
Details
AFNI stores dataset attributes in an XML format within the NIfTI extension. The XML contains elements like HISTORY_NOTE, volume labels, tagged points, and other AFNI-specific metadata.
See also
get_afni_attribute for extracting specific AFNI attributes.