Click here to Skip to main content
15,900,378 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to encrypt an image file ? Pin
Colin Angus Mackay13-Dec-06 23:24
Colin Angus Mackay13-Dec-06 23:24 
QuestionSql Connection testing Pin
TheKrazyNomaD13-Dec-06 23:04
TheKrazyNomaD13-Dec-06 23:04 
AnswerRe: Sql Connection testing Pin
althamda13-Dec-06 23:08
althamda13-Dec-06 23:08 
GeneralRe: Sql Connection testing Pin
TheKrazyNomaD13-Dec-06 23:17
TheKrazyNomaD13-Dec-06 23:17 
GeneralRe: Sql Connection testing Pin
Colin Angus Mackay13-Dec-06 23:21
Colin Angus Mackay13-Dec-06 23:21 
AnswerRe: Sql Connection testing Pin
Colin Angus Mackay13-Dec-06 23:20
Colin Angus Mackay13-Dec-06 23:20 
AnswerRe: Sql Connection testing Pin
Pete O'Hanlon14-Dec-06 0:23
mvePete O'Hanlon14-Dec-06 0:23 
QuestionSpecial characters in XML properties Pin
yonidebest13-Dec-06 22:56
yonidebest13-Dec-06 22:56 
I have an XML with non-english characters in the property name. My XML is something like this:

<?xml version="1.0" encoding="ISO-8859-1"?>
<file>
<city name="New York">
<population>10,000,000</population>
</city>
</file>

Now, instead of "New York", I have "&#1504;&#1497;&#1493; &#1497;&#1493;&#1512;&#1511;", which is NY in Hebrew. Unfortunately, I cannot change this, and the problem is that the code won't recognize it. The code:

XmlDocument doc = new XmlDocument();
doc.Load("C:\pop.xml");
XmlNode xml = doc.DocumentElement;
string pop = xml.SelectSingleNode("/file/city[@name='" + cityName + "']/pop").InnerText;

Where cityName is New York in Hebrew. I tried changing the NY in all places to English - and the code worked, so I guess it's the Hebrew that is doing the problem.

Any idea how I can resolve this?

Thanks,
Yoni

AnswerRe: Special characters in XML properties Pin
Michael Dunn14-Dec-06 0:06
sitebuilderMichael Dunn14-Dec-06 0:06 
GeneralRe: Special characters in XML properties Pin
yonidebest14-Dec-06 9:09
yonidebest14-Dec-06 9:09 
GeneralRe: Special characters in XML properties Pin
lmoelleb14-Dec-06 21:06
lmoelleb14-Dec-06 21:06 
Questionassociation rule mining Pin
pardis13-Dec-06 22:54
pardis13-Dec-06 22:54 
AnswerRe: association rule mining Pin
Pete O'Hanlon14-Dec-06 0:26
mvePete O'Hanlon14-Dec-06 0:26 
AnswerRe: association rule mining Pin
Pete O'Hanlon14-Dec-06 0:27
mvePete O'Hanlon14-Dec-06 0:27 
QuestionInvoke a controls property Pin
anderslundsgard13-Dec-06 22:48
anderslundsgard13-Dec-06 22:48 
AnswerRe: Invoke a controls property Pin
leppie14-Dec-06 2:04
leppie14-Dec-06 2:04 
GeneralRe: Invoke a controls property Pin
anderslundsgard14-Dec-06 2:25
anderslundsgard14-Dec-06 2:25 
GeneralRe: Invoke a controls property Pin
Eric Dahlvang14-Dec-06 5:43
Eric Dahlvang14-Dec-06 5:43 
QuestionCalling an executable from Internet Explorer as a script? Pin
ghost120713-Dec-06 22:33
ghost120713-Dec-06 22:33 
AnswerRe: Calling an executable from Internet Explorer as a script? Pin
SpartanSoft14-Dec-06 8:52
SpartanSoft14-Dec-06 8:52 
GeneralRe: Calling an executable from Internet Explorer as a script? Pin
ghost120714-Dec-06 20:43
ghost120714-Dec-06 20:43 
GeneralRe: Calling an executable from Internet Explorer as a script? Pin
ghost120718-Dec-06 2:40
ghost120718-Dec-06 2:40 
Questionprblm connecting to database Pin
Osama12313-Dec-06 21:04
Osama12313-Dec-06 21:04 
AnswerRe: prblm connecting to database Pin
chravisankar13-Dec-06 21:10
chravisankar13-Dec-06 21:10 
AnswerRe: prblm connecting to database Pin
jdkulkarni13-Dec-06 21:50
jdkulkarni13-Dec-06 21:50 

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.