Overview

Namespaces

  • Contrib
    • Bundle
      • CoverallsBundle
        • Console
        • Entity
      • CoverallsV1Bundle
        • Api
        • Collector
        • Command
        • Config
        • Entity
          • Git
    • Component
      • File
      • Log
      • System
        • Git
  • Guzzle
    • Batch
      • Exception
    • Cache
    • Common
      • Exception
    • Http
      • Curl
      • Exception
      • Message
      • QueryAggregator
    • Inflection
    • Iterator
    • Log
    • Parser
      • Cookie
      • Message
      • UriTemplate
      • Url
    • Plugin
      • Async
      • Backoff
      • Cache
      • Cookie
        • CookieJar
        • Exception
      • CurlAuth
      • ErrorResponse
        • Exception
      • History
      • Log
      • Md5
      • Mock
      • Oauth
    • Service
      • Builder
      • Command
        • Factory
        • LocationVisitor
          • Request
          • Response
      • Description
      • Exception
      • Resource
    • Stream
  • PHP
  • Psr
    • Log
  • Symfony
    • Component
      • Config
        • Definition
          • Builder
          • Exception
        • Exception
        • Loader
        • Resource
        • Util
      • Console
        • Command
        • Formatter
        • Helper
        • Input
        • Output
        • Tester
      • EventDispatcher
        • Debug
      • Finder
        • Adapter
        • Comparator
        • Exception
        • Expression
        • Iterator
        • Shell
      • Stopwatch
      • Yaml
        • Exception

Classes

  • XmlUtils
  • Overview
  • Namespace
  • Class
  • Tree
  • Todo

Class XmlUtils

XMLUtils is a bunch of utility methods to XML operations.

This class contains static methods only and is not meant to be instantiated.

Namespace: Symfony\Component\Config\Util
Author: Fabien Potencier <fabien@symfony.com>
Author: Martin HasoĊˆ <martin.hason@gmail.com>
Located at config/Symfony/Component/Config/Util/XmlUtils.php
Methods summary
public static DOMDocument
# loadFile( string $file, string|callable $schemaOrCallable = null )

Loads an XML file.

Loads an XML file.

Parameters

$file
string
$file An XML file path
$schemaOrCallable
string|callable
$schemaOrCallable An XSD schema file path or callable

Returns

DOMDocument

Throws

InvalidArgumentException
When loading of XML file returns error
public static array
# convertDomElementToArray( DomElement $element, Boolean $checkPrefix = true )

Converts a \DomElement object to a PHP array.

Converts a \DomElement object to a PHP array.

The following rules applies during the conversion:
* Each tag is converted to a key value or an array if there is more than one "value"
* The content of a tag is set under a "value" key (<foo>bar</foo>) if the tag also has some nested tags
* The attributes are converted to keys (<foo foo="bar"/>)
* The nested-tags are converted to keys (<foo><foo>bar</foo></foo>)

Parameters

$element
DomElement
$element A \DomElement instance
$checkPrefix
Boolean
$checkPrefix Check prefix in an element or an attribute name

Returns

array
A PHP array
public static mixed
# phpize( mixed $value )

Converts an xml value to a php type.

Converts an xml value to a php type.

Parameters

$value
mixed
$value

Returns

mixed
protected static
# getXmlErrors( mixed $internalErrors )
php-coveralls API documentation generated by ApiGen 2.8.0