finding occurrence nodes by their name

X-Application Version: 3.1.1
Tamino Version : 3.1.1
Platform : NT, Win2k, Solaris, …
WebContainer : Tomcat 3.3
JDK Version : 1.3.1

Hi,
I am looking for a way to find occurrence nodes by their name instead of their position in the sequence.
For example, if I encounter the following sequence
, I would like to use XApplication to return the correct occurrence node based on its name… let’s say “A”, not by the X-Query statement “xapp:occ(index)”.
Thanks in advance,
Karsten

Hello,

a BusinessNode has a method
getDescendantByContent

It returns a list of possible occurrence, choice or sequence nodes, which are responsible for the maintenance of a certain content. For example,

the method returns two occurrences node for the content ?A?, if you invoke it for the BusinessNode X.

Remark. This method works only for the content model of one element definition. For example,

it returns an empty list for content ?A?, if you invoke it for BusinessNode Y.

If you are looking for an anonymous sequence / choice you have to list all elements of the sequence / choice. For example,

invoke the method with argument ?A B? to get the occurrence node of the (A,B)-list.


Bye, Christian.