Skip to main content

execute_parse_xml

Function execute_parse_xml 

Source
pub fn execute_parse_xml(
    message: &mut Message,
    config: &ParseConfig,
) -> Result<(usize, Vec<Change>)>
Expand description

Execute parse_xml operation.

Extracts XML string from the source path, parses it to JSON, and stores it in the target data field.

§Arguments

  • message - The message to process (modified in place)
  • config - Parse configuration specifying source and target

§Returns

  • Ok((200, changes)) - Success with list of changes for audit trail
  • Err - If configuration is invalid or XML parsing fails