Skip to Main Content
Mastering Microsoft® Visual Basic® 2010
book

Mastering Microsoft® Visual Basic® 2010

by Evangelos Petroutsos
April 2010
Beginner content levelBeginner
1056 pages
31h 5m
English
Sybex
Content preview from Mastering Microsoft® Visual Basic® 2010

Chapter 13. XML in Modern Programming

XML has gained so much in popularity and acceptance that Microsoft has decided to promote XML to a basic data type. Yes, XML is a data type like integers and strings! To understand how far VB has taken XML, type the following in a procedure or event handler:

Dim products = <Books>
<Book ISBN="0000000000001">
  <Title>Book Title 1</Title>
  <Price>11.95</Price>
 </Book>
 <Book ISBN="000000000002">
    <Title>Book Title 2</Title>
    <Price>10.25</Price>
  </Book>
 </Books>

You need not worry too much about getting the document exactly right, because the Visual Studio's editor works just like the XML editor. Every time you type an opening tag, it inserts the matching closing tag and ensures that what you're typing is a valid XML ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Visual Basic® 2010 Unleashed

Visual Basic® 2010 Unleashed

Alessandro Del Sole
Beginning Microsoft® Visual Basic® 2008

Beginning Microsoft® Visual Basic® 2008

Thearon Willis, Bryan Newsome

Publisher Resources

ISBN: 9780470532874Purchase book