|
 |
aspx thread: xmlnodereader
Message #1 by "Rohit Arora" <rohit_arora@i...> on Wed, 29 Jan 2003 20:09:21 +0530
|
|
Hi group,
How can I do this.
I have xmlNodeList with structure suppose
<a>
<abc> fdvfd</abc>
<ab>fdvdf </ab>
<abcd>vdff </abcd>
</a>
and I just want
<a>
<abc> fdvfd</abc>
<abcd>vdff </abcd>
</a>
I mean to say a node with fewer child elements.
N then hv to write this in an xmlreader object.
Regards
Rohit Arora
Message #2 by "Tony Arslan" <tarslan@n...> on Thu, 30 Jan 2003 08:19:31 -0600
|
|
Rohit,
xmlNodeReader is forward only. You'll have to read the nodes, pick the
appropriate nodes then write it to a different string.
I hope this helps. Good luck
Tony Arslan
-----Original Message-----
From: ASP.NET digest [mailto:aspx@p...]
Sent: Wednesday, January 29, 2003 6:03 PM
To: aspx digest recipients
Subject: aspx digest: January 29, 2003
-----------------------------------------------
When replying to the digest, please quote only
relevant material, and edit the subject line to
reflect the message you are replying to.
-----------------------------------------------
The URL for this list is: http://p2p.wrox.com/list.asp?list=3Daspx
ASPX Digest for Wednesday, January 29, 2003.
1. Using a Webb Usercontrol in an aspx page
2. ??XMLTextReader..XPath...XMLDataDocument...XMLTextReader??
3. Number of child nodes ?
4. xmlnodereader
----------------------------------------------------------------------
Subject: Using a Webb Usercontrol in an aspx page
From: "Ganesh Ramamurthy" <r_ganesh76@h...>
Date: Wed, 29 Jan 2003 05:21:27
X-Message-Number: 1
Dear all,
I have created a user control (MyControl.ascx) and am using it in an
aspx
page. I have more than one instance (MyControl1, MyControl2, MyControl3)
of the control in the page. In the aspx.cs, I have created a prtected
variables of the class MyControl (MyControl1, MyControl2, MyControl3)for
each control which i placed in the page. I am setting the values of some
properties inside the web control.
But, I find that only the last assigned values of the properties are
contained in all the three objects. I need to get different values for
the
different controls. How can I achieve this.
Please help......
Regards
Ganesh
----------------------------------------------------------------------
Subject: ??XMLTextReader..XPath...XMLDataDocument...XMLTextReader??
From: "Rohit Arora" <rohit_arora@i...>
Date: Wed, 29 Jan 2003 12:37:53 +0530
X-Message-Number: 2
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=3D14 AND FLAG=3DTRUE 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 =3D 14 AND FLAG=3D
TRUE;)---I don't have to use this method as architechture specifies
everything has to be in xml.
Regards
Rohit Arora
----------------------------------------------------------------------
Subject: Number of child nodes ?
From: "Rohit Arora" <rohit_arora@i...>
Date: Wed, 29 Jan 2003 17:36:23 +0530
X-Message-Number: 3
Hi Group,
In xmlTextReader how can i find that how much child nodes does this node
have. like <a>
<b/> --empty element
<c/> --empty element
<d/> --empty element
<a>
how can i get childnodes =3D 3.
Regards
Rohit Arora
----------------------------------------------------------------------
Subject: xmlnodereader
From: "Rohit Arora" <rohit_arora@i...>
Date: Wed, 29 Jan 2003 20:09:21 +0530
X-Message-Number: 4
Hi group,
How can I do this.
I have xmlNodeList with structure suppose
<a>
<abc> fdvfd</abc>
<ab>fdvdf </ab>
<abcd>vdff </abcd>
</a>
and I just want
<a>
<abc> fdvfd</abc>
<abcd>vdff </abcd>
</a>
I mean to say a node with fewer child elements.
N then hv to write this in an xmlreader object.
Regards
Rohit Arora
---
END OF DIGEST
|
|
 |