The snipet of your XML
is invalid (character '=' is grammatically unexpected
). I seggest (if you can), to use a CData
in which your href
will be put. So your XML
will be like :
<link rel="self" type="application/json">
<href><![CDATA[https://api.demo.com/1/2/search?client_id=7f9d55eaaa844b48bb3cd98040f84382&DD=5000&BB=40.7142&AA=-74.0064]]></href>
</link>