Function CMS_simple_xml_reader->pull_together

Definitions

sources/xml.php

  • Pull a portion of an XML tree structure back into textual XML.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: string

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$xml_children array No No required parameter N/A N/A Level of XML tree
$xml_namespaces array No No [] N/A N/A XML namespaces [ 'ns-prefix:' => 'http://example.com/namespace-uri' ]
$skip_tags array No No [] N/A N/A XML tags to skip
$skip_xml_namespaces array No No [] N/A N/A XML namespaces to skip any attributes or elements of

Returns

  • The combined XML
  • Type: string
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Pull a portion of an XML tree structure back into textual XML.
 *
 * @param  array $xml_children Level of XML tree
 * @param  array $xml_namespaces XML namespaces [ 'ns-prefix:' => 'http://example.com/namespace-uri' ]
 * @param  array $skip_tags XML tags to skip
 * @param  array $skip_xml_namespaces XML namespaces to skip any attributes or elements of
 * @return string The combined XML
 */

public function pull_together(array $xml_children, array $xml_namespaces = [], array $skip_tags = [], array $skip_xml_namespaces = []) : string