A
Allan Martin
Hello,
I would like to create a XML document but have never done one before.
I have a rough understanding of how XML works, but am still learning
most of it as I go along.
The XML document which I would like to create is to apply data to a
database, for now SQL Server.
The idea is that I pass the XML document to another application
(written in Java) and it will interrogate the XML and apply the
changes to the database.
I had the following idea, but not sure if it's correct.
<header>
<table_structure>
<table1> column1, column2, column3, column4....... </table1>
<table2> column1, column2, column3, column4, column5 </table2>
e.t.c.
</table_structure>
</header>
<body>
INSERT TABLE1 data1, data2, data3, data4
INSERT TABLE1 data1, data2, data3,data4
INSERT TABLE2 data1, data2, data3,data4,data5
INSERT TABLE1 data1, data2, data3,data4
INSERT TABLE2 data1, data2, data3,data4,data5
</body>
This is something which I came up with before doing any research. If
anyone could point me in the right direction, or offer me advice or a
examples I would be very grateful.
Many thanks in advance,
Allan Martin
ps. (e-mail address removed) is an e-mail address which I don't use as
it gets bombarded with junk e-mail.
I would like to create a XML document but have never done one before.
I have a rough understanding of how XML works, but am still learning
most of it as I go along.
The XML document which I would like to create is to apply data to a
database, for now SQL Server.
The idea is that I pass the XML document to another application
(written in Java) and it will interrogate the XML and apply the
changes to the database.
I had the following idea, but not sure if it's correct.
<header>
<table_structure>
<table1> column1, column2, column3, column4....... </table1>
<table2> column1, column2, column3, column4, column5 </table2>
e.t.c.
</table_structure>
</header>
<body>
INSERT TABLE1 data1, data2, data3, data4
INSERT TABLE1 data1, data2, data3,data4
INSERT TABLE2 data1, data2, data3,data4,data5
INSERT TABLE1 data1, data2, data3,data4
INSERT TABLE2 data1, data2, data3,data4,data5
</body>
This is something which I came up with before doing any research. If
anyone could point me in the right direction, or offer me advice or a
examples I would be very grateful.
Many thanks in advance,
Allan Martin
ps. (e-mail address removed) is an e-mail address which I don't use as
it gets bombarded with junk e-mail.