problem with &
-
I am creating a XML file by using IXMLDOMNode and I am setting value to the node by using the function put_nodeValue(). But whenever I pass & it gets converted to & Similarly if I pass > it gets converted to > How to overcome this problem Is there any escape seqeuence that should be added before passing value to the put_nodeValue(). Pls help
-
I am creating a XML file by using IXMLDOMNode and I am setting value to the node by using the function put_nodeValue(). But whenever I pass & it gets converted to & Similarly if I pass > it gets converted to > How to overcome this problem Is there any escape seqeuence that should be added before passing value to the put_nodeValue(). Pls help
The
put_nodeValue
method converts '&', '<', and '>' characters to their XML escape sequences&
,<
, and>
, respectively. Instead of 'pre-converting' them, just pass the characters.
Software Zen:
delete this;
-
The
put_nodeValue
method converts '&', '<', and '>' characters to their XML escape sequences&
,<
, and>
, respectively. Instead of 'pre-converting' them, just pass the characters.
Software Zen:
delete this;
-
No its not converting > and < its converting only & If I pass > then only & gets converted and resultant node value is >
If you are passing the characters
**& g t ;**
, it is converting the initial '&
' and then treating the rest of the characters literally. Instead of passing the string&
for an '&
' character, just pass the '&
' character itself.
Software Zen:
delete this;
-
If you are passing the characters
**& g t ;**
, it is converting the initial '&
' and then treating the rest of the characters literally. Instead of passing the string&
for an '&
' character, just pass the '&
' character itself.
Software Zen:
delete this;