[sr-dev] git:master:56e26387: xmlops: docs - added the remark that xml_ns param can be set many times

Daniel-Constantin Mierla miconda at gmail.com
Thu Feb 10 17:12:13 CET 2022


Module: kamailio
Branch: master
Commit: 56e26387b77536e6c9f13dd62e5aecabaaba2d9a
URL: https://github.com/kamailio/kamailio/commit/56e26387b77536e6c9f13dd62e5aecabaaba2d9a

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2022-02-10T17:11:45+01:00

xmlops: docs - added the remark that xml_ns param can be set many times

---

Modified: src/modules/xmlops/doc/xmlops_admin.xml

---

Diff:  https://github.com/kamailio/kamailio/commit/56e26387b77536e6c9f13dd62e5aecabaaba2d9a.diff
Patch: https://github.com/kamailio/kamailio/commit/56e26387b77536e6c9f13dd62e5aecabaaba2d9a.patch

---

diff --git a/src/modules/xmlops/doc/xmlops_admin.xml b/src/modules/xmlops/doc/xmlops_admin.xml
index d78247d310..d9a6e04a5d 100644
--- a/src/modules/xmlops/doc/xmlops_admin.xml
+++ b/src/modules/xmlops/doc/xmlops_admin.xml
@@ -68,7 +68,8 @@ modparam("xmlops", "buf_size", 8192)
 		<title><varname>xml_ns</varname> (str)</title>
 		<para>
 		Register xml namespace prefix. Parameter value must have the format:
-		'prefix=uri'.
+		'prefix=uri'. It can be set many times to cope with multiple namespaces
+		without prefix.
 		</para>
 		<para>
 		This is useful when it is needed to access XML documents that specify
@@ -80,6 +81,7 @@ modparam("xmlops", "buf_size", 8192)
 		<programlisting format="linespecific">
 <![CDATA[
 ...
+modparam("xmlops", "xml_ns", "rpid=urn:ietf:params:xml:ns:pidf:rpid")
 modparam("xmlops", "xml_ns", "pidf=urn:ietf:params:xml:ns:pidf")
 ...
 $xml(x=>doc) = '<?xml version="1.0" encoding="utf-8"?>




More information about the sr-dev mailing list