Banshee
the secure PHP framework

XML library

Properties

  • depth (r):
  • data (r):
  • document (r):

Methods

  • open_tag($tag, $attributes = array()):
  • close_tag():
  • add_tag($tag, $data = null, $attributes = array()):
  • record($record, $name = null, $attributes = array(), $recursive = false):
  • add_xml($xml, $tag):
  • set_xslt_parameter($key, $value):
  • start_caching($id, $timeout = CACHE_TIMEOUT):
  • stop_caching():
  • abort_caching():
  • fetch_from_cache($id):
  • remove_from_cache($id):

Example

[php] open_tag("list"); $xml->add_tag("item", "Item 1"); $xml->add_tag("item", "Item 2"); $xml->add_tag("item", "Item 3"); $xml->close_tag(); ?> [/php]