EDN Admin
Well-known member
Hi to ML.
Ive this xml file:
<?xml version="1.0" encoding="utf-8" ?> <br/>
<partsmanagement count="3" length-unit="mm" type="EAN.PartsManagement" build="109" database="EAN_part001.mdb
<br/>
<Oggetti> <br/>
<Obj CType="QF" Prog="1" A_IT="AUT01" /> <br/>
<Obj Ctype="AF" Prog="2" A_IT="AUT05" /> <br/>
<Obj Ctype="AH" Prog="3" A_IT="AUT11" /> <br/>
</Oggetti> <br/>
</partsmanagement>
Also the class VB :
Public Class partmanagement<br/>
Public RecordCounter As Integer<br/>
Public LengthUnit As String<br/>
Public ArticleType As String<br/>
Public DatabaseBuild As String<br/>
Public DatabaseLocation As String<br/>
End Class
I wont to popolate the class with a select linq query like this:
Dim attList As IEnumerable(Of XAttribute) = From at In doc...<partsmanagement>.Attributes()<br/>
Select New partmanagement With {.RecordCounter = CInt( mailto:spec.@count spec.@count ),<br/>
.LengthUnit = mailto:spec.@lenghtunit spec.@lenghtunit ,<br/>
.ArticleType = mailto:spec.@type spec.@type ,<br/>
.DatabaseBuild = mailto:spec.@build spec.@build ,<br/>
.DatabaseLocation = mailto:spec.@database spec.@database }
but Ive some conversion errors....
Theres someone knows how to solve the problem?
<div id="x_tRes" style="display:block Thanks to all.
View the full article
Ive this xml file:
<?xml version="1.0" encoding="utf-8" ?> <br/>
<partsmanagement count="3" length-unit="mm" type="EAN.PartsManagement" build="109" database="EAN_part001.mdb
<br/>
<Oggetti> <br/>
<Obj CType="QF" Prog="1" A_IT="AUT01" /> <br/>
<Obj Ctype="AF" Prog="2" A_IT="AUT05" /> <br/>
<Obj Ctype="AH" Prog="3" A_IT="AUT11" /> <br/>
</Oggetti> <br/>
</partsmanagement>
Also the class VB :
Public Class partmanagement<br/>
Public RecordCounter As Integer<br/>
Public LengthUnit As String<br/>
Public ArticleType As String<br/>
Public DatabaseBuild As String<br/>
Public DatabaseLocation As String<br/>
End Class
I wont to popolate the class with a select linq query like this:
Dim attList As IEnumerable(Of XAttribute) = From at In doc...<partsmanagement>.Attributes()<br/>
Select New partmanagement With {.RecordCounter = CInt( mailto:spec.@count spec.@count ),<br/>
.LengthUnit = mailto:spec.@lenghtunit spec.@lenghtunit ,<br/>
.ArticleType = mailto:spec.@type spec.@type ,<br/>
.DatabaseBuild = mailto:spec.@build spec.@build ,<br/>
.DatabaseLocation = mailto:spec.@database spec.@database }
but Ive some conversion errors....
Theres someone knows how to solve the problem?
<div id="x_tRes" style="display:block Thanks to all.
View the full article