C
C# newbie
Hi,
How can I find out a node into an xml file contains text information or not
?
thanks
How can I find out a node into an xml file contains text information or not
?
thanks
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
C# newbie said:How can I find out a node into an xml file contains text information
or not ?
C# newbie said:My xml contains :
<first-name>Benjamin</first-name> as you see it's not
<first-name>"Benjamin"</first-name>
so the solution you passed it's not working for it. Any suggestions ?
Jon Skeet said:Why do you think that quotes within the text node would make any
difference?
C# newbie said:I didn't know that. so they're same !
Andreas Håkansson said:Newbie,
I think what Jon was telling is that you do not have to put Benjamin in
double quotes ("") to make it a string in xml, since the who file is already
a textfile. So Benjamin and "Benjamin" are not the same string just as
much Andreas and Benjamin are different strings.
HTH,
//Andreas
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.