How use linq with xml

I have a xml:

<?xml version="1.0" encoding="utf-8"?>
<root>
     <contents>
           <content code="1234">Test value</content>
     </contents>
 </root>

and try to reference it in the template

<<[contents.first().content.code]>>

i can get attr “code”,but how to get content.innerText ?

@panyunlai

Thanks for your inquiry. Please use the following LINQ query to get desired results.

<<[contents.first().content.content_Text]>>

Hope, this helps.

Thanks for your reply.