Check Whether The Next Attribute Is Exists Or Not?

Please support our VB.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Mar 2007
Posts: 32
Reputation: karan_21584 is an unknown quantity at this point 
Solved Threads: 0
karan_21584 karan_21584 is offline Offline
Light Poster

Check Whether The Next Attribute Is Exists Or Not?

 
0
  #1
Apr 25th, 2007
in vb.net, how to check whether the attribute is existing or not... that is.......... i have an xml file and the content is as.....

<xs:element name="name" type="xs:string" minOccurs="0"/>
<xs:element name="sample">

my coding line is : "ans=xmlnode(k).Attributes.Item(1).Value"
when reading the above coding, the error "object reference not set to an istance of an object" is occuring....

HOW TO CHECK WHETHER THE NEXT ATTRIBUTE IS EXISTS OR NOT?
help me......thanks in advance
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the VB.NET Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC