GoogleApiAdsCommon
[ class tree: GoogleApiAdsCommon ] [ index: GoogleApiAdsCommon ] [ all elements ]

Class: XmlUtils

Source Location: /Common/Util/XmlUtils.php

Class Overview


A collection of utility methods for working with XML.


Methods



Class Details

[line 34]
A collection of utility methods for working with XML.



[ Top ]


Class Methods


static method GetDomFromXml [line 41]

static DOMDocument GetDomFromXml( string $xml)

Gets the DOMDocument of the $xml.



Tags:

return:  the DOMDocument of the XML
throws:  DOMException if the DOM could not be loaded
access:  public


Parameters:

string   $xml   the XML to create a DOMDocument from

[ Top ]

static method PrettyPrint [line 56]

static string PrettyPrint( string $xml)

Returns a pretty printed XML. If the XML cannot be loaded a string stripped of any newlines is returned.



Tags:

return:  a pretty printed string
access:  public


Parameters:

string   $xml   the XML to pretty print

[ Top ]


Documentation generated by phpDocumentor 1.4.3