Linked Questions

6 votes
3 answers
16k views

I have a web service that returns an xml string as results. The return string is in this format: <ReturnValue> <ErrorNumber>0 </ErrorNumber> <Message>my message</Message&...
ganders's user avatar
  • 7,460
0 votes
1 answer
189 views

I would like to transform a string like this "¿Cómo puede hacerse esto?" Into something that can be used within an XML resx file like this: "&#191;C&#243;mo puede hacerse esto?" I have tried ...
Alex's user avatar
  • 3
106 votes
21 answers
225k views

Very similar to this question, except for Java. What is the recommended way of encoding strings for an XML output in Java. The strings might contain characters like "&", "<", etc.
John Goering's user avatar
  • 39.2k
11 votes
5 answers
14k views

I'm trying to unescape XML entities in a string in .NET (C#), but I don't seem to get it to work correctly. For example, if I have the string AT&amp;T, it should be translated to AT&T. One ...
Philippe Leybaert's user avatar
5 votes
4 answers
17k views

My application generates XML using XmlDocument. Some of the data contains newline and carriage return characters. When text is assigned to an XmlElement like this: e.InnerText = "Hello\nThere"; ...
Chris C.'s user avatar
  • 1,001
2 votes
3 answers
6k views

In my c# application i am creating an xml based on the database value. It woks fine until the string is not a special character. Below is my code. XmlDocument doc = new XmlDocument(); XmlElement ...
user642378's user avatar
0 votes
2 answers
7k views

I want to create an XML file to store information. I am using the following code. I would like to know how to specify the encoding for this file in code. When I try to read this file in another form ...
Pradeep Singh's user avatar
1 vote
3 answers
4k views

I wrote a program to crawl website to get data and output to a excel sheet. The program is written in C# using Microsoft Visual Studio 2010. For most of the time, I have no problem getting content ...
sora0419's user avatar
  • 2,378
2 votes
3 answers
935 views

After checking an Xps file i noticed that the string within the Xps file <> is converted to &lt;&gt; So is there any built-in function in the .Net framework that could do this job for ...
OrElse's user avatar
  • 10.1k
0 votes
3 answers
459 views

I'm trying to add the ASCII carriage return &#13; to the end of a string in an XmlNode's InnerText like this: XmlNode spanNode = doc.CreateElement("span"); spanNode.InnerText = "carriage return ...
sigil's user avatar
  • 9,622
0 votes
1 answer
199 views

In an application, I have to use a valid identity string as a value of a property. I mean the string should be a valid identity name in C#. For I want to use the string as a formula without change ...
Ying's user avatar
  • 61
0 votes
2 answers
52 views

I had a discussion with someone and could not come to a proper solution so I wanted to know how you guys think about this: I have a html form and the other guy call him 'Aron' has got a .net system. ...
Nuri Ensing's user avatar
  • 2,050
0 votes
1 answer
49 views

I got the codes below to encode XML content in String. It's working fine to encode a single tag, but not all the tags within. String a = @"<main>" + "<Title title=\"Hello & &...
Trowa's user avatar
  • 365