Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):
if nodeName_ == 'specVersion':
obj_ = SpecVersionType.factory()
obj_.build(child_)
self.set_specVersion(obj_)
elif nodeName_ == 'URLBase':
URLBase_ = child_.text
URLBase_ = self.gds_validate_string(URLBase_, node, 'URLBase')
self.URLBase = URLBase_
elif nodeName_ == 'device':
obj_ = DeviceType.factory()
obj_.build(child_)
self.set_device(obj_)
# end class root
def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):
if nodeName_ == 'device':
obj_ = DeviceType.factory()
obj_.build(child_)
self.device.append(obj_)
# end class DeviceListType