From 3d52905fe996303e4e3a72272726cddc17021539 Mon Sep 17 00:00:00 2001 From: mb Date: Tue, 18 Jun 2024 17:22:23 +0200 Subject: [PATCH] fix check for childen and attributes in desc element --- parsers/src/data_forms.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/parsers/src/data_forms.rs b/parsers/src/data_forms.rs index 4b284c3..b4a97fa 100644 --- a/parsers/src/data_forms.rs +++ b/parsers/src/data_forms.rs @@ -210,8 +210,8 @@ impl TryFrom for Field { let media_element = MediaElement::try_from(element.clone())?; field.media.push(media_element); } else if element.is("desc", ns::DATA_FORMS) { - check_no_children!(element, "value"); - check_no_attributes!(element, "value"); + check_no_children!(element, "desc"); + check_no_attributes!(element, "desc"); field.desc = Some(element.text()); } else { return Err(Error::ParseError(