473,320 Members | 1,867 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,320 software developers and data experts.

XML Nodes

I apologize if this should be posted in ADO.net, but it
does have to do with XML.

I have a header table and a detail table that uses a
field called CountID for the parent child relationship.
I add the relationship to the dataset, and then write it
out as XML.

Here is the output I get:

<StoreItemExport>
<Count>
<StNum>100017</StNum>
<Cdate>2004-01-09T10:17:28.0000000-08:00</Cdate>
<OrdDate>2004-01-09T10:17:28.0000000-08:00</OrdDate>
<TemplateName>Hand Held Test 1</TemplateName>
<TemplateID>10001720030827141236</TemplateID>
<CountType />
<CountKey />
<Supplier>
<SupplierName>TDL</SupplierName>
<SupplierNum>063209</SupplierNum>
<ItemNo>01055</ItemNo>
<SupplierItemNo>01055</SupplierItemNo>
<ItemCat>1000</ItemCat>
<BTQ>4</BTQ>
<LocationID>1</LocationID>
</Supplier>
<Supplier>
<SupplierName>TDL</SupplierName>
<SupplierNum>063209</SupplierNum>
<ItemNo>01055</ItemNo>
<SupplierItemNo>01055</SupplierItemNo>
<ItemCat>1000</ItemCat>
<BTQ>4</BTQ>
<LocationID>2</LocationID>
</Supplier>
</Count>
</StoreItemExport>

I need the XML file to contain an "Item" node and
a "Location" node. The item data and Location data is in
the detail table. The detail table contains items that
are counted by the location they are in. Here is some
sample data:
Item Desc LocId LocName Qty
10000, "Paper", 1 Closet 1
I've tried to create more relationships using select
statement to retrieve the item number, and linking it to
my previous statement that gets the supplierId, but it
tells me that I have duplicate data. Can I do this using
only the 2 queries for header data and detail data?

Any other ways of doing this?

Thanks.

Darryl

Nov 12 '05 #1
0 787

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

Similar topics

4
by: alanrn | last post by:
I am using a TreeView to display the hierarchy of a strongly-typed collection (inherited from CollectionBase). The order of the nodes in the TreeView is strictly tied to the order in which they...
2
by: ThunderMusic | last post by:
Hi, while I'm searching into a treeview to find a specific node, I find the code duplicating treeview nodes I just can't figure out what's causing this behavior, maybe some of you already...
2
by: Greg | last post by:
Hi. I have a rather large xml document (object) that can have one or more nodes with a certain attribute throughout (at ANY depth, not at the same level necessarily). I need to find this...
3
by: LC | last post by:
Hello all, Ive been using the treeview and for testing purpose i have created 2 Parent Nodes and 5 child nodes within each parent node i.e.- CN = Child Node Parent Node - CN - CN - CN
3
by: juvi | last post by:
Hi, I have got a problem with Treeview.Nodes.Clear() under VB2005. When I have some nodes in my treeview and a force to clear() all nodes then it seems to work, because the nodes are not visible....
1
by: Christian Rühl | last post by:
hey! what i wanna do sounds very simple at first, but it turned out to be a real bone crusher... i want to check if a treeView node is checked and if a correspondent node in my xml config file...
1
by: Christian Rühl | last post by:
hey! what i wanna do sounds very simple at first, but it turned out to be a real bone crusher... i want to check if a treeView node is checked and if a correspondent node in my xml config file...
1
by: Daniel Rucareanu | last post by:
Hello, Does anybody knows how can you delete, in just one step, not using a loop, a subset of the child nodes of a given DOM parent node? The subset will be continous, so for example, if the...
4
by: reflex | last post by:
I have to get every node within range or selection? Is it possible? Sry for my engrish :] Ref
10
by: John Rogers | last post by:
This code only counts the parent nodes or rootnodes in a treeview, how do you count all the nodes in a treeview? // one way int NodeCounter = 0; foreach (TreeNode currentNode in...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.