/tag_utils/xml_utils.inc

Description

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

$Id: _tag_utils_xml_utils_inc.html,v 1.48.2.1 2005/05/12 01:52:15 hemna Exp $

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

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 Wed, 11 May 2005 18:21:15 -0700 by phpDocumentor 1.3.0RC3