Propagate fields from elements 2 or 3 levels above current element
- From: "Tristan" <Tristan@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 8 Jun 2005 15:21:05 -0700
Hi,
I am currently trying to insert multilevel data to 5 tables from one xml
source file. It inserts without errors, however, I noticed that I can only
propagate element values to the child only if the element value is from a
hierarchy above it.
For example, I have the following hierarchies/entities within a file:
<CONTROL>
<ORDER> (repeating)
<ORDER_ITEM> (repeating)
<FEATURES> (repeating)
</FEATURES>
</ORDER_ITEM>
<WORK_INSTRUCTIONS> (repeating)
</WORK_INSTRUCTIONS>
</ORDER>
</CONTROL>
In the table destined to hold fields for <FEATURES>, I also included one
field from <CONTROL> and another from <ORDER>. However, both remain blank
when I look at this table. Instead, only the the line number field from
<ORDER_ITEM> show up in addition to the fields from <FEATURES>. Is there
another way I could structure my annotated schema or tables to be able to
hold these needed fields?
I can post or send my table DDL, my annotated schema, and the sample xml
file upon request.
Regards,
Tristan
.
- Follow-Ups:
- Prev by Date: RE: SqlXmlBulkLoad Error with Circular Foreign Key Constraints
- Next by Date: RE: Propagate fields from elements 2 or 3 levels above current element
- Previous by thread: RE: SQLXML Managed Classes
- Next by thread: RE: Propagate fields from elements 2 or 3 levels above current element
- Index(es):
Relevant Pages
|