XMLport Problem with the Datasource

SpycoclownSpycoclown Member Posts: 13
Hallo,

I have a Problem with my Datasource.
Node              Node-Type Source-Type  	DataSource        Occurs
member             Element   	Text     	member        ONCE-UNBOUND
surname            Element   	Text     	surname       ZERO-ONCE
firstname       	Element   	Text     	firstname     ZERO-ONCE
designation     	Element   	Text     	designation	ZERO-ONCE
active          	Element   	Text     	active     	ZERO-ONCE
number             Element   	Text     	number        ZERO-ONCE
status          	Element   	Text     	status     	ZERO-ONCE
maritalstatus   	Element   	Text     	maritalstatus ZERO-ONCE
familystatus    	Element   	Text     	familystatus  ZERO-ONCE

I have in the Node Member, my code that fill the Table.
My Problem is if i am at the third Member that is not Maried, the node maritalstatus is zero but the DataSource is still filled with the Information of the Member befor. how can i clear alle the Datasource on every Member that is found?

Gretz
Leo

Comments

  • MatthiasKönigMatthiasKönig Member Posts: 14
    Hi Spycoclown,

    did you mean, that all child nodes of the parent node must be cleared before the unbound parent will process again?
    If thaths true, i have same problem here!

    My unbound parent nodes not has every child node again. Here my example:
    <contact>
    <firstname>Emma</firstname>
    <surename>Stone</surename>
    </contact>
    <contact>
    <firstname>Jack</firstname>
    </contact>

    In the second import the surename is already filled with "Stone"... did anybody know a solution?

    kind regards
    Matthias König
  • SpycoclownSpycoclown Member Posts: 13
    yes exactly that problem.

    At the moment i just clear(); every datasource after i imported them in to the table.
    good way. hope its not the only way.
Sign In or Register to comment.