title: roslyn trying to build a param attribute
body: <p>I cannot figure out what the correct types to use are.</p>
  
  <p>I am trying to build a <code>&lt;param name="testing"&gt;&lt;/param&gt;</code> element for documentation from the supplied parameter syntax.</p>
  
  <p>I am using the wrong types as I cannot compile.</p>
  
  <blockquote>
    <p>Error CS0029  Cannot implicitly convert type    'Microsoft.CodeAnalysis.CSharp.Syntax.XmlTextAttributeSyntax' to 'Microsoft.CodeAnalysis.CSharp.Syntax.XmlNodeSyntax'`</p>
  </blockquote>
  
  <pre><code>/// &lt;summary&gt;
  /// Create a parameter element for the supplied parameter syntax.
  /// &lt;/summary&gt;
  /// &lt;param name="parameterSyntax"&gt;the parameter syntax.&lt;/param&gt;
  /// &lt;returns&gt;the corresponding parameter XML entry.&lt;/returns&gt;
  private XmlElementSyntax CreateParameter(ParameterSyntax parameterSyntax)
  {
      var identifier = SyntaxFactory.Identifier(parameterSyntax.Identifier.Text);
      var text = SyntaxFactory.XmlTextAttribute(
          SyntaxFactory.XmlName("name"),
          SyntaxFactory.Token(SyntaxKind.EqualsToken),
          SyntaxFactory.Token(SyntaxKind.DoubleQuoteToken),
          SyntaxFactory.TokenList(identifier),
          SyntaxFactory.Token(SyntaxKind.DoubleQuoteToken));
  
      // THE PROBLEM IS HERE
      var list = SyntaxFactory.List&lt;XmlNodeSyntax&gt;(new XmlNodeSyntax[] { text });
  
      return SyntaxFactory.XmlElement(
          SyntaxFactory.XmlElementStartTag(SyntaxFactory.XmlName("param")),
          list,
          SyntaxFactory.XmlElementEndTag(SyntaxFactory.XmlName("param")));
  }
  </code></pre>