• PHP Video Tutorials

PHP - XML Writer Functions


Advertisements

XMLWriter extension internally has libxml xmlWriter API and is used to write/create the contents of an XML document. The XML documents generated by this are non-cached and forward-only.

Installation

This extension enable by default. Default command line for disable at compile time is --disable-xml

Runtime Configuration

This extension has no configuration directives defined in php.ini.

List of Functions

PHP − indicates the earliest version of PHP that supports the function.

Sr.No Function & Description PHP
1

xmlwriter_end_attribute

This function is used to end the current attribute tag.

5
2

xmlwriter_end_cdata

This function is used to end the current CDATA tag.

5
3

xmlwriter_end_comment

This function is used to end the current comment tag.

5
4

xmlwriter_end_document

This function is used to create an end tag of the current document.

5
5

xmlwriter_end_dtd

This function is used to end the current DTD tag.

5
6

xmlwriter_end_dtd_attlist

This function is used to end the current DTD AttList tag.

5
7

xmlwriter_end_dtd_element

This function is used to end the current DTD element tag.

5
8

xmlwriter_end_dtd_entity

This function is used to end the current DTD entity tag.

5
9

xmlwriter_end_element

This function ends the current element tag.

5
10

xmlwriter_end_pi

This function is used to end the current PI tag.

5
11

xmlwriter_flush

This function is used to flush the current buffer.

5
12

xmlwriter_full_end_element

This function is used to end the current element (even it is empty).

5
13

xmlwriter_open_memory

This function is used to create a new xmlwriter using memory.

5
14

xmlwriter_open_uri

This function creates a XMLWriter object for the specified file and returns it.

5
15

xmlwriter_output_memory

This function returns the current buffer.

5
16

xmlwriter_set_indent

This is used to set the indentation of the output XML document on/off.

5
17

xmlwriter_set_indent_string

This function is used to specify the string that should be used as indentation for the output XML file.

5
18

xmlwriter_start_attribute

This function is used to create a start attribute tag.

5
19

xmlwriter_start_attribute_ns

This function is used to create a start of the namespaced attribute tag.

5
20

xmlwriter_start_cdata

This function is used to create a start CDATA tag.

5
21

xmlwriter_start_comment

This function is used to start a comment tag.

5
22

xmlwriter_start_document

This function is used to create a document start tag.

5
23

xmlwriter_start_dtd

This function is used to create a start of the DTD tag.

5
24

xmlwriter_start_dtd_attlist

This function is used to create a start tag of the DTD AttList.

5
25

xmlwriter_start_dtd_element

This function is used to start a DTD element tag.

5
26

xmlwriter_start_dtd_entity

This function is used to create a DTD entity start tag.

5
27

xmlwriter_start_element

This function is used to create an element start tag.

5
28

xmlwriter_start_element_ns

This function create a namespaced element start tag.

5
29

xmlwriter_start_pi

This function is used to create a start PI tag.

5
30

xmlwriter_text

This function is used to write text in the current element.

5
31

xmlwriter_write_attribute

This function is used to create a full attribute.

5
32

xmlwriter_write_attribute_ns

This function is used to create a complete namespaced attribute tag.

5
33

xmlwriter_write_cdata

This function is used to creates a full CDATA tag.

5
34

xmlwriter_write_comment

This function is used to creates full comment tag.

5
35

xmlwriter_write_dtd

This function is used to create/write a full DTD tag.

5
36

xmlwriter_write_dtd_attlist

This function is used to create a full DTD AttList tag.

5
37

xmlwriter_write_dtd_element

This function is used to write/create a full DTD element tag.

5
38

xmlwriter_write_dtd_entity

This function is used to create/write a full DTD entity tag.

5
39

xmlwriter_write_element

This function is used to create a full element tag.

5
40

xmlwriter_write_element_ns

This function is used to create a full namespaced element tag.

5
41

xmlwriter_write_pi

This function is used to create full PI tag.

5
42

xmlwriter_write_raw

This function is used to write a raw XML text.

5
php_function_reference.htm

Useful Video Courses


Video

PHP Online Training

45 Lectures 9 hours

Malhar Lathkar

Video

Become PHP Facebook Developer: Password-Less Authentication

34 Lectures 4 hours

Syed Raza

Video

Ultimate PHP & MySQL Web Development Course & OOP Coding

84 Lectures 5.5 hours

Frahaan Hussain

Video

Learn PHP from Scratch

17 Lectures 1 hours

Nivedita Jain

Video

E Commerce Website Development In PHP With PDO

100 Lectures 34 hours

Azaz Patel

Video

PHP in Telugu

43 Lectures 5.5 hours

Vijay Kumar Parvatha Reddy

Advertisements