using 'XPathNodeIterator' for selecting nodes.
is it possible to do bitand operation or similar functionality in xpath
XmlDocument XmlDoc = new XmlDocument();
XmlDoc.LoadXml(xmlstring);
string strXpth="//ROOT/C[@A=0]"//this works
can I do bitad operation or similar here .. something like
string strXpth="//ROOT/C[@A=0 and BITAND(@B,14)>0]"
XPathNavigator XpNav = XmlData.CreateNavigator();
XPathExpression xPathExp = XpNav .Compile(strXpth)// can this strXpth can
have bitand operation
XPathNodeIterator XpNdI = XpNav.Select(xPathExp);
thnks in advance,
Praveen
Praveen,
Unfortunately, they do not. You will have to process this outside of
XPath (or, you can translate the bit sequence into another XML instance
which has them exposed as boolean values, which you can then craft an
appropriate XPath expression for).

Signature
- Nicholas Paldino [.NET/C# MVP]
- mvp@spam.guard.caspershouse.com
> using 'XPathNodeIterator' for selecting nodes.
> is it possible to do bitand operation or similar functionality in xpath
[quoted text clipped - 14 lines]
> thnks in advance,
> Praveen
Praveen - 19 Jan 2008 12:14 GMT
> Praveen,
>
> Unfortunately, they do not. You will have to process this outside of
> XPath (or, you can translate the bit sequence into another XML instance
> which has them exposed as boolean values, which you can then craft an
> appropriate XPath expression for).
thanks Nicholas,
I figured out a way to accomplish this by using
Ref: http://support.microsoft.com/kb/324462
http://msdn.microsoft.com/msdnmag/issues/03/02/XMLFiles/
praveen
> "Praveen" <praveen@newsgroup.nospam> wrote in message
> news:%23TvCF$UWIHA.1532@TK2MSFTNGP04.phx.gbl...
>> using 'XPathNodeIterator' for selecting nodes.
[quoted text clipped - 15 lines]
>> thnks in advance,
>> Praveen