Hi Group,
Can somebody tell me how can this be done.
Input XmlTextReader containing set of nodes like.
<SELECT>
<PARAMETERS>
<UID>14</UID>
<FLAG>True</FLAG>
</PARAMETERS>
<OUTPUT>
<USERNAME/>
<USERID/>
<USERPWD/>
</OUTPUT>
<SELECT>
NOW how can I generate XPATH query(by parsing above xmltextreader?????)
which fetches Records from a XMLDataDocument by using XPath and get a output
in xmltextreader format which contains only those element which is specified
in OUTPUT element of Input XmlTextReader like I just want ELEMENTS FROM
XMLDATADOCMENT WITH UID=14 AND FLAG=TRUE and only these subelements(can or
can't be all subelements).
<OUTPUT>
<USERNAME/>
<USERID/>
<USERPWD/>
</OUTPUT>
xmldatadocument may have syntax like
<ELEMENT>
<USERNAME/>
<USERID/>
<USERPWD/>
<USERMAILID/>------|
<USERADDRESS/>-----| N suppose I don't want these three element in output
on XPath Query?Can this be done? How ?
<USERCONTACTNO/>---|
</ELEMENT>
(which just fetches record like we can fetch from xmldatadocument.dataset by
specifying SELECT USERNAME, USERID, USERPWD WHERE UID = 14 AND FLAG
TRUE;)---I don't have to use this method as architechture specifies
everything has to be in xml.
Regards
Rohit Arora