crest dubua

crest dubua

  • NA
  • 19
  • 0

NODE conversion EASY please HELP

May 19 2008 2:39 PM

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)