Valid:
<a href="search?term=scala&count=20"></a>
See http://www.w3schools.com/XML/xml_validator.asp
What do you mean by "it doesn't scan well"?
Erik Peterson
m: (281) 804-9023
e...@ardec.com
It's not valid XML.
Compare the following quote from section 2.4 from the xml spec:
"The ampersand character (&) and the left angle bracket (<) MUST NOT appear in
their literal form, except when used as markup delimiters, or within a
comment, a processing instruction, or a CDATA section. If they are needed
elsewhere, they MUST be escaped using either numeric character references or
the strings " & " and " < " respectively. The right angle bracket (>)
may be represented using the string " > ", and MUST, for compatibility, be
escaped using either " > " or a character reference when it appears in the
string " ]]> " in content, when that string is not marking the end of a CDATA
section."
from: http://www.w3.org/TR/2008/REC-xml-20081126/#syntax
I know it sucks, but so does XML.
Have a great existence,
-Martin
If you want something directly in a scala api consider creating a "searchLinkBuilder" using a case class with named params...or a fluent api: http://stackoverflow.com/questions/6347083/type-safe-builder-library-for-scala-and-java