Click here to Skip to main content
15,895,011 members
Home / Discussions / C#
   

C#

 
GeneralRe: the offset is calculated by byte or by double bytes? Pin
Heath Stewart27-Oct-04 20:58
protectorHeath Stewart27-Oct-04 20:58 
GeneralRe: the offset is calculated by byte or by double bytes? Pin
momer27-Oct-04 21:30
momer27-Oct-04 21:30 
GeneralRe: the offset is calculated by byte or by double bytes? Pin
Heath Stewart27-Oct-04 21:41
protectorHeath Stewart27-Oct-04 21:41 
GeneralRe: the offset is calculated by byte or by double bytes? Pin
momer27-Oct-04 21:51
momer27-Oct-04 21:51 
GeneralRe:Stewart Pin
momer27-Oct-04 21:51
momer27-Oct-04 21:51 
AnswerRe: the offset is calculated by byte or by double bytes? Pin
Heath Stewart27-Oct-04 21:56
protectorHeath Stewart27-Oct-04 21:56 
GeneralXML Elements with escape characters in their names Pin
Guillermo Jimenez27-Oct-04 16:53
Guillermo Jimenez27-Oct-04 16:53 
GeneralRe: XML Elements with escape characters in their names Pin
Nick Parker27-Oct-04 17:50
protectorNick Parker27-Oct-04 17:50 
And that is what it should do. Not every value is valid within XML, such as the hash sign (#). It is automatically encoding the correct value for you. There is a class within the System.Xml namespace called XmlConvert that also allows you programmatic access (via static methods) to this encoding and decoding process. Here is a quick example.

private void button1_Click(object sender, System.EventArgs e)
{
    string val = "Product#";
    string encoded = XmlConvert.EncodeName(val);
    MessageBox.Show(encoded);
    string decoded = XmlConvert.DecodeName(encoded);
    MessageBox.Show(decoded);
}


- Nick Parker
My Blog | My Articles

GeneralRe: XML Elements with escape characters in their names Pin
Guillermo Jimenez27-Oct-04 18:11
Guillermo Jimenez27-Oct-04 18:11 
GeneralRe: XML Elements with escape characters in their names Pin
Heath Stewart27-Oct-04 20:57
protectorHeath Stewart27-Oct-04 20:57 
GeneralColor shading like the Windows Media Player v10 Pin
Tony D. Abel27-Oct-04 15:57
Tony D. Abel27-Oct-04 15:57 
GeneralRe: Color shading like the Windows Media Player v10 Pin
Nick Parker27-Oct-04 17:53
protectorNick Parker27-Oct-04 17:53 
GeneralDataSet designer Pin
Corneliu Tusnea27-Oct-04 13:51
Corneliu Tusnea27-Oct-04 13:51 
GeneralRe: DataSet designer Pin
sreejith ss nair27-Oct-04 18:35
sreejith ss nair27-Oct-04 18:35 
GeneralRe: DataSet designer Pin
Corneliu Tusnea27-Oct-04 19:48
Corneliu Tusnea27-Oct-04 19:48 
Questionwhat's your number? Pin
Sled Dog27-Oct-04 11:54
Sled Dog27-Oct-04 11:54 
QuestionProtection level ? Pin
wtdoor196527-Oct-04 10:13
wtdoor196527-Oct-04 10:13 
AnswerRe: Protection level ? Pin
Christian Graus27-Oct-04 10:16
protectorChristian Graus27-Oct-04 10:16 
AnswerRe: Protection level ? Pin
sreejith ss nair27-Oct-04 18:19
sreejith ss nair27-Oct-04 18:19 
GeneralRe: Protection level ? Pin
Heath Stewart27-Oct-04 21:02
protectorHeath Stewart27-Oct-04 21:02 
GeneralGet the IP from HttpWebRequest Pin
Justin Garrick27-Oct-04 10:09
Justin Garrick27-Oct-04 10:09 
GeneralRe: Get the IP from HttpWebRequest Pin
Justin Garrick27-Oct-04 15:43
Justin Garrick27-Oct-04 15:43 
GeneralRe: Get the IP from HttpWebRequest Pin
Nick Parker27-Oct-04 17:12
protectorNick Parker27-Oct-04 17:12 
GeneralRe: Get the IP from HttpWebRequest Pin
Heath Stewart27-Oct-04 21:07
protectorHeath Stewart27-Oct-04 21:07 
QuestionC# on Linux...?!? Pin
QzRz27-Oct-04 7:24
QzRz27-Oct-04 7:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.