2
Answers

NODE conversion EASY please HELP

Ask a question
crest dubua

crest dubua

16y
2.6k
1

Can you correct this code so that I can convert a  node of XML into Text ?

instance to convert.

int I;

string strNODE;

XmlTextReader XTR = new XmlTextReader("D:\\BOTOLA_MyDocument_Projects\\My Documents\\Visual Studio 2005\\Projects\\cs_XML_World\\WA_XML\\JO.xml");

if (XTR.NodeType = XmlNodeType.Element || XTR.NodeType = XmlNodeType.Text).........etc

It says :

Error 1 Operator '||' cannot be applied to operands of type 'System.Xml.XmlNodeType' and 'System.Xml.XmlNodeType' 

It appears "you cannot use operand || to connect string and XmlNodeType.

 

 

HELP.   Conversion Help !

PLEASE

 

Thanks

 


Answers (2)