cdm_data_loaders.utils.xml_utils ¶
Shared XML helper utilities used by XML readers and converters.
This module centralizes common operations: - Safe text extraction - Local (namespace-stripped) XML tag/attribute name extraction
get_text ¶
Return elem.text if exists and non-empty.
Source code in src/cdm_data_loaders/utils/xml_utils.py
local_name ¶
Return the local (namespace-stripped) part of an XML tag or attribute name.
Handles Clark notation ("{http://example.com}entry" -> "entry") and returns
already-unprefixed names unchanged.