473,486 Members | 2,394 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

XML Nested List from Cascading Relations

CAM
Hi,

Does anyone know a simple way to create an .xml file containing a nested
list from a set of cascading relations.

In other words if I have tables for Catalogue, Section, Page, Product.

The output would be

Catalogue
Section
Page
Product
Product
Page
Product
Section
Page
Product
Catalogue

Thanks in anticipation

Craig
Nov 12 '05 #1
3 3461
CAM wrote:
Hi,

Does anyone know a simple way to create an .xml file containing a nested
list from a set of cascading relations.

In other words if I have tables for Catalogue, Section, Page, Product.

The output would be

Catalogue
Section
Page
Product
Product
Page
Product
Section
Page
Product
Catalogue


In Access XP you can export a query in XML format. The result will be 4
files (.htm, .xml, .xsd, .xsl).

--
MGFoster:::mgf00 <at> earthlink <decimal-point> net
Oakland, CA (USA)

Nov 12 '05 #2
CAM wrote:
Hi,

Does anyone know a simple way to create an .xml file containing a nested
list from a set of cascading relations.

In other words if I have tables for Catalogue, Section, Page, Product.

The output would be

Catalogue
Section
Page
Product
Product
Page
Product
Section
Page
Product
Catalogue


In Access XP you can export a query in XML format. The result will be 4
files (.htm, .xml, .xsd, .xsl).

--
MGFoster:::mgf00 <at> earthlink <decimal-point> net
Oakland, CA (USA)

Nov 12 '05 #3
DFS
CAM,

You can write a few lines of VBA code to output the data in .xml format.

Set rs = db.openRecordset("SELECT Catalogue FROM Catalogues;")
do until rs.eof
xmlStr = xmlStr & "<Catalogue>" & rs("Catalogue") & "</Catalogue>" & vbcrlf

set rs1 = db.OpenRecordset("SELECT DISTINCT Section FROM Sections WHERE
Catalogue = " & rs("Catalogue") & ";")
do until rs1.eof
xmlStr = xmlStr & "<Section>" & rs("Section") & "</Section>" & vbcrlf

set rs2 = db.OpenRecordset("SELECT Page FROM Pages WHERE Catalogue = " &
rs("Catalogue") & " and Section = '" & rs1("Section") & "';")
do until rs2.eof
xmlStr = xmlStr & "<Page>" & rs2("Page") & "</Page>" & vbcrlf

etc.
etc.
etc


"CAM" <CA*@NOCONTACT.COM> wrote in message
news:40********@mk-nntp-2.news.uk.tiscali.com...
Hi,

Does anyone know a simple way to create an .xml file containing a nested
list from a set of cascading relations.

In other words if I have tables for Catalogue, Section, Page, Product.

The output would be

Catalogue
Section
Page
Product
Product
Page
Product
Section
Page
Product
Catalogue

Thanks in anticipation

Craig

Nov 12 '05 #4

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

Similar topics

13
3281
by: Markus Ernst | last post by:
Hello In a content administration tool I call classes from inside classes in order to separate the admin functions from the display-only functions: class book { var $title; var $author;...
2
945
by: DelphiBlue | last post by:
I have a Nested Datagrid that is using a data relations to tie the parent child datagrids together. All is working well with the display but I am having some issues trying to sort the child...
0
2029
by: Chi | last post by:
This is a problem that has been nagging me for a while, and I cannot figure out how to best solve the problem: I have a stored procedure that returns multi-level "nested" XML and inline XDR. My...
1
2853
by: Brian Kedersha | last post by:
We created a XML Schema that has nested table relations. We had the following Warning message come up. An unhandled exception of the type 'System.ArgumentException' occurred in system.data.dll...
2
345
by: CAM | last post by:
Hi, Does anyone know a simple way to create an .xml file containing a nested list from a set of cascading relations. In other words if I have tables for Catalogue, Section, Page, Product. ...
4
1634
by: Steve Klett | last post by:
(I posted this in ADO group, but I think this group will be better) Hi- I need to develop an FAQ section for our website. We would like to break up the FAQ by products, then categories with...
0
1434
by: George Durzi | last post by:
I have a DataSet with 3 tables, and two DataRelations dsSubs.Tables.TableName = "Subscriptions" dsSubs.Tables.TableName = "AccountManagers" dsSubs.Relations.Add "AccountManagers_Subscriptions",...
1
2058
by: Thu | last post by:
Hi, I create a Dataset to link three tables in my Access database. E.g. The three tables are , , . I then create 2 DataRelations, 1st relation (Order_Cust_Rel) links and using CustomerID field...
2
1904
by: Me LK | last post by:
I have a set of drop downs nested in a datagrid. Each drop down is a size or color for an item. Each row of the grid has a button which leads to a cart. When a user selects something from the...
0
6967
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7132
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7180
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7341
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...
1
4870
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...
0
4564
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3076
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1381
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
266
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.