normalize()" HREF="function.dom-domdocument-normalize.html">PHP ManualPrevNextDOMDocument->loadXML() ...">
DOMDocument->loadXML()

DOMDocument->loadXML()

(no version information, might be only in CVS)

DOMDocument->loadXML() --  Load XML from a string

Description

class DOMDocument {

mixed loadXML ( string source [, int options] )

}

Loads an XML document from a string.

This method may also be called statically to load and create a DOMDocument object. The static invocation may be used when no DOMDocument properties need to be set prior to loading.

Parameters

source

The string containing the XML.

Return Values

Returns TRUE on success or FALSE on failure. If called statically, returns a DOMDocument.

Examples

Example 1. Creating a Document

<?php
$doc
= new DOMDocument();
$doc->loadXML('<root><node/></root>');
echo
$doc->saveXML();
?>

Example 2. Static invocation of loadXML

<?php
$doc
= DOMDocument::loadXML('<root><node/></root>');
echo
$doc->saveXML();
?>



Links
iPowerWeb $7.95/mo
  • 50GB Diskspace
  • 750GB Bandwidth
  • CGI Perl PHP SSI SSL MySQL
  • Free Domain Name

Bluefish $6.95/mo
  • 6GB Diskspace
  • 100GB Bandwidth
  • PHP Perl MySQL SSI CGI SSL
  • Free Domain
  • No Setup Fees
  • No Hidden Fees

Bluehost $6.95/mo
  • 50GB Diskspace
  • 999GB Bandwidth
  • Host 6 Domains
  • CGI Ruby(RoR) Perl PHP MySQL PostgreSQL
  • Support Custom PHP.INI
  • SSH SSL FTP Stats
  • Free Domain Forever
  • 27/7 Support

Hosting Companies


Partners


Quick Search
Platform

Price

Diskspace

Bandwidth


 Advance Search
 Show All Companies


Reference & Manual

If you are looking for dedicated servers, look no further. HostPulse.com is a site devoted to help web users find cheap web hosting and dedicated servers.


Free Sitemap Generator Host Login/Register | Contact Us | Terms | Add Links
Thumbnails by Thumbshots.org © 2002-2008 CheapHostDir.com