_copyright = 'ZSI: Zolera Soap Infrastructure.\n\nCopyright 2001, Zolera Systems, Inc. All Rights Reserved.\nCopyright 2002-2003, Rich Salz. All Rights Reserved.\n\nPermission is hereby granted, free of charge, to any person obtaining a\ncopy of this software and associated documentation files (the "Software"),\nto deal in the Software without restriction, including without limitation\nthe rights to use, copy, modify, merge, publish, distribute, and/or\nsell copies of the Software, and to permit persons to whom the Software\nis furnished to do so, provided that the above copyright notice(s) and\nthis permission notice appear in all copies of the Software and that\nboth the above copyright notice(s) and this permission notice appear in\nsupporting documentation.\n\nTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT\nOF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS\nINCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT\nOR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS\nOF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE\nOR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE\nOR PERFORMANCE OF THIS SOFTWARE.\n\nExcept as contained in this notice, the name of a copyright holder\nshall not be used in advertising or otherwise to promote the sale, use\nor other dealings in this Software without prior written authorization\nof the copyright holder.\n\n\nPortions are also:\n\nCopyright (c) 2003, The Regents of the University of California,\nthrough Lawrence Berkeley National Laboratory (subject to receipt of\nany required approvals from the U.S. Dept. of Energy). All rights\nreserved. Redistribution and use in source and binary forms, with or\nwithout modification, are permitted provided that the following\nconditions are met:\n\n(1) Redistributions of source code must retain the above copyright\nnotice, this list of conditions and the following disclaimer.\n(2) Redistributions in binary form must reproduce the above copyright\nnotice, this list of conditions and the following disclaimer in the\ndocumentation and/or other materials provided with the distribution.\n(3) Neither the name of the University of California, Lawrence Berkeley\nNational Laboratory, U.S. Dept. of Energy nor the names of its contributors\nmay be used to endorse or promote products derived from this software without\nspecific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\nTO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\nPURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS\nBE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\nCONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE\nGOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)\nHOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT\nLIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY\nOUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF\nSUCH DAMAGE.\n\nYou are under no obligation whatsoever to provide any bug fixes,\npatches, or upgrades to the features, functionality or performance of\nthe source code ("Enhancements") to anyone; however, if you choose to\nmake your Enhancements available either publicly, or directly to\nLawrence Berkeley National Laboratory, without imposing a separate\nwritten license agreement for such Enhancements, then you hereby grant\nthe following license: a non-exclusive, royalty-free perpetual license\nto install, use, modify, prepare derivative works, incorporate into\nother computer software, distribute, and sublicense such Enhancements\nor derivative works thereof, in binary and source code form.\n\n\nFor wstools also:\n\nZope Public License (ZPL) Version 2.0\n-----------------------------------------------\n\nThis software is Copyright (c) Zope Corporation (tm) and\nContributors. All rights reserved.\n\nThis license has been certified as open source. It has also\nbeen designated as GPL compatible by the Free Software\nFoundation (FSF).\n\nRedistribution and use in source and binary forms, with or\nwithout modification, are permitted provided that the\nfollowing conditions are met:\n\n1. Redistributions in source code must retain the above\n copyright notice, this list of conditions, and the following\n disclaimer.\n\n2. Redistributions in binary form must reproduce the above\n copyright notice, this list of conditions, and the following\n disclaimer in the documentation and/or other materials\n provided with the distribution.\n\n3. The name Zope Corporation (tm) must not be used to\n endorse or promote products derived from this software\n without prior written permission from Zope Corporation.\n\n4. The right to distribute this software or to use it for\n any purpose does not give you the right to use Servicemarks\n (sm) or Trademarks (tm) of Zope Corporation. Use of them is\n covered in a separate agreement (see\n http://www.zope.com/Marks).\n\n5. If any files are modified, you must cause the modified\n files to carry prominent notices stating that you changed\n the files and the date of any change.\n\nDisclaimer\n\n THIS SOFTWARE IS PROVIDED BY ZOPE CORPORATION ``AS IS\'\'\n AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT\n NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY\n AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN\n NO EVENT SHALL ZOPE CORPORATION OR ITS CONTRIBUTORS BE\n LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,\n EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\n LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\n LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)\n HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE\n OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\n SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH\n DAMAGE.\n\n\nThis software consists of contributions made by Zope\nCorporation and many individuals on behalf of Zope\nCorporation. Specific attributions are listed in the\naccompanying credits file.\n'
from xml.dom import Node as _Node
import types as _types
from ZSI.wstools.Namespaces import ZSI_SCHEMA_URI
UNICODE_ENCODING = 'utf-8'
_inttypes = [
_types.IntType,
_types.LongType]
_floattypes = [
_types.FloatType]
_seqtypes = [
_types.TupleType,
_types.ListType]
_stringtypes = [
_types.StringType,
_types.UnicodeType]
_attrs = lambda E: if not E.attributes or E.attributes.values():
pass[]
_children = lambda E: if not E.childNodes:
pass[]
_child_elements = lambda E: if not E.childNodes:
pass_[1]
from ZSI.wstools.Namespaces import SOAP as _SOAP, SCHEMA as _SCHEMA, XMLNS as _XMLNS
_find_arraytype = lambda E: if not E.getAttributeNS(_SOAP.ENC, 'arrayType'):
passE.getAttributeNS(_SOAP.ENC12, 'arrayType')
_find_encstyle = lambda E: if not E.getAttributeNS(_SOAP.ENV, 'encodingStyle'):