hello, with C# xml library I'm reading a xml file that contains this:
"http://www.ggggg/fff&hello";
While (xmlReader) {
if (link)
string link = reader.Value; //link now hasn't "amp;"
}
XMLWriter my_xml_writer;
myTag.InnerText = link; //here problem
write_to_file_as_xml
While (xmlReader) {
if (link)
string link = reader.Value; //link now hasn't "amp;"
}
XMLWriter my_xml_writer;
myTag.InnerText = link; //here problem
write_to_file_as_xml
To copy to clipboard, switch view to plain text mode
Above, innerText take the right thing(without "amp;") but the output file has "&". I note (debugging) that myTag has also one other property: innerXML that it contains the "&".
I guess, xml library, seeing a '&' add automatically a 'amp;' after &;
I need to read from a file that has "&" and write to output file as "&" only. Is there a solution, please?
thanks.
Bookmarks