api: fix bugs

This commit is contained in:
George Palanjyan
2018-04-11 14:09:04 +03:00
parent 5b71df82d8
commit d1747579c4

View File

@@ -175,7 +175,7 @@ func xmlAnalize(methodStruct interface{}, acceptedData* string) (*string, error)
}
}
if el == nil {
el = document.CreateElement(elemName)
document.AddChild(popTmp)
} else {
el.AddChild(popTmp)
}