Query « XML LINQ « VB.Net
Windows Presentation Foundation
Build a query to join the two XML trees on the employee's Id.
Build an element with a query
Loop through all the Employee nodes and insert the new 'TerminationDate' node and the 'Status' attribute
Loop through all the HourlyRate elements, setting them to the new payrate, which is the old rate * 5%.
Loop through all of the Employee elements and remove the HireDate element.
Loop through a node in Xml document
Query Xml document by Node value
Query for all of the employees that make (HourlyRate) more than $100 an hour
Query the XML Tree and get the Name and Hourly Rate elements.
Use LINQ to get the tasks for each employee and order them by the employee's name.
Using For Each to loop through the result of Xml query
Display the employee names and their hourly rate
Display the employee names and their new hourly rate.
Execute the query and loop through the results, displaying the Information to the screen.
Creating new Xml element in the query
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.