Author:
Anil Kumar (anilkumar.s@paxterrasolutions.com)
TestON is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published
by the Free Software Foundation, either version 2 of the License,
or (at your option) any later version.
TestON is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public
License along with TestON. If not, see
<http://www.gnu.org/licenses/>.
|
xml_to_dict(root_or_str,
strict=True)
Converts `root_or_str` which can be parsed xml or a xml string to
dict. |
source code
|
|
|
dict_to_xml(dict_xml)
Converts `dict_xml` which is a python dict to corresponding xml. |
source code
|
|
|
_to_xml(el)
Converts `el` to its xml representation. |
source code
|
|
|
|
|
_dict_to_xml(els)
Converts `els` which is a python dict to corresponding xml. |
source code
|
|
|
|
|
|
|
|
|
|
|
_from_xml(el,
strict)
Extracts value of xml element element `el`. |
source code
|
|
|
_val_and_maybe_convert(el)
Converts `el.text` if `el` has attribute `type` with valid value. |
source code
|
|
|
_list_from_xml(els,
strict)
Converts xml elements list `el_list` to a python list. |
source code
|
|
|
_dict_from_xml(els,
strict)
Converts xml doc with root `root` to a python dict. |
source code
|
|