Class XMLUtility
Base functions
for dealing with
responses, headers
content and internal type
handling
-
Catapult\BaseUtilities
-
Catapult\XMLUtility
Methods summary
public
|
#
Make( XML & $baml, $values = null )
Takes a struct of
one dimensional XML
elements and makes
them a BaML tree
Takes a struct of
one dimensional XML
elements and makes
them a BaML tree
Provided object must
have its validating method available
Parameters
Returns
BaMLResource
|
public
|
#
MakePred( $xml )
make without baML
schema. Really just used for tests
make without baML
schema. Really just used for tests
|
public static
|
#
open( $tag, $baml = false )
default open
for baML verb
default open
for baML verb
|
public static
|
#
fullOpen( $tag, $baml = false )
a full open tag
for the BaML document
optionally checks if its valid
a full open tag
for the BaML document
optionally checks if its valid
|
public static
|
#
close( $tag, $baml = false )
a close tag
for the BaML document
optionally checks if its valid
a close tag
for the BaML document
optionally checks if its valid
|
public static
|
#
fullClose( $tag, $baml = false )
a full close tag
for BaML
optionally checks if its valid
a full close tag
for BaML
optionally checks if its valid
|
public static
|
#
getAttributesCollection( attributes: $attributes, $padding = 1 )
gets the attribute collection as a
string
gets the attribute collection as a
string
Parameters
- $attributes
- [array]
- $padding
|
public static
|
#
joinTree( verbs: $verbs )
simple xml join tree
sax wrapper around PHP's XML parser does
not provide
simple xml join tree
sax wrapper around PHP's XML parser does
not provide
Parameters
|
public
|
#
openTag( name: $name, $attributes = null )
open tag for a BaML
document. will join
attributes if available
open tag for a BaML
document. will join
attributes if available
Parameters
- $name
- BaML verb
- $attributes
|
public
|
#
closeTag( $name )
close tag for
BaML document. Stub, see
full close
close tag for
BaML document. Stub, see
full close
|
public static
|
#
indent( xml: $xml )
Pretty print the XML
document. Preserve spacing
tab at every newline
Pretty print the XML
document. Preserve spacing
tab at every newline
Parameters
|
public static
|
#
parse( element: $element )
parse a singular element
and return its pieces as either
an attribute, verb or text
parse a singular element
and return its pieces as either
an attribute, verb or text
Parameters
|
Properties summary
public static
array
|
$options
Basic options for
XML utility. XML
document encoding
and other options
should be set from setOption/1
Basic options for
XML utility. XML
document encoding
and other options
should be set from setOption/1
|
#
array(
"header" => '<?xml version="1.0" encoding="UTF-8"?>',
"encoding" => "UTF-8"
)
|