-----------------------------------------------------------
New Message on BDOTNET
-----------------------------------------------------------
From: karunreddi
Message 10 in Discussion
you can easily search for particular
element in xml file using the following code
Dim doc As
XmlDocument = New XmlDocument()
doc.Load(filename)
Dim el As
XmlNodeList = doc.GetElementsByTagName("att1")
Dim i As
Integer
For i = 0 To el.Count - 1
If el(i).Attributes("att1").Value = keyValue Then
sTmp = el(i).Attributes("att2").Value
Exit For
End If
Next i
Rgds
Karun
-----Original Message-----
From: BDOTNET
[mailto:[EMAIL PROTECTED]
Sent: Friday, January 16, 2004 10:29
AM
To: BDOTNET
Subject:
XMLReader
New Message on BDOTNET
XMLReader
Reply
Recommend
Message 1 in
Discussion
From: Ambrose
Hi
All,
I am
using the XMLReader to read the XML from the Stored Procedure he
is sending the data like below
<Tag att1="val1"
att2="val2"></Tag>
<Tag att1="val1"
att2="val2"></Tag>
<Tag att1="val1"
att2="val2"></Tag>
<Tag att1="val1"
att2="val2"></Tag>
I
have tried with read Method it is returning true if there is
record but error if there is no record. How can i check that.
Any Other way or best way to read the XMLReader. If the XML is
not having the root element will not create any
problem?
Thanks
Anandraj.A.
View other groups in this
category.
DISCLAIMER:
This message (including attachment if any) is confidential and may be privileged.
Before opening attachments please check them for viruses and defects. MindTree
Consulting Private Limited (MindTree) will not be responsible for any viruses or
defects or any forwarded attachments emanating either from within MindTree or outside.
If you have received this message by mistake please notify the sender by return
e-mail and delete this message from your system. Any unauthorized use or dissemination
of this message in whole or in part is strictly prohibited. Please note that e-mails
are susceptible to change and MindTree shall not be liable for any improper, untimely
or incomplete transmission.
-----------------------------------------------------------
To stop getting this e-mail, or change how often it arrives, go to your E-mail
Settings.
http://groups.msn.com/BDOTNET/_emailsettings.msnw
Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help
For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact
If you do not want to receive future e-mail from this MSN group, or if you received
this message by mistake, please click the "Remove" link below. On the pre-addressed
e-mail message that opens, simply click "Send". Your e-mail address will be deleted
from this group's mailing list.
mailto:[EMAIL PROTECTED]