MCPcopy Index your code

hub / github.com/martinblech/xmltodict / functions

Functions153 in github.com/martinblech/xmltodict

↓ 138 callersFunctionunparse
Emit an XML document for the given `input_dict` (reverse of `parse`). The resulting XML document is returned as a string, but if `output` (a
xmltodict.py:559
↓ 84 callersFunctionparse
Parse the given XML input and convert it into a dictionary. `xml_input` can either be a `string`, a file-like object, or a generator of strings.
xmltodict.py:200
↓ 13 callersFunction_strip
(fullxml)
tests/test_dicttoxml.py:9
↓ 5 callersFunction_convert_value_to_string
Convert a value to its string representation for XML output. Handles boolean values consistently by converting them to lowercase.
xmltodict.py:373
↓ 4 callersMethodpush_data
(self, item, key, data)
xmltodict.py:158
↓ 3 callersMethod_build_name
(self, full_name)
xmltodict.py:53
↓ 3 callersFunction_validate_name
Validate an element/attribute name for XML safety. Raises ValueError with a specific reason when invalid. kind: 'element' or 'attribute' (us
xmltodict.py:387
↓ 3 callersFunctionlazy_obj
()
tests/test_dicttoxml.py:61
↓ 2 callersFunction_process_namespace
(name, namespaces, ns_sep=':', attr_prefix='@')
xmltodict.py:425
↓ 1 callersMethodParserCreate
(self, *args, **kwargs)
tests/test_xmltodict.py:464
↓ 1 callersMethod_attrs_to_dict
(self, attrs)
xmltodict.py:69
↓ 1 callersFunction_emit
(key, value, content_handler, attr_prefix='@', cdata_key='#text', depth=0,
xmltodict.py:442
↓ 1 callersMethod_should_force_cdata
(self, key, value)
xmltodict.py:189
↓ 1 callersMethod_should_force_list
(self, key, value)
xmltodict.py:179
↓ 1 callersFunction_validate_comment
(value)
xmltodict.py:410
↓ 1 callersMethodcharacters
(self, data)
xmltodict.py:147
↓ 1 callersMethodcomment
(self, text)
xmltodict.py:554
↓ 1 callersMethodendElement
(self, full_name)
xmltodict.py:104
↓ 1 callersFunctionhandle_item
(path, item)
xmltodict.py:637
↓ 1 callersMethodstartElement
(self, full_name, attrs)
xmltodict.py:77
↓ 1 callersFunctionxml_gen
()
tests/test_xmltodict.py:563
Method__init__
( self, item_depth=0, item_callback=lambda *args: True, xml_attribs=True,
xmltodict.py:16
Method__init__
(self, external_entity_result)
tests/test_xmltodict.py:461
Method__str__
(self)
tests/test_dicttoxml.py:482
Function_forbid_entities
(*_args, **_kwargs)
xmltodict.py:358
Method_handler
(*args, **kwargs)
tests/test_xmltodict.py:467
Functioncb
(path, item)
tests/test_xmltodict.py:153
Methodcomments
(self, data)
xmltodict.py:153
Functionforce_list
Only return True for servers/server, but not for skip/server.
tests/test_xmltodict.py:389
Functionhandler
(path, item)
tests/test_xmltodict.py:542
Functionp
(key, value)
tests/test_dicttoxml.py:109
Functionpostprocessor
(path, key, value)
tests/test_xmltodict.py:191
Functionshould_force_cdata
(path, key, value)
tests/test_xmltodict.py:58
MethodstartNamespaceDecl
(self, prefix, uri)
xmltodict.py:74
Functiontest_attr_order_roundtrip
()
tests/test_dicttoxml.py:130
Functiontest_attrib
()
tests/test_dicttoxml.py:31
Functiontest_attrib
()
tests/test_xmltodict.py:105
Functiontest_attrib_and_cdata
()
tests/test_dicttoxml.py:37
Functiontest_attrib_and_cdata
()
tests/test_xmltodict.py:117
Functiontest_attribute_values_with_angle_brackets_are_escaped
()
tests/test_dicttoxml.py:446
Functiontest_boolean_unparse
()
tests/test_dicttoxml.py:357
Functiontest_cdata
()
tests/test_dicttoxml.py:25
Functiontest_comment_roundtrip_limited
()
tests/test_dicttoxml.py:238
Functiontest_comments
()
tests/test_xmltodict.py:503
Functiontest_custom_attrib
()
tests/test_xmltodict.py:113
Functiontest_custom_cdata
()
tests/test_xmltodict.py:97
Functiontest_disable_entities_allows_comments_by_default
()
tests/test_xmltodict.py:493
Functiontest_disable_entities_false_returns_xmlbomb
()
tests/test_xmltodict.py:426
Functiontest_disable_entities_true_allows_doctype_without_entities
()
tests/test_xmltodict.py:484
Functiontest_disable_entities_true_rejects_xmlbomb
()
tests/test_xmltodict.py:413
Functiontest_empty_dict_vs_empty_list_behavior
Test the difference between empty dicts and empty lists.
tests/test_dicttoxml.py:640
Functiontest_empty_list_filtering
Test that empty lists are filtered out and don't create empty child elements.
tests/test_dicttoxml.py:563
Functiontest_empty_list_filtering_with_short_empty_elements_false
Test that empty lists are still filtered when short_empty_elements=False.
tests/test_dicttoxml.py:600
Functiontest_encoded_string
()
tests/test_xmltodict.py:223
Functiontest_encoding
()
tests/test_dicttoxml.py:263
Functiontest_external_entity
()
tests/test_xmltodict.py:440
Functiontest_external_entity_with_custom_expat
()
tests/test_xmltodict.py:452
Functiontest_force_cdata
()
tests/test_xmltodict.py:24
Functiontest_force_list_basic
()
tests/test_xmltodict.py:352
Functiontest_force_list_callable
()
tests/test_xmltodict.py:374
Functiontest_fulldoc
()
tests/test_dicttoxml.py:272
Functiontest_generator
()
tests/test_dicttoxml.py:58
Functiontest_keep_whitespace
()
tests/test_xmltodict.py:146
Functiontest_list
()
tests/test_dicttoxml.py:43
Functiontest_list
()
tests/test_xmltodict.py:101
Functiontest_list_expand_iter
()
tests/test_dicttoxml.py:49
Functiontest_minimal
()
tests/test_xmltodict.py:15
Functiontest_multiple_roots
()
tests/test_dicttoxml.py:72
Functiontest_multiple_roots_nofulldoc
()
tests/test_dicttoxml.py:83
Functiontest_namespace_collapse
()
tests/test_xmltodict.py:260
Functiontest_namespace_collapse_all
()
tests/test_xmltodict.py:295
Functiontest_namespace_ignore
()
tests/test_xmltodict.py:327
Functiontest_namespace_on_root_without_other_attrs
()
tests/test_xmltodict.py:608
Functiontest_namespace_support
()
tests/test_dicttoxml.py:294
Functiontest_namespace_support
()
tests/test_xmltodict.py:229
Functiontest_nested
()
tests/test_dicttoxml.py:92
Functiontest_nested_semi_structured
()
tests/test_xmltodict.py:126
Functiontest_no_root
()
tests/test_dicttoxml.py:67
Functiontest_no_root_nofulldoc
()
tests/test_dicttoxml.py:79
Functiontest_non_empty_lists_are_not_filtered
Test that non-empty lists are not filtered out.
tests/test_dicttoxml.py:619
Functiontest_non_string_attr
()
tests/test_dicttoxml.py:284
Functiontest_non_string_text_with_attributes
Test that non-string #text values work when tag has attributes. This test covers GitHub issue #366: Tag value (#text) must be a string when t
tests/test_dicttoxml.py:666
Functiontest_non_string_value
()
tests/test_dicttoxml.py:279
Functiontest_none_attribute_serializes_as_empty_string
()
tests/test_dicttoxml.py:711
Functiontest_none_text_with_short_empty_elements_and_attributes
()
tests/test_dicttoxml.py:706
Functiontest_postprocessor
()
tests/test_xmltodict.py:190
Functiontest_postprocessor_attribute
()
tests/test_xmltodict.py:199
Functiontest_postprocessor_skip
()
tests/test_xmltodict.py:208
Functiontest_preprocessor
()
tests/test_dicttoxml.py:106
Functiontest_preprocessor_skipkey
()
tests/test_dicttoxml.py:119
Functiontest_pretty_print
()
tests/test_dicttoxml.py:135
Functiontest_pretty_print_and_short_empty_elements_consistency
Test that pretty and compact modes produce equivalent results when stripped. This test covers issue #352: Edge case with pretty_print and short_e
tests/test_dicttoxml.py:539
Functiontest_pretty_print_with_int_indent
()
tests/test_dicttoxml.py:216
Functiontest_rejects_attribute_name_starting_with_bang
()
tests/test_dicttoxml.py:468
Functiontest_rejects_attribute_name_starting_with_question
()
tests/test_dicttoxml.py:463
Functiontest_rejects_attribute_name_with_angle_brackets
()
tests/test_dicttoxml.py:423
Functiontest_rejects_attribute_name_with_slash
()
tests/test_dicttoxml.py:504
Functiontest_rejects_attribute_name_with_whitespace
()
tests/test_dicttoxml.py:509
Functiontest_rejects_malicious_xmlns_prefix
()
tests/test_dicttoxml.py:432
Functiontest_rejects_names_with_quotes_and_equals
()
tests/test_dicttoxml.py:524
next →1–100 of 153, ranked by callers