# XML requirements: Are the docs incorrect ?

- Thread: https://externals.io/message/12385
- Original archive: https://news-web.php.net/php.internals/12385
- Started by Naik on 2004-08-27T00:51:35+00:00
- Messages: 3
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #12385 — Naik — 2004-08-27T00:51:35+00:00

URL: https://externals.io/message/12385#12385

http://www.zend.com/php5/andi-book-excerpt.php says 

"In PHP 5, all XML extensions have been rewritten to use the superb libxml2 XML toolkit"

But the official docs http://us4.php.net/manual/en/ref.xml.php
on XML extension say under the requirements section

 
" This extension uses expat, which can be found at 
 http://www.jclark.com/xml/expat.html."

There used to be some talk about "bundled libxml".
I couldn't find any bundled libxml2 in the PHP5 distribution.
Is ext/libxml2 it ? 
.. or do I need to pick it up from xmlsoft.org ?

I would prefer to use libxml2 for all extensions really.

-- Roshan

---

## #12386 — George Schlossnagle — 2004-08-27T01:02:07+00:00

URL: https://externals.io/message/12385#12386 · In reply to: #12385

>
> http://www.zend.com/php5/andi-book-excerpt.php says
>
> "In PHP 5, all XML extensions have been rewritten to use the superb 
> libxml2 XML toolkit"
>
> But the official docs http://us4.php.net/manual/en/ref.xml.php
> on XML extension say under the requirements section
>
>
> " This extension uses expat, which can be found at
>  http://www.jclark.com/xml/expat.html."

This is no longer correct.  It _can_ use expat, but by default it uses 
an expat compat layer.

>
> There used to be some talk about "bundled libxml".
> I couldn't find any bundled libxml2 in the PHP5 distribution.
> Is ext/libxml2 it ?
> .. or do I need to pick it up from xmlsoft.org ?

You do.  There was active discussion about a year and a half ago as to 
whether to bundle it or not.  The decision was 'not'.  Search the 
archives if you are interested in the various points.

> I would prefer to use libxml2 for all extensions really.

Then you're in luck, because PHP5 does.

George

---

## #12388 — Friedhelm Betz — 2004-08-27T01:08:17+00:00

URL: https://externals.io/message/12385#12388 · In reply to: #12385

Hi,

> http://www.zend.com/php5/andi-book-excerpt.php says
>
> "In PHP 5, all XML extensions have been rewritten to use the superb libxml2
> XML toolkit"
>
> But the official docs http://us4.php.net/manual/en/ref.xml.php
> on XML extension say under the requirements section

> " This extension uses expat, which can be found at
>  http://www.jclark.com/xml/expat.html."

Unfortunately nobody from phpdoc had found the spare time to update the docs.
If you file a bug report at bugs.php.net (Documentation problem) it will be 
adressed sooner or later, as somebody finds time.

> There used to be some talk about "bundled libxml".
> I couldn't find any bundled libxml2 in the PHP5 distribution.
> Is ext/libxml2 it ?
> .. or do I need to pick it up from xmlsoft.org ?

Yes, you have it to pick up from xmlsoft.org

> I would prefer to use libxml2 for all extensions really.

It's possible, read the output from ./configure --help ;-)


Friedhelm
-- 
http://www.jungle-world.com/
