Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/martinblech/xmltodict
/ functions
Functions
153 in github.com/martinblech/xmltodict
⨍
Functions
153
◇
Types & classes
5
↓ 138 callers
Function
unparse
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 callers
Function
parse
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 callers
Function
_strip
(fullxml)
tests/test_dicttoxml.py:9
↓ 5 callers
Function
_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 callers
Method
push_data
(self, item, key, data)
xmltodict.py:158
↓ 3 callers
Method
_build_name
(self, full_name)
xmltodict.py:53
↓ 3 callers
Function
_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 callers
Function
lazy_obj
()
tests/test_dicttoxml.py:61
↓ 2 callers
Function
_process_namespace
(name, namespaces, ns_sep=':', attr_prefix='@')
xmltodict.py:425
↓ 1 callers
Method
ParserCreate
(self, *args, **kwargs)
tests/test_xmltodict.py:464
↓ 1 callers
Method
_attrs_to_dict
(self, attrs)
xmltodict.py:69
↓ 1 callers
Function
_emit
(key, value, content_handler, attr_prefix='@', cdata_key='#text', depth=0,
xmltodict.py:442
↓ 1 callers
Method
_should_force_cdata
(self, key, value)
xmltodict.py:189
↓ 1 callers
Method
_should_force_list
(self, key, value)
xmltodict.py:179
↓ 1 callers
Function
_validate_comment
(value)
xmltodict.py:410
↓ 1 callers
Method
characters
(self, data)
xmltodict.py:147
↓ 1 callers
Method
comment
(self, text)
xmltodict.py:554
↓ 1 callers
Method
endElement
(self, full_name)
xmltodict.py:104
↓ 1 callers
Function
handle_item
(path, item)
xmltodict.py:637
↓ 1 callers
Method
startElement
(self, full_name, attrs)
xmltodict.py:77
↓ 1 callers
Function
xml_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
Function
cb
(path, item)
tests/test_xmltodict.py:153
Method
comments
(self, data)
xmltodict.py:153
Function
force_list
Only return True for servers/server, but not for skip/server.
tests/test_xmltodict.py:389
Function
handler
(path, item)
tests/test_xmltodict.py:542
Function
p
(key, value)
tests/test_dicttoxml.py:109
Function
postprocessor
(path, key, value)
tests/test_xmltodict.py:191
Function
should_force_cdata
(path, key, value)
tests/test_xmltodict.py:58
Method
startNamespaceDecl
(self, prefix, uri)
xmltodict.py:74
Function
test_attr_order_roundtrip
()
tests/test_dicttoxml.py:130
Function
test_attrib
()
tests/test_dicttoxml.py:31
Function
test_attrib
()
tests/test_xmltodict.py:105
Function
test_attrib_and_cdata
()
tests/test_dicttoxml.py:37
Function
test_attrib_and_cdata
()
tests/test_xmltodict.py:117
Function
test_attribute_values_with_angle_brackets_are_escaped
()
tests/test_dicttoxml.py:446
Function
test_boolean_unparse
()
tests/test_dicttoxml.py:357
Function
test_cdata
()
tests/test_dicttoxml.py:25
Function
test_comment_roundtrip_limited
()
tests/test_dicttoxml.py:238
Function
test_comments
()
tests/test_xmltodict.py:503
Function
test_custom_attrib
()
tests/test_xmltodict.py:113
Function
test_custom_cdata
()
tests/test_xmltodict.py:97
Function
test_disable_entities_allows_comments_by_default
()
tests/test_xmltodict.py:493
Function
test_disable_entities_false_returns_xmlbomb
()
tests/test_xmltodict.py:426
Function
test_disable_entities_true_allows_doctype_without_entities
()
tests/test_xmltodict.py:484
Function
test_disable_entities_true_rejects_xmlbomb
()
tests/test_xmltodict.py:413
Function
test_empty_dict_vs_empty_list_behavior
Test the difference between empty dicts and empty lists.
tests/test_dicttoxml.py:640
Function
test_empty_list_filtering
Test that empty lists are filtered out and don't create empty child elements.
tests/test_dicttoxml.py:563
Function
test_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
Function
test_encoded_string
()
tests/test_xmltodict.py:223
Function
test_encoding
()
tests/test_dicttoxml.py:263
Function
test_external_entity
()
tests/test_xmltodict.py:440
Function
test_external_entity_with_custom_expat
()
tests/test_xmltodict.py:452
Function
test_force_cdata
()
tests/test_xmltodict.py:24
Function
test_force_list_basic
()
tests/test_xmltodict.py:352
Function
test_force_list_callable
()
tests/test_xmltodict.py:374
Function
test_fulldoc
()
tests/test_dicttoxml.py:272
Function
test_generator
()
tests/test_dicttoxml.py:58
Function
test_keep_whitespace
()
tests/test_xmltodict.py:146
Function
test_list
()
tests/test_dicttoxml.py:43
Function
test_list
()
tests/test_xmltodict.py:101
Function
test_list_expand_iter
()
tests/test_dicttoxml.py:49
Function
test_minimal
()
tests/test_xmltodict.py:15
Function
test_multiple_roots
()
tests/test_dicttoxml.py:72
Function
test_multiple_roots_nofulldoc
()
tests/test_dicttoxml.py:83
Function
test_namespace_collapse
()
tests/test_xmltodict.py:260
Function
test_namespace_collapse_all
()
tests/test_xmltodict.py:295
Function
test_namespace_ignore
()
tests/test_xmltodict.py:327
Function
test_namespace_on_root_without_other_attrs
()
tests/test_xmltodict.py:608
Function
test_namespace_support
()
tests/test_dicttoxml.py:294
Function
test_namespace_support
()
tests/test_xmltodict.py:229
Function
test_nested
()
tests/test_dicttoxml.py:92
Function
test_nested_semi_structured
()
tests/test_xmltodict.py:126
Function
test_no_root
()
tests/test_dicttoxml.py:67
Function
test_no_root_nofulldoc
()
tests/test_dicttoxml.py:79
Function
test_non_empty_lists_are_not_filtered
Test that non-empty lists are not filtered out.
tests/test_dicttoxml.py:619
Function
test_non_string_attr
()
tests/test_dicttoxml.py:284
Function
test_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
Function
test_non_string_value
()
tests/test_dicttoxml.py:279
Function
test_none_attribute_serializes_as_empty_string
()
tests/test_dicttoxml.py:711
Function
test_none_text_with_short_empty_elements_and_attributes
()
tests/test_dicttoxml.py:706
Function
test_postprocessor
()
tests/test_xmltodict.py:190
Function
test_postprocessor_attribute
()
tests/test_xmltodict.py:199
Function
test_postprocessor_skip
()
tests/test_xmltodict.py:208
Function
test_preprocessor
()
tests/test_dicttoxml.py:106
Function
test_preprocessor_skipkey
()
tests/test_dicttoxml.py:119
Function
test_pretty_print
()
tests/test_dicttoxml.py:135
Function
test_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
Function
test_pretty_print_with_int_indent
()
tests/test_dicttoxml.py:216
Function
test_rejects_attribute_name_starting_with_bang
()
tests/test_dicttoxml.py:468
Function
test_rejects_attribute_name_starting_with_question
()
tests/test_dicttoxml.py:463
Function
test_rejects_attribute_name_with_angle_brackets
()
tests/test_dicttoxml.py:423
Function
test_rejects_attribute_name_with_slash
()
tests/test_dicttoxml.py:504
Function
test_rejects_attribute_name_with_whitespace
()
tests/test_dicttoxml.py:509
Function
test_rejects_malicious_xmlns_prefix
()
tests/test_dicttoxml.py:432
Function
test_rejects_names_with_quotes_and_equals
()
tests/test_dicttoxml.py:524
next →
1–100 of 153, ranked by callers