From 0cb6a0640e9e3e2e06d2c5bc68c6177d5bd38b89 Mon Sep 17 00:00:00 2001 From: Daniel-Constantin Mierla Date: Thu, 10 Feb 2022 17:06:13 +0100 Subject: [PATCH] xmlops: docs - more practical example for xml_ns --- src/modules/xmlops/doc/xmlops_admin.xml | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/src/modules/xmlops/doc/xmlops_admin.xml b/src/modules/xmlops/doc/xmlops_admin.xml index 7082b03b1f1..d78247d3105 100644 --- a/src/modules/xmlops/doc/xmlops_admin.xml +++ b/src/modules/xmlops/doc/xmlops_admin.xml @@ -68,13 +68,30 @@ modparam("xmlops", "buf_size", 8192) <varname>xml_ns</varname> (str) Register xml namespace prefix. Parameter value must have the format: - 'prefix=uri'. + 'prefix=uri'. + + + This is useful when it is needed to access XML documents that specify + xmlns without prefix, which is not XML-standard compliant, but it + comes with SIP SIMPLE presence bodies. + Set <varname>xml_ns</varname> parameter +doc) = ' + + + none + + '; + +xinfo("status: $xml(x=>xpath:/pidf:presence/pidf:tuple/pidf:status/pidf:basic)\n"); ... +]]>