Changed the direction of XML parsing

Used Select-XML to ensure compatibility with v2