sipxportlib  Version 3.3
XmlContent.h
Go to the documentation of this file.
1 //
2 // Copyright (C) 2004-2006 SIPfoundry Inc.
3 // Licensed by SIPfoundry under the LGPL license.
4 //
5 // Copyright (C) 2004-2006 Pingtel Corp. All rights reserved.
6 // Licensed to SIPfoundry under a Contributor Agreement.
7 //
8 // $$
10 
11 
12 #ifndef _XmlContent_h_
13 #define _XmlContent_h_
14 
15 // SYSTEM INCLUDES
16 #include "os/OsDefs.h"
17 
18 // APPLICATION INCLUDES
19 #include "utl/UtlString.h"
20 
21 // DEFINES
22 #define XML_VERSION_1_0 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
23 
24 
25 // MACROS
26 // EXTERNAL FUNCTIONS
27 // EXTERNAL VARIABLES
28 // CONSTANTS
29 // STRUCTS
30 // TYPEDEFS
31 // FORWARD DECLARATIONS
32 
56 bool XmlEscape(UtlString& destination, const UtlString& source);
64 bool XmlUnEscape(UtlString& destination, const UtlString& source);
72 bool XmlDecimal(UtlString& destination,
74  int source,
75  const char* format = NULL);
84 #endif // _XmlContent_h_
bool XmlDecimal(UtlString &destination, int source, const char *format=NULL)
Append decimal string onto destination string.
Definition: XmlContent.cpp:266
#define NULL
Definition: UtlDefs.h:29
Definition: UtlString.h:48
bool XmlEscape(UtlString &destination, const UtlString &source)
Append escaped source string onto destination string.
Definition: XmlContent.cpp:67
bool XmlUnEscape(UtlString &destination, const UtlString &source)
Append unescaped source string onto destination string.
Definition: XmlContent.cpp:145