Re: Problem with XML
| From: | Jason Barnett | Date: | Thu, 24 Feb 2005 14:08:03 +0000 |
| Subject: | Re: Problem with XML | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-209342@lists.php.net to get a copy of this message | ||
Juan Antonio Garrido wrote:
> Hi everybody
>
> What functions should be use for XML in PHP 4? I've tried with DOM Functions
> but it appears an error "not class", DOM-XML Functions(experimental) don't
> work well.
>
> Thank you...
You want the xml_* functions. You start out with xml_parser_create() to
<surprise>create an XML parser</surprise>. Not being mean, just making
a point that most PHP functions do what you expect them to do. This
function (as well as related functions) can be found here:
http://php.net/manual/en/function.xml-parser-create.php
DOM is what you use in PHP5. If you're working on a new project I
highly recommend that you upgrade to PHP5 and use the XML facilities
there instead...
http://php.net/manual/en/ref.dom.php
--
Teach a man to fish...
NEW? | http://www.catb.org/~esr/faqs/smart-questions.html
STFA | http://marc.theaimsgroup.com/?l=php-general&w=2
STFM | http://php.net/manual/en/index.php
STFW | http://www.google.com/search?q=php
LAZY |
http://mycroft.mozdev.org/download.html?name=PHP&submitform=Find+search+plugins
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc