on 12-04-2006 12:34 PM
Hi All,
I have a problem.
I have a source structure where i check 2 fields.
example:
<root>
<element>
<id>Z01</id>
<sub>
<text>01Text</text>
</sub>
<element>
<element>
<id>Z02</id>
<sub>
<text>02Text</text>
</sub>
<element>
<element>
<id>Z03</id>
<sub>
<text>03Text</text>
</sub>
<element>
i check field <b>id</b> .. and field <b>text</b>.
So i have two queues going in my user function.
And when for example value is Z03 in the first queue i get from the second queue the value with the same index. Works fine!
But now following problem comes up:
<element>
<id>Z01</id>
<sub>
<text>01Text</text>
</sub>
<sub>
<text>01Text_2</text>
</sub>
<element>
With some element like this the text queue is longer than the id queue and i didn't work anymore.
any idea?
Regards,
Robin
Are you using some custom function to manage this ?
Can you post here the code, in order to allow to forum partecipants to check if they can see some bug ?
You know "Errare humanum est"
Regards,
Sandro
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sandro,
the customer function isn't the problem.
I just want to have the queues in the same length.... because than the customer function works as well.
How can i handle such a thing?
When you look at the source messages i posted before you see why they have the different length..is there any possibility like "only queue entry on Context Change" or something similiar?
any adivse?
Regards,
Robin
i can use something like that:
for ( int i = 0; i < a.length; i++ ) {
if(b.length > i){
result.addValue(b<i>);
}else{
result.addValue("***");
}
}
so my queues become the same length ... but that isn't enough for me.
I have to add the "***" on this place in the queue where in source structure the subsegment occurs 2 times.
Some help would be great.
Regards,
Robin
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.