XmlMapper
Turns strings into XML
Instance Methods
| Returns | Signature and Description |
|---|---|
SimpleXMLElement | toXml()Converts a string to a SimpleXMLElement. |
Method Details
toXml
public function
toXml(?string $xml)Converts a string to a SimpleXMLElement.
| Name | Type | Description |
|---|---|---|
$xml | ?string | The string to convert |
| Type | Description |
|---|---|
SimpleXMLElement | The XML version |
| Type | Conditions |
|---|---|
Illegible | If the string is not XML |