title: How to produce integer literal as an attribute in Scala XML output?
body: <p>I expect the following code to produce XML value with the following content:</p>
  
  <pre><code>&lt;TestInteger value="10"/&gt;
  </code></pre>
  
  <p>Compiler gives of an error</p>
  
  <pre><code>scala&gt; import scala.xml._
  import scala.xml._
  scala&gt; val x:Int = 10
  x: Int = 10
  scala&gt; &lt;TestInteger value={x}/&gt;
  &lt;console&gt;:8: error: overloaded method constructor UnprefixedAttribute with alternatives (String,Option[Seq[scala.xml.Node]],scala.xml.MetaData)scala.xml.UnprefixedAttribute &lt;and&gt; (String,String,scala.xml.MetaData)scala.xml.UnprefixedAttribute &lt;and&gt; (String,Seq[scala.xml.Node],scala.xml.MetaData)scala.xml.UnprefixedAttribute cannot be applied to (java.lang.String,Int,scala.xml.MetaData)
         &lt;TestInteger value={x}/&gt;
  </code></pre>
  
  <p>What am I doing wrong? Are integer literals allowed in XML?</p>
  
  <p>I'm using Scala 2.7.7</p>