Browse by Tags

All Tags » Xml (RSS)
If you are using XML in a WinForms application you may find the need to display the XML data in a DataGridView. Let's take this XML: <states>     <state name="California">        ...
There are many different types of text files that you may need to process in your applications. Some of the more common types are described in this post. Delimited files Delimited files separate the fields of the file with some type of a delimiter. The...
6 comment(s)
Filed under: , , , , ,
I have an XML string as follows: <States>   <State name="Wisconsin">     <Regions>       <Region name="Milwaukee">         <Area...
3 comment(s)
Filed under: , , , , , ,
This post describes how to populate a WinForms TreeView control from an XML file assuming you are targeting the .NET Framework Version 3.5. The XML file used in this example looks like this: <States>   <State name="California">...
9 comment(s)
Filed under: , , , , ,
In a prior post here , I created an XML file using VB 9 (Visual Basic 2008/.NET Framework 3.5). This post demonstrates how to read that file and reconstitute the list of customers. This code reads the XML into an XElement: Dim customerXml As XElement...
with no comments
Filed under: , ,
You have probably heard that the next version of VB will no longer require line continuation characters in most situations. This is very good news for those of us that do not like typing underscore characters. But in the mean time, what do we do if we...
2 comment(s)
Filed under: , ,
One of my favorite features in VB 9 (Visual Studio 2008) is XML Literals. This example demonstrates how insanely easy it is to build an XML file using VB. This code builds XML from a list of customers. Dim customerXml As XElement = _ <customers>...
6 comment(s)
Filed under: , , ,