• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..15-Apr-2021-

doc/H15-Apr-2021-139125

MakefileH A D15-Apr-2021613 3122

READMEH A D15-Apr-20212.3 KiB11975

pv_xml.cH A D15-Apr-202113.2 KiB551450

pv_xml.hH A D15-Apr-20211.2 KiB3811

xmlops_mod.cH A D15-Apr-20211.9 KiB7232

README

1XMLOPS Module
2
3Daniel-Constantin Mierla
4
5   asipto.com
6   <miconda@gmail.com>
7
8   Copyright © 2009 asipto.com
9     __________________________________________________________________
10
11   Table of Contents
12
13   1. Admin Guide
14
15        1. Overview
16        2. Dependencies
17
18              2.1. Kamailio Modules
19              2.2. External Libraries or Applications
20
21        3. Parameters
22
23              3.1. buf_size (integer)
24              3.2. xml_ns (str)
25
26        4. Pseudo-Variables
27
28              4.1. $xml(name=>spec)
29
30   List of Examples
31
32   1.1. Set buf_size parameter
33   1.2. Set xml_ns parameter
34   1.3. xml usage
35
36Chapter 1. Admin Guide
37
38   Table of Contents
39
40   1. Overview
41   2. Dependencies
42
43        2.1. Kamailio Modules
44        2.2. External Libraries or Applications
45
46   3. Parameters
47
48        3.1. buf_size (integer)
49        3.2. xml_ns (str)
50
51   4. Pseudo-Variables
52
53        4.1. $xml(name=>spec)
54
551. Overview
56
57   This is a module implementing functions and pseudo-variables for XML
58   operations.
59
602. Dependencies
61
62   2.1. Kamailio Modules
63   2.2. External Libraries or Applications
64
652.1. Kamailio Modules
66
67   The following modules must be loaded before this module:
68     * none.
69
702.2. External Libraries or Applications
71
72   The following libraries or applications must be installed before
73   running kamailio with this module loaded:
74     * libxml - for compilation from source, the development headers from
75       this library are needed as well.
76
773. Parameters
78
79   3.1. buf_size (integer)
80   3.2. xml_ns (str)
81
823.1. buf_size (integer)
83
84   Maximum size of the XML buffer.
85
86   Default value is 4096.
87
88   Example 1.1. Set buf_size parameter
89...
90modparam("xmlops", "buf_size", 8192)
91...
92
933.2. xml_ns (str)
94
95   Register xml namespace prefix. Parameter value must have the format:
96   'prefix=uri'.
97
98   Example 1.2. Set xml_ns parameter
99...
100modparam("xmlops", "xml_ns", "rpid=urn:ietf:params:xml:ns:pidf:rpid")
101...
102
1034. Pseudo-Variables
104
105   4.1. $xml(name=>spec)
106
1074.1.  $xml(name=>spec)
108
109   Pseudo-variable for XML document operations using xpath syntax. For
110   more see the Pseudo-Variables Cookbook.
111
112   Example 1.3. xml usage
113...
114$xml(x=>doc)
115    = '<?xml version="1.0" encoding="UTF-8"?><a><b>test</b></a>';
116xlog("content of node b: $xml(x=>xpath:/a/b/text())\n");
117$xml(x=>xpath:/a/b) = "1234";
118...
119