944,126 Members | Top Members by Rank

Ad:
  • VB.NET Discussion Thread
  • Unsolved
  • Views: 2536
  • VB.NET RSS
Apr 25th, 2007
0

Check Whether The Next Attribute Is Exists Or Not?

Expand Post »
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
Similar Threads
Reputation Points: 10
Solved Threads: 0
Light Poster
karan_21584 is offline Offline
32 posts
since Mar 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in VB.NET Forum Timeline: Open Excel Sheet in Vb.net
Next Thread in VB.NET Forum Timeline: Adding a column to an SQL database





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC