当且仅当它位于第一个父元素中时,以下内容才会显示子元素。$xml=@"Hithere.Thisisdisplayed.Hiagain.Soisthis.Wellhello.Thisismissing.Cheers.Soisthis."@clsSelect-Xml-Content$xml-XPath"//par"|select-ExpandPropertynode输出commonchildotherchild---------------------Hithere.Thisisdisplayed.Hiagain.Soisthis.Wellhello.Cheers.我们如何才能显示所有父元