fn read_attributes( chars: &[char], pos: &mut usize, len: usize, ) -> Result<BTreeMap<String, String>, XmlError>