XML Table Rows into MySQL
I currently have an electronic form which produces user-inputted data as an XML file. Each field in the form marries up to a field in my MySQL DB.
In my form, I have a table with multiple rows. The XML data looks as below:-
- <Table1>
- <Row1>
<Cell1 xmlns:xfa="
http://www.xfa.org/schema/xfa-data/1.0/" xfa:dataNode="dataGroup" />
<Cell3>John Smith</Cell3>
<Cell4>22</Cell4>
<Cell5>New Yor</Cell5>
<Cell6>America</Cell6>
</Row1>
- <Row1>
<Cell1 xmlns:xfa="
http://www.xfa.org/schema/xfa-data/1.0/" xfa:dataNode="dataGroup" />
<Cell3>Paul Jones</Cell3>
<Cell4>35/Cell4>
<Cell5>California</Cell5>
<Cell6>America</Cell6>
</Row1>
</Table1>
The above example gives the XML output for 2 rows in the table in my form. As can be seen though, each row contains different information but the XML output references them both as Row1 (despite one row being Row 1 and the other Row 2).
Any suggestions how I can import the above into MySql so that new entries are created in each table representing each respective row?
Subject
Written By
Posted
XML Table Rows into MySQL
May 10, 2010 04:10PM
Sorry, you can't reply to this topic. It has been closed.
This forum is currently read only. You can not log in or make any changes. This is a temporary situation.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.