> Sorry for writing directly to you, but I am in quite a hurry.
> First thank you for your nice project.
If you are in a hurry, then you are better to post to phpxpath-users, as =
that way it won't be just me who sees your questions.
> Now my problem: I use your class and I am not getting the
> right data.
> It outputs the data, but it is still in a <![CDATA[ ]]> part.
> You could find an example here:
> http://cocaman.ch/schulung/xml/xpath-test.php
>=20
> Should I replace the cdata stuff by myself? Or do I have
> misconfigured something with PHP.Xpath?
The short answer is that you'll have to deal with it yourself. =20
For the long answer, search in the code for these symbols to see a full =
description of the problems:
- parsInCData
- xml_set_default_handler
- xml_set_character_data_handler
- _translateAmpersand
CData caused parsing problems, and as such it's structure is not stored, =
rather it is treated as part of the containing textnode. You might be =
able to "formally" remove the <!CDATA[ ]]> parts passing the string you =
get back from wholeText() through the xml parser, but you'd have to wrap =
it in <> stuff in order to make your string a valid xml document.
Nigel
|