[sr-dev] git:5.5:78710d9d: xmlops: docs - added the remark that xml_ns param can be set many times

Daniel-Constantin Mierla miconda at gmail.com
Mon Feb 14 15:03:47 CET 2022


Module: kamailio
Branch: 5.5
Commit: 78710d9da5cfe117190694cd3b77ced54414a2e8
URL: https://github.com/kamailio/kamailio/commit/78710d9da5cfe117190694cd3b77ced54414a2e8

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2022-02-14T13:04:01+01:00

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

(cherry picked from commit 56e26387b77536e6c9f13dd62e5aecabaaba2d9a)

---

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

---

Diff:  https://github.com/kamailio/kamailio/commit/78710d9da5cfe117190694cd3b77ced54414a2e8.diff
Patch: https://github.com/kamailio/kamailio/commit/78710d9da5cfe117190694cd3b77ced54414a2e8.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