HowTo deal with more struct members at same level with same id?
Author: gianni.sandigliano@unifacesolutions.com (gianni)
Hi all, after an xmltostruct (after it $status = 0 and $procerror = 0) i am getting myStruct with two members at same level with same id (and obviously different values)...something like: [myStruct] [level1] = "value1" [level21] = "value21" [level22] = "value22First" [level22] = "value22Second" I need to save those two values to use them later on in my application...but if I try to address them copying values to myField with this instruction: myField = myStruct->level1->level22 I am getting nothing ...myField is originally null and remained null... ($status = 0 and $procerror = 0). I can obviously search text withing original xmlstream to extract what I need but I was wondering if there is a more elegant way to solve this issue... Any idea? Some other toughts: - The original xmlstream could be considered correct having two members same level with same ID?
- Should xmltostruct instruction generate at least a feedback?
- Should assignment instruction generate at least a feedback?
Thanks in advance.



But the stuff I've mentioned can also be found in the ULibrary. You start here:



