Program_Root/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.34 2003/08/01 01:37:37 hemna Exp $

Functions
array_to_xml_tree (line 108)

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 51)

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 70)

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 94)

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 29)

This is a simple wrapper function for building XMLTagClass objects

  • return:

    object

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

Documention generated on Thu, 31 Jul 2003 18:34:08 -0700 by phpDocumentor 1.2.0