carbonPHP Initial commit v2.0
[carbonphp.git] / Documentation / utilities / xml.html
blob7a9f9e3711043f40420ab91d602ff515c6490b92
1 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
2 <head>
3 <title>CarbonPHP Documentation</title>
4 <style type="text/css">
5 * {
6 margin: 0;
7 padding: 0;
10 a, a:hover {
11 background: transparent;
12 border-bottom: 1px dotted #666;
13 color: #666;
14 text-decoration: none;
17 a:hover {
18 border: 0;
21 html {
22 font-family: "Lucida Sans Unicode", "Lucida Grande";
23 font-size: 12px;
26 body {
27 background: #fff;
28 color: #666;
31 h1 {
32 font-size: 15px;
33 font-weight: bold;
34 margin: 0 0 5px 0;
37 h2 {
38 font-size: 13px;
39 font-weight: bold;
40 margin: 5px 0 5px 0;
43 ol, ul {
44 margin: 10px 0 10px 0;
45 list-style-position: inside;
48 p {
49 margin: 5px 0 5px 0;
52 .content {
53 border: 1px dotted #444;
54 margin: 10px;
55 padding: 10px;
56 text-align: justify;
57 width: 700px;
60 .example {
61 border: 1px solid #ccc;
62 background: #eee;
63 margin: 10px;
64 padding: 10px;
65 text-align: left;
67 </style>
68 </head>
70 <body>
71 <div class="content">
72 <h1>XML Utility</h1>
74 <p>The XML utlity contains functions that help when working with XML data. You load this utility using the
75 following piece of code.</p>
77 <div class="example">
78 $this->load->utility('xml');
79 </div>
80 </div>
82 <div class="content">
83 <h1>xml_convert('string')</h1>
85 <p>This function takes a string as input and converts the following XML characters to entities.</p>
87 <ul>
88 <li>Ampersands: &amp;</li>
89 <li>Less than and greater than: &lt; &gt;</li>
90 <li>Single and double quotes: ' "</li>
91 <li>Dashes: -</li>
92 </ul>
94 <p>This function ignores ampersands if they are part of existing character entities.</p>
96 <div class="examples">
97 $string = xml_convert($string);
98 </div>
99 </div>
100 </body>
102 </html>