V
VTOcin
Hello,
I created an XML file using the DataTable.WriteXML with the follwing
format:
Dim ACES_FLIGHT_SCHEDULE As New DataTable("ACES_FLIGHT_SCHEDULE")
'Add columns to the ACES FLight Schedule Table
ACES_FLIGHT_SCHEDULE.Columns.Add("Origin_Airport_ID",
Type.GetType("System.String"))
ACES_FLIGHT_SCHEDULE.Columns.Add("Destination_Airport_ID",
Type.GetType("System.String"))
ACES_FLIGHT_SCHEDULE.Columns.Add("Aircraft_Type",
Type.GetType("System.String"))
ACES_FLIGHT_SCHEDULE.Columns.Add("Departure_Time",
Type.GetType("System.String"))
ACES_FLIGHT_SCHEDULE.Columns.Add("Flight_Served",
Type.GetType("System.String"))
Then I read in the XML file with DataTable.ReadXML as follows:
Dim ACES_FLIGHT_SCHEDULE As New DataTable("ACES_FLIGHT_SCHEDULE")
ACES_FLIGHT_SCHEDULE.ReadXml("XMLTableName.xml")
However, when I perform the count it return an error: "Cannot find
field "Origin_Airport_ID":
Dim Origin_Airports As New DataTable
Origin_Airports.Columns.Add("Origin Airport ID").Expression =
"Count(Child(ACES_FLIGHT_SCHEDULE).Origin_Airport_ID)"
Any ideas ?
Thanks,
Nick,
I created an XML file using the DataTable.WriteXML with the follwing
format:
Dim ACES_FLIGHT_SCHEDULE As New DataTable("ACES_FLIGHT_SCHEDULE")
'Add columns to the ACES FLight Schedule Table
ACES_FLIGHT_SCHEDULE.Columns.Add("Origin_Airport_ID",
Type.GetType("System.String"))
ACES_FLIGHT_SCHEDULE.Columns.Add("Destination_Airport_ID",
Type.GetType("System.String"))
ACES_FLIGHT_SCHEDULE.Columns.Add("Aircraft_Type",
Type.GetType("System.String"))
ACES_FLIGHT_SCHEDULE.Columns.Add("Departure_Time",
Type.GetType("System.String"))
ACES_FLIGHT_SCHEDULE.Columns.Add("Flight_Served",
Type.GetType("System.String"))
Then I read in the XML file with DataTable.ReadXML as follows:
Dim ACES_FLIGHT_SCHEDULE As New DataTable("ACES_FLIGHT_SCHEDULE")
ACES_FLIGHT_SCHEDULE.ReadXml("XMLTableName.xml")
However, when I perform the count it return an error: "Cannot find
field "Origin_Airport_ID":
Dim Origin_Airports As New DataTable
Origin_Airports.Columns.Add("Origin Airport ID").Expression =
"Count(Child(ACES_FLIGHT_SCHEDULE).Origin_Airport_ID)"
Any ideas ?
Thanks,
Nick,