How to insert "&&" to the attribute value of an xml element???


i have xml element in variable1 name of variable in system find value in way in backend:

 

<item visibilitycondition="{#variable1} !=12 && {#variable1} !=3">

</item>

 

i can't put "&&" there, gives me error in xml document @ design time.

 

i tried use cdata following same problem:

<item visibilitycondition="![cdata[{#variable1} !=12 && {#variable1} !=3]]">

</item>

 

i placed "andand" translated "&&" @ runtime, don't way.

 

any thoughts or helps highly appreciated.

 

the ampersand special character in xml used represent entities.  if want have ampersand somewhere in xml value attribute instance, need represent ampersand entity: &amp;

you can find background here: http://www.xml.com/pub/a/2001/01/31/qanda.html


Archived Forums A-B  >  ASMX Web Services and XML Serialization



Comments

Popular posts from this blog

Azure DocumentDB Owner resource does not exist

job syspolicy_purge_history job fail in sqlserver 2008

Trying to register with public marketplace error with 'Get-AzureStackStampInformation'