M
martin
Hi,
I would like to write the text of an element to an xml doc as that it look
like this
<Address>"Marty Jones" <[email protected]></Address>
however I can't seen to get the quote marks to come out correctly
the innertext property will change
"<" to <
">" to >
but not " to "
when I write " in the innerText string I get &quot;
I tried to use innerXml instead of innertext but it didn't like that, I
guess because I am not inserting into a cdata section.
my failed attempts are below,
_message.DocumentElement.SelectSingleNode("Addresses/Address").InnerText =
""Marty Jones" <[email protected]>";
<Address>&quot;Marty Jones&quot;
&lt;[email protected]&gt;</Address>
_message.DocumentElement.SelectSingleNode("Addresses/Address").InnerText =
"\"Marty Jones\" <[email protected]>";
<Address>"Marty Jones" <[email protected]></Address>
any help is appreciated
cheers
martin.
I would like to write the text of an element to an xml doc as that it look
like this
<Address>"Marty Jones" <[email protected]></Address>
however I can't seen to get the quote marks to come out correctly
the innertext property will change
"<" to <
">" to >
but not " to "
when I write " in the innerText string I get &quot;
I tried to use innerXml instead of innertext but it didn't like that, I
guess because I am not inserting into a cdata section.
my failed attempts are below,
_message.DocumentElement.SelectSingleNode("Addresses/Address").InnerText =
""Marty Jones" <[email protected]>";
<Address>&quot;Marty Jones&quot;
&lt;[email protected]&gt;</Address>
_message.DocumentElement.SelectSingleNode("Addresses/Address").InnerText =
"\"Marty Jones\" <[email protected]>";
<Address>"Marty Jones" <[email protected]></Address>
any help is appreciated
cheers
martin.