tree data new UPDATE warn about XML value with prefix
diff --git a/src/tree_data_new.c b/src/tree_data_new.c
index 5a93324..b4fb4d6 100644
--- a/src/tree_data_new.c
+++ b/src/tree_data_new.c
@@ -960,6 +960,9 @@
if (!value) {
value = "";
}
+ if (strchr(value, ':')) {
+ LOGWRN(ctx, "Value \"%s\" prefix will never be interpreted as an XML prefix.", value);
+ }
LY_CHECK_RET(lyd_create_attr(parent, &ret, ctx, name, name_len, prefix, pref_len, module_ns,
module_ns ? strlen(module_ns) : 0, value, strlen(value), NULL, LY_VALUE_XML, NULL, LYD_HINT_DATA));