Need Simple way to access XML in VB.Net - Pain with Linq-to-Xml

Posted by aiart on Stack Overflow See other posts from Stack Overflow or by aiart
Published on 2010-04-23T03:53:53Z Indexed on 2010/04/23 4:03 UTC
Read the original article Hit count: 467

Filed under:
|
|
|

Dim myXDoc As XDocument = _

I want to access this in a simple way in VB.Net - Like:

Dim Integer SizeXStr = CInt(MyZDoc.Cameras(1).Camera_Desc.@SizeX) ' where (1) is an index

Why isn't this implemented in VB.Net? Better yet, type the values with a Schema and eliminate the conversion. Is this so hard?

How do I access, in a simple way, data in XML - this would be VERY VERY useful!

I have been using Query to try to get the values - when I use MsgBox() to display results, they display, but my main Windows Form is Trashed - changed colors, etc. The system has Bugs.

Instead, I have to create an elaborate structure of arrays of objects and read the XML line-by-line and do the same for saving - this is the dark ages.

Art

© Stack Overflow or respective owner

Related posts about vs2008

Related posts about vb.net