TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
John
NA
3
0
Linq nullReferenceException problem
Dec 21 2008 9:26 AM
Here's my code:
Dim strURLSearch As String
strURLSearch = "http://isbndb.com/api/books.xml"
strURLSearch = strURLSearch & "?access_key=CYGCL3GT"
strURLSearch = strURLSearch & "&index1=isbn&value1=" & Me.txtISBN.Text
Dim xResults As XElement = XElement.Load(strURLSearch)
Dim books = From BookData In xResults.Descendants("BookData") Select Title = BookData.Element("Title").Value, Author = BookData.Element("AuthorText").Value, Publisher = BookData.Element("PublisherText").Value
For Each BookData In books
Me.txtResults.Text = Me.txtResults.Text & BookData.Author & vbCrLf
Next
On the For Each loop, I'm getting a NullReferenceException error
Reply
Answers (
1
)
How to save/get information in xml format from vb.net to sql server