Honestly, I don't have answers for you there. I don't expect any of those edge cases, but I would certainly inform you if they did arise.
I'm not familiar enough with XML to have even seen attribute=value pairs. Would those be treated as regular key=value pairs? And would children of the same name become a list or an array? I just assumed somebody already answered these questions a long long time ago.
The web-based XML to YAML converter that Ouims linked to seems to handle each of your examples.
https://codebeautify.org/xml-to-yamlI do notice that both online tools are not perfectly consistent or reversible, which could probably be chalked up to having bugs of their own.