XMLMultiElementStruct xmes;
if(o instanceof XMLMultiElementStruct) {
xmes=(XMLMultiElementStruct)o;
}
else {
XMLStruct sct=(XMLStruct) o;
Array a=new ArrayImpl();
a.append(o);
xmes=new XMLMultiElementStruct(a, sct.getCaseSensitive());
}
return new XMLMultiElementArray(xmes);
}
else if(o instanceof ObjectWrap) {
return toArray(((ObjectWrap)o).getEmbededObject());
}
else if(o instanceof Struct) {
Struct sct=(Struct) o;
Array arr=new ArrayImpl();
Iterator<Entry<Key, Object>> it = sct.entryIterator();
Entry<Key, Object> e=null;
try {
while(it.hasNext()) {
e = it.next();
arr.setE(toIntValue(e.getKey().getString()),e.getValue());