Hello,
I am trying to decompose an XML Dokument into some tables. The structure
of the XML-Document is as follows:
<LIST_1>
<ELEMENT_1>
<VAL_1>8919101000000000000000002672005031318:27</VAL_1>
...
<VAL_29>0</VAL_29>
<LIST_1_1>
<ELEMENT_1_1>
<VAL_1_1>1</VAL_1_1>
...
<VAL_1_25>01</VAL_1_25>
</ELEMENT_1_1>
<ELEMENT_1_1>
<VAL_1_1>1</VAL_1_1>
...
<VAL_1_25>01</VAL_1_25>
</ELEMENT_1_1>
<ELEMENT_1_1>
<VAL_1_1>1</VAL_1_1>
...
<VAL_1_25>01</VAL_1_25>
</ELEMENT_1_1>
</LIST_1_1>
<LIST_1_2>
<ELEMENT_1_2>
<VAL_2_1>1</VAL_2_1>
...
<VAL_2_9>01</VAL_2_9>
</ELEMENT_1_2>
<ELEMENT_1_2>
<VAL_2_1>1</VAL_2_1>
...
<VAL_2_9>01</VAL_2_9>
</ELEMENT_1_2>
</LIST_1_2>
<ELEMENT_1_3>
<VAL_3_1>1</VAL_3_1>
<!-- <VAL_3_2>16</VAL_3_2> -->
</ELEMENT_1_3>
</ELEMENT_1>
</LIST_1>
For this XML I have built a DAD-file an it works fine. But when I remove
the comment around VAL_3_2 and start "dxxshrd mydb my.dad my.xml" I get
the following mesage:
Connecting to database mydb
errCode=-57:0
msgtext'DXXG001E An internal error occured in build "Apr 22
2005/20:01:49", file "dxxrdbi.sqx", and line "3103".
Does anybody know what happens? The tracefile only says "Failed to find
'VAL_3_2' in 'ELEMENT_1'."
Thanks in advance an kind regards
Martin Zillner 4 1396
Hi Martin,
Can you post your DAD as well?
Thanks,
Tom
Hi,
this is the DAD I use:
<?xml version="1.0"?>
<!DOCTYPE DAD SYSTEM ".../samples/db2xml/dtd/dad.dtd">
<DAD>
<dtdid>bon.dtd</dtdid>
<validation>NO</validation>
<Xcollection>
<prolog>?xml version="1.0" encoding="UTF-8"?</prolog>
<doctype>!DOCTYPE BONLISTE SYSTEM ".../bon.dtd"</doctype>
<root_node>
<element_node name="LIST_1">
<RDB_node>
<table name="TABLE_1" key="ID"/>
<table name="TABLE_2" key="ID"/>
<table name="TABLE_3" key="ID"/>
<table name="TABLE_4" key="ID"/>
<condition>TABLE1_1.ID = TABLE1_2.ID AND TABLE1_1.ID = TABLE1_3.ID AND
TABLE1_1.ID = TABLE1_4.ID</condition>
</RDB_node>
<element_node name="ELEMENT_1" multi_occurrence="YES">
<element_node name="VAL_1">
<text_node>
<RDB_node>
<table name="TABLE_1"/>
<column name="COL1_1" type="VARCHAR(40)"/>
</RDB_node>
</text_node>
</element_node>
....
<element_node name="VAL_29">
<text_node>
<RDB_node>
<table name="TABLE_1"/>
<column name="COL_1_29" type="INT"/>
</RDB_node>
</text_node>
</element_node>
<element_node name="LIST_1_1">
<element_node name="ELEMENT_1_1" multi_occurrence="YES">
<element_node name="VAL_1_1">
<text_node>
<RDB_node>
<table name="TABLE_2"/>
<column name="COL_2_1" type="INT"/>
</RDB_node>
</text_node>
</element_node>
....
<element_node name="VAL_1_25">
<text_node>
<RDB_node>
<table name="TABLE_2"/>
<column name="COL_2_25" type="VARCHAR(2)"/>
</RDB_node>
</text_node>
</element_node>
</element_node>
</element_node>
<element_node name="LIST_1_2">
<element_node name="ELEMENT_1_2" multi_occurrence="YES">
<element_node name="VAL_2_1">
<text_node>
<RDB_node>
<table name="TABLE_3"/>
<column name="COL_3_1" type="INT"/>
</RDB_node>
</text_node>
</element_node>
....
<element_node name="VAL_2_9">
<text_node>
<RDB_node>
<table name="TABLE_3"/>
<column name="COL_3_9" type="VARCHAR(2)"/>
</RDB_node>
</text_node>
</element_node>
</element_node>
</element_node>
<element_node name="ELEMENT_1_3">
<element_node name="VAL_3_1">
<text_node>
<RDB_node>
<table name="TABLE_4"/>
<column name="COL_4_1" type="VARCHAR(10)"/>
</RDB_node>
</text_node>
</element_node>
<!-- <element_node name="VAL_3_2"> -->
<!-- <text_node> -->
<!-- <RDB_node> -->
<!-- <table name="TABLE_4"/> -->
<!-- <column name="COL_4_2" type="DECIMAL(5,2)"/> -->
<!-- </RDB_node> -->
<!-- </text_node> -->
<!-- </element_node> -->
</element_node>
</element_node>
</element_node>
</root_node>
</Xcollection>
</DAD>
Thanks for support
Martin
Hi Martin,
I likely won't be able to take a closer look at your problem until next
week.
In the meantime:
1) I assume in your DAD you had the VAL_3_2 element_node uncommented
while you were getting the error, and you commented it out just to keep
working but forgot to uncomment it before posting.
2) have you tried running the DAD checker as a sanity check? http://www-306.ibm.com/software/data...downloads.html
It is in the beta packages section.
Tom
Hi Tom,
in the meantime IBM Support gave me an answer: The suggest even to use
'multi_occurrence="YES"' for 'ELEMENT_1_3' though it does only occur one
time, but that works.
The more strange issue is that the documentation say, there can only
1024 rows be inserted in one table from one XML document. That menas, we
have to split or data into hundreds of files and maintain them. Therefor
we have implmented a perl script using the XMLtoRDBMS module an that
works fine.
Thanks for support and kind regards
Martin
tominame.com schrieb: Hi Martin,
I likely won't be able to take a closer look at your problem until next week.
In the meantime: 1) I assume in your DAD you had the VAL_3_2 element_node uncommented while you were getting the error, and you commented it out just to keep working but forgot to uncomment it before posting.
2) have you tried running the DAD checker as a sanity check? http://www-306.ibm.com/software/data...downloads.html It is in the beta packages section.
Tom This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: harry |
last post by:
I have an object that's passed in to a function as a parameter i.e public
boolean getProjectTitle(ProjectHeader_DTO obj) {...}
If I then call a method on this object inside the function i.e...
|
by: John Hunter |
last post by:
I have a largish data set (1000 observations x 100 floating point
variables), and some of the of the data are missing. I want to try a
variety of clustering, neural network, etc, algorithms on the...
|
by: Gabriel Zachmann |
last post by:
Is it correct to say that strong/weak typing does not make a difference
if one does not use any pointers (or adress-taking operator)?
More concretely, I am thinking particularly of Python vs C++....
|
by: Malcolm Clift |
last post by:
Hi All,
Using wx, I'm trying to draw all items in a range of 50 in a text at
certain co -ordinates (a simply textwrap) . A while back Alex Martelli
was kind enough to give me the following to...
|
by: Linda |
last post by:
Greetings,
How does one convert a string from precomposed unicode to decomposed
unicode in VB.NET? All the built-in .NET Encodings seem to be of the
precompsed variety.
Many thanks!
|
by: teo |
last post by:
hallo,
I need to extract a word and few text that
precedes and follows it (about 30 + 30 chars)
from a long textual document.
Like the description that Google returns when
it has found a...
|
by: sjallard |
last post by:
Hello,
I'm interested to use the xml extenders if they allow me to
decompose/compose XML data using *only* configuration files
(dtd/dad/..) and SPs (dxxInsertXML/dxxRetrieveXML/..), *without*...
|
by: sjallard |
last post by:
Dear all,
This is my first work with the XML extenders: I'll have to decompose an
XML file into a DB2 table, and "flatten" it in the same time, like in
the example at the end of this message.
I...
|
by: Peter Olcott |
last post by:
http://groups.google.com/group/comp.lang.c++/msg/a9092f0f6c9bf13a
I think that the operator() member function does not work correctly, does
anyone else know how to make a template for making two...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
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...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
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...
|
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)...
|
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...
|
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....
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
|
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...
| |