modified setvalue to avoid xmlparseentityref: no name entity warning message error
which in turn will make the domdocument::loadxml call to fail.

the call will failed when the value of setvalue contain the character "&"