Live from Redmond: WebCast Conquering XML with Visual Basic 9 Amanda Silver Lead Program Manager Visual Basic Level: Starts Easy, Finishes Advanced.

Slides:



Advertisements
Similar presentations
The Microsoft Technical Roadshow 2007 Language Enhancements and LINQ Daniel Moth Developer & Platform Group Microsoft Ltd
Advertisements

Language Integrated Query (LINQ) Martin Parry Developer & Platform Group Microsoft Ltd
Jacinto Limjap, Jr. Senior Software Design Engineer, Cormant Technologies Inc. LINQ for NHibernate { Easy OR Mapping with C# and Visual Studio 2008 }
Shyam Pather Development Manager Microsoft Session Code: DTL402.
DEV351 ADO.NET Performance Pablo Castro Program Manager – ADO.NET Team Microsoft Corporation.
DEV306 LINQ (Language Integrated Query)
Joshua Clark Consultant Sogeti USA Blog:
C# 3.0 & LINQ Raimond Brookman – IT Architect
Web Sites Testing with Visual Studio Team System Shai Raiten Sela Group
Building a Complete Web Application Using ASP.NET 3.5 & Visual Studio 2008 (Part 1 of 2) Jeff King Program Manager Microsoft Corporation
Visual Studio 2008 and ASP.NET 3.5 Mike Ormond Developer & Platform Group Microsoft Ltd
The Microsoft Technical Roadshow 2007 Advances for Data in VS “Orcas” Mike Taulty Developer & Platform Group Microsoft Ltd
What’s new for Rich Clients? Martin Parry Developer & Platform Group Microsoft Ltd
Discover, Master, InfluenceSlide 1 SQL Server Compact Edition and the Entity Framework Rob Sanders Readify.
Beth Massi Program Manager Visual Studio Community.
Future Directions for Leveraging Advanced XML Tools and Building Custom XML Solutions Denise Draper DAT321 Microsoft Corporation.
Paul Yuknewicz Lead Program Manager Microsoft Visual Basic DEV 319.
DAT304 Leveraging XML and HTTP with Sql Server Irwin Dolobowsky Program Manager Webdata Group.
SQL Server Developer Tools, Codename “Juneau” Database Services Sanjay Nagamangalam Principal Program Manager SQL Server Manageability.
CHARLES UNIVERSITY IN PRAGUE faculty of mathematics and physics LINQ to XML: A Brief Overview Pavel Ježek.
LINQ TO XML Mike Taulty Developer & Platform Group Microsoft UK
OFC335 Microsoft Office Word 2007 XML Programmability: True Data/View Separation and Rich Eventing for Custom XML Tristan Davis Program Manager Microsoft.
Introduction to LINQ Lecture # 19 August Introduction How do you interrogate/manipulate data? What if you could do the work in a type-safe," string-free.
OFC 308 Advanced Word XML: The WordML Schema and Bringing Everything Together Brian Jones Program Manager Authoring Services.
Лектор: Борислава Палева. Galin Iliev MCT, MCPD, MCSD.NET LINQ to XML.
Ronnie Saurenmann Principal Architect Microsoft Switzerland.
LINQ and C# 3.0 Mads Torgersen Program Manager for the C# Language Microsoft Corporation.
DAT 379 XML Today And Tomorrow Mark Fussell Lead Program Manager Microsoft Corporation.
LINQ: It’s Not Your Father’s Data Access Denny Boynton Anheuser-Busch Companies.
The.NET Language Integrated Query Project Anders Hejlsberg TLN306 Technical Fellow Microsoft Corporation.
Tony Goodhew Product Planner DEV328.
ADO.NET Entity Framework Mike Taulty Developer & Platform Group Microsoft Ltd
Name Microsoft Student Partner Overview of the Visual Studio 2005 Express Products.
AUC Technologies LINQ (Language Integrated Query) LINQ Presented By : SHAIKH SHARYAR JAVED Software Engineer (Daedalus Software Inc.) Technology Teacher.
Language Integrated Query (LINQ). Data Access Programming Challenges Developers must learn data store-specific query syntax Multiple, disparate data stores.
Applied Linq Putting Linq to work Introducing… Class-A Kennisprovider Microsoft development Training Coaching Alex Thissen Trainer/coach.
Satisfy Your Technical Curiosity C# 3.0 Raj Pai Group Program Manager Microsoft Corporation
Joel Pobar Language Geek Microsoft DEV320 Improve on C# % Backwards Compatible Language Integrated Query (LINQ)
LINQ Language Integrated Query LINQ1. LINQ: Why and what? Problem Many data sources: Relational databases, XML, in-memory data structures, objects, etc.
Ken Casada Developer Evangelist Microsoft Switzerland
Language Integrated Query Mike Taulty Developer & Platform Group Microsoft Ltd
InfoPath: Developing Forms Using Managed Code Dan Green Paradigm Logic CLI312.
Dynamic Languages Initiative Silverlight ASP.NET Web Services Summary.
Building Complete Web Application Using ASP.NET 3.5 & Visual Studio 2008 Omar Khan Group Program Manager Visual Studio.
Programmiersprache Entwickeln mit Visual Basic.NET?
Using Data in Microsoft Visual Studio 2005 Tools for the Microsoft Office System Mike Hernandez Product Manager Visual Studio Tools for Office.
Building Complete Web Application Using ASP.NET 3.5 & Visual Studio 2008 Omar Khan Group Program Manager Visual Studio.
Jon Fancey Enterprise Integration with Logic Apps
6/10/ :23 PM TOOL-504T A deep dive into Visual Studio 11 Express for designing Metro style apps using XAML Joanna Mason & Unni Ravindranathan Program.
Chris Menegay Sr. Consultant TECHSYS Business Solutions
6/26/2018 9:02 PM © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Avalon – Using Data In Your Applications
Visual Studio Tools for Office 2005
SQL Server Data Tools for Visual Studio Part I: Core SQL Server Tools
Azure API Management Jothi Prakash A
Jon Fancey Enterprise Integration with Logic Apps
ADO.NET Entity Framework Marcus Tillett
Language Integrated Query (LINQ)
Advances for Data in VS “Orcas”
Visual Studio 2005 Tools For Office: Creating A Multi-tier Application
Microsoft Connect /17/2019 9:55 PM
Build /23/2019 © 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
Advances for Data in VS “Orcas”
Microsoft Build /27/2019 2:26 PM © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY,
Технологии доступа к данным на платформе Microsoft.NET
ADO.NET Entity Framework
Windows Forms in Visual Studio 2005: An in-depth look at key features
Windows Forms in Visual Studio 2005: An Overview
9/8/ :03 PM © 2006 Microsoft Corporation. All rights reserved.
Contexualized Data In Document Authoring
Presentation transcript:

Live from Redmond: WebCast Conquering XML with Visual Basic 9 Amanda Silver Lead Program Manager Visual Basic Level: Starts Easy, Finishes Advanced

Visual Basic 9 Goals Simplify querying data –Integrate query and transform operations –Unify query of object, relational, and XML data Simplify working with XML –Impose structure on XML w/no schema –Produce XML documents quickly –Access XML members easily

Conquering XML (Agenda) Visual Basic 9 & the XML Data Type –XML Literals –XML Properties Explanation of the LINQ to XML API –Mapping the XML Data Type to the LINQ to XML API Using the XML data type in queries Writing an XML transform in VB Miscellaneous tips and tricks …Be the most productive when programming against XML

Language INtegrated Query (LINQ) LINQ enabled data sources LINQ To Objects Objects LINQ To XML XML LINQ enabled ADO.NET LINQ To Datasets LINQ To SQL LINQ To Entities Relational Others… VB C#.NET Language-Integrated Query

DEMO

Programming XML Today Dim doc As New XmlDocument() Dim contacts As XMLElement = doc.CreateElement("contacts") For Each cust in Customers If (cust.Country = "USA") Dim e As XMLElement = doc.CreateElement("contact") Dim name As XMLElement = doc.CreateElement("name") name.InnerText = c.CompanyName e.AppendChild(name) Dim phone As XMLElement = doc.CreateElement("phone") phone.InnerText = cust.Phone e.AppendChild(phone) contacts.AppendChild(e) End If Next doc.AppendChild(contacts) <contacts> Great Lakes Food Great Lakes Food (503) (503) …</contacts> Imperative model Document- centric No integrated queries Memory- intensive

LINQ to XML Dim contacts As New XElement("contacts", _ From cust in customers _ Where cust.Country = "USA“ _ Select New XElement("contact", _ New XElement("name", cust.CompanyName), _ New XElement("phone", cust.Phone) _ ) Declarative model Element- centric Integrated queries Smaller and faster

LINQ to XML Language integrated query for XML –Expressive power of XPath/Xquery –But with Visual Basic as your programming language! –No conceptual barrier between XML and code Leverages experience with DOM –Element-centric, not document-centric –Symmetry in element/attribute APIs –Functional construction –Text nodes are just strings –Simplified XML namespace support –Faster and smaller than DOM

DEMO

Integrated XML in Visual Basic Dim contacts = _ <%= _ From cust In customers _ Where cust.Country = "USA" _ Select _ %> Infers Xml.Linq XElementInfers Xml.Linq XElement No conceptual barrier WYSIWYG! Expression holes for computed values

XML Literals Shorthand for object creation Dim emp = _ Joe 28 Engineering Dim emp = _ New XElement("employee", _ New XElement("name", "Joe"), _ New XElement("age", 28), _ New XElement("department", _ New XElement("name", "Engineering"), _ New XAttribute("id", 432)))

DEMO

Element access covers all XML axes Dim employees As XElement = GetCurrentEmployeesByDept(“IT”) Dim deptID As Integer = employees.Attribute(“DeptID") Dim emp As XElement = employees.Descendents(“Employee")(0) Dim empDOB As Date = emp.Element(“DateOfBirth“).Value XML Element Access Dim employees As XElement = GetCurrentEmployeesByDept(“IT”) Dim deptID As Integer = Dim emp As XElement = employees… (0) Dim empDOB As Date = emp..Value Attributes Descendents Elements Nancy Davolio Nancy Davolio Sales Representative Sales Representative Andrew Fuller Andrew Fuller Vice President, Sales Vice President, Sales </Employees>

DEMO

Call to action Download Beta1! Join discussion on MSDN LINQ forum Blogosphere/Community: –VBDevCenter: –VB Team: –Paul Vick:

©2006 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS SUMMARY.