Because of the funny behavior of the site, the XML you posted (if you did post any) is not visible. Not your fault, the site behaves in unexpected ways when trying to post XML.
The example posted may have nothing to do with what you are asking, but hopefully it will give you some ideas
DECLARE @x XML =
<node1 a="17" b="18">
<node1 a="27" b="28">
c.value('.','VARCHAR(32)') AS NodeText,
c.value('./@a','INT') AS A,
c.value('./@b','INT') AS B