473,405 Members | 2,349 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Xml data and DataSets

Hi, i need a little help with an issue with Xml data imported to Datasets
I used the read XML and readSchema methods of the Dataset
the Structure of the XML is this
<?xml version="1.0" encoding="utf-8" ?><Data xmlns="http://tempuri.org/ServiceBeta2.xsd"><ServiceProviders><ServiceProvid er><Id>1</Id><MatchExpresion>LOC</MatchExpresion><NumericMatch>562</NumericMatch><IsParent>False</IsParent><NewtonServiceId>23</NewtonServiceId><Description>Noticias Nacionales</Description><ServiceCategory>Noticias</ServiceCategory><TargetContentProvider>Yagua</TargetContentProvider></ServiceProvider><ServiceProvider><Id>2</Id><MatchExpresion>INT</MatchExpresion><NumericMatch>468</NumericMatch><IsParent>False</IsParent><NewtonServiceId>23</NewtonServiceId><Description>Noticias Internacionales</Description><ServiceCategory>Noticias</ServiceCategory><TargetContentProvider>Yagua</TargetContentProvider></ServiceProvider></ServiceProviders><MssgParts ServiceId="1" TotalParts="1" Option="1"><Part Number="1" Default="" ExpectedValue="LOC">Header</Part><Part Number="2" Default="" ExpectedValue="">MessageType</Part><Part Number="3" Default="" ExpectedValue="">RequestType</Part></MssgParts><MssgParts ServiceId="1" TotalParts="1" Option="2"><Part Number="1" Default="" ExpectedValue="LOC">Header</Part><Part Number="2" Default="" ExpectedValue="TxT">MessageType</Part><Part Number="3" Default="" ExpectedValue="S">RequestType</Part></MssgParts><MssgParts ServiceId="2" TotalParts="3" Option="1"><Part Number="1" Default="" ExpectedValue="">Header</Part><Part Number="2" Default="" ExpectedValue="">MessageType</Part><Part Number="3" Default="" ExpectedValue="">RequestType</Part></MssgParts></Data

now it fills the dataset without problemes i use a dataview to see the results in a VB test App
The problem is that i need to access the Part elements Via the MssgParts Structure.In the datagrid I can Expand Each Item to see the Relation, and the if i Click It it brings the data correspond to each part
How can i do this Programatically. I tried

Sub Tes

Dim DataViewMssgParts As New DataView(MyParser.DataSetServices.Tables("MssgPart s")
Dim DataViewServiceProv As New DataView(MyParser.DataSetServices.Tables("ServiceP rovider")
Dim DataViewParts As New DataView(MyParser.DataSetServices.Tables("Part")

'--Get the datarelation between the 2 table
Dim MyDataRelation As DataRelation = MyParser.DataSetServices.Tables("MssgParts").Child Relations("Part"
Dim MyDataRow, MyChildRow As DataRow
'--Try to get the part data for each mssgparts element
For Each MyDataRow In MyParser.DataSetServices.Tables("MssgParts").Row
Dim ColChildRows() As DataRow = MyDataRow.GetChildRows(MyDataRelation
For Each MyChildRow In ColChildRow
'--Never got her
Me.Rtb_Check.AppendText(MyChildRow.Item(0) & "--" & MyChildRow.Item(1) & ControlChars.CrLf
Nex
Nex
End Su

If somebody has an idea about this i would really appreciate ur help
Thank
VJS
Jul 21 '05 #1
0 800

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Fabian Kr?ger | last post by:
Hello, I got a weird problem and need your help and ideas... I´ve written an php application which imports data in XML format and writes this data to a MySQL database to have a faster access....
16
by: D Witherspoon | last post by:
I am developing a Windows Forms application in VB.NET that will use .NET remoting to access the data tier classes. A very simple way I have come up with is by creating typed (.xsd) datasets. For...
3
by: Simon Harvey | last post by:
Hi, In my application I get lots of different sorts of information from databases. As such, a lot of information is stored in DataSets and DataTable objects. Up until now, I have been passing...
5
by: Kevin C | last post by:
I was curious to know what some developers out in the industry are doing when it comes to exposing Data access logic, specifically persistence. This is assuming that your not using an O/R framework...
5
by: amanatio | last post by:
I have a huge form with many data bound controls on it and 34 tables in database (and of course 34 data adapters and 34 datasets). The form is extremely slow to design (huge delay when I go to code...
1
by: Johann Blake | last post by:
I am looking for a good solution on how to implement data access in an application so that there is a clean separation between the data access layer, the business layer and the GUI layer. I am...
0
by: Alexis | last post by:
Hello, I am working on an application that usues lookup data. I loaded that Data as Datasets on the Application Object. The webservices calls a dll that handles the business rules. This dll is...
0
by: Michael | last post by:
Okay, maybe I am missing something. I created a dataset through VS2005 data manager. The set includes tables with child relationships. The tables and the relationships are included in the dataset....
3
by: Shawn Ramirez | last post by:
As with most web applications speed is a huge deal to me in my applications. My customers don't really care if my app is a true 3 tier application or not, they just want it to be faster then it was...
4
by: Infog | last post by:
I think I've somehow missed a basic design principle for storing data from databases. What is the "correct" way to store data that your whole application needs access to, regardless of which forms...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.