Docs for page xml_utils.inc

## /tag_utils/xml_utils.inc

Description

This file holds helper functions for things related to XMLTagClass objects/data

$Id: _2_X_tag_utils_xml_utils_inc.html,v 1.1.2.2 2005/09/02 00:07:37 hemna Exp $

- author: Walter A. Boring IV <waboring@newsblob.com>

Functions
array_to_xml_tree (line 110)

This function converts an array to an xml document.

void array_to_xml_tree (array $arr, string 1)

- string 1
- array $arr

xml_ctag (line 53)

This builds an xml tag, just as xml_tag() does, but turns on the auto wrapping of CDATA for the content for the tag.

- return: object

XMLTagClass &xml_ctag (string $name, [array $attributes = array()], mixed 2)

- mixed 2: - any content that lives in the PCDATA portion of the XML tag
- string $name: - the xml tag name
- array $attributes: - the name="value" pairs of tag attributes

xml_doctype (line 72)

This function is used to build a DOCTYPE tag

- return: object

DOCTYPEtag xml_doctype (string $doc_element, [string $source = "PUBLIC"], [string $link1 = NULL], [string $link2 = NULL])

- string $doc_element: - the document element name (ie. 'HTML')
- string $source: - the source (ie. 'PUBLIC')
- string $link1: - link 1 (ie. '-//W3C//DTD XHTML 1.0 Transitional//EN' )
- string $link2: - link 2 (ie. 'DTD/xhtml1-transitional.dtd' )

xml_stylesheet (line 96)

This function is used to build an xml-stylesheet tag

- return: object

XMLSTYLESHEETtag xml_stylesheet (string $href, [string $type = "text/css"])

- string $href: - the href attribute
- string $type: - the type attribute

xml_tag (line 31)

This is a simple wrapper function for building XMLTagClass objects

- return: object
- tutorial: Creating an XML tag object with a function.

XMLTagClass &xml_tag (string $name, [array $attributes = array()], mixed 2)

- mixed 2: - any content that lives in the PCDATA portion of the XML tag
- string $name: - the xml tag name
- array $attributes: - the name="value" pairs of tag attributes

Documentation generated on Thu, 1 Sep 2005 17:06:41 -0700 by phpDocumentor 1.3.0RC3