PluginProbe ʕ •ᴥ•ʔ
WP All Export – Drag & Drop Export to Any Custom CSV, XML & Excel / 1.0.7
WP All Export – Drag & Drop Export to Any Custom CSV, XML & Excel v1.0.7
trunk 0.9.0 0.9.1 1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.2.0 1.2.1 1.2.10 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.7 1.3.8 1.3.9 1.4.0 1.4.1 1.4.10 1.4.11 1.4.12 1.4.13 1.4.14 1.4.15 1.4.2 1.4.3 1.4.4 1.4.5 1.4.6 1.4.7 1.4.8 1.4.9 1.5.0
wp-all-export / classes / XMLWriter.php
wp-all-export / classes Last commit date
XMLWriter.php 10 years ago chunk.php 10 years ago config.php 10 years ago download.php 10 years ago handler.php 10 years ago helper.php 10 years ago input.php 10 years ago session.php 10 years ago wpallimport.php 10 years ago zip.php 10 years ago
XMLWriter.php
37 lines
1 <?php
2
3 class PMXE_XMLWriter extends XMLWriter
4 {
5
6 public function putElement( $ns, $element, $uri, $value )
7 {
8 if (empty($ns))
9 {
10 return $this->writeElement( $element, $value );
11 }
12 else
13 {
14 return $this->writeElementNS( $ns, $element, $uri, $value );
15 }
16 }
17
18 public function beginElement($ns, $element, $uri)
19 {
20 if (empty($ns))
21 {
22 return $this->startElement( $element );
23 }
24 else
25 {
26 return $this->startElementNS( $ns, $element, $uri );
27 }
28 }
29
30 public function writeData( $value, $element_name )
31 {
32 $is_wrap_into_cdata = ! ( empty($value) or is_numeric($value) );
33 $wrap_value_into_cdata = apply_filters('wp_all_export_is_wrap_value_into_cdata', $is_wrap_into_cdata, $value, $element_name);
34 if ( $wrap_value_into_cdata === false ) $this->text($value); else $this->writeCData($value);
35 }
36
37 }