Miguel J. Jiménez wrote:
Hi, after enabling error reporting with E_ALL I am having this strange
warning while loading a XML:
Warning: DOMDocument::load() [function.DOMDocument-load]: Extra content
at the end of the document in [...]
The code I use is:
$dom = new DOMDocument();
$dom->load("http
[EMAIL PROTECTED] (Christian Stocker) wrote in
news:[EMAIL PROTECTED]:
>> Looking at the two approaches, I preferred using DOMXML and as it was
>> based on libxml2 & libxslt it seemed to be the better option.
>
> I don't get that. The new DOM and XSL extension is still based on
> libxml2 and li
On 25 Jul 2004 12:34:15 -, Scrumpy <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] (Jason Barnett) wrote in
> news:[EMAIL PROTECTED]:
>
> > Well you are right that if
> > you used the old DOMXML functions in PHP4 that there is no clean way
> > to move that code forward without rewriting / suppo
[EMAIL PROTECTED] (Jason Barnett) wrote in
news:[EMAIL PROTECTED]:
> Well you are right that if
> you used the old DOMXML functions in PHP4 that there is no clean way
> to move that code forward without rewriting / supporting two
> infrastructures. I'm not a core developer but my guess is that t
Scrumpy wrote:
Sorry for the repeated posts. I didn't know that they got queued awaiting
confirmation of my email address :)
Yeah, I was wondering about the reposts. Well you are right that if you used
the old DOMXML functions in PHP4 that there is no clean way to move that code
forward without
Sorry for the repeated posts. I didn't know that they got queued awaiting
confirmation of my email address :)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
This is not an option for me... I'm writing a CMS and want to be able to
do things for other users without specific compile options.
-Michael
Russell P Jones wrote:
This may not be what you are looking for, but the DOMXML object since PHP
4.0 works great --- you do have to compile PHP using the -
Thanks for your reply Stefan.
I hadn't really read the manual, had just been working with DOM level 2 in
java before, and the fact that attributes are not children of elements,
puzzled me. But after reading the DOM level 2 spesification, it may seem
that you are right.
To me, the fact that attri
Hello
As far as I rememeber according to DOM Level 2 Elementnodes contain
Attributenodes but the Attributenode has no association with its
Elementnode meaning you can't tell from an Attributenode which Elementnode
it belongs to unless you remember it in your code. Thus an Attributenode
is not p
thanks for your answer. I hoped there was a function to specify the doctype
of the document generated. Apparently there isn't. It's as sad thing as I
have to create another script just to add the doctype.
Can someone just confirm me it's not possible with php to do what I want?
I find it stra
Don't know much about DOM, but it seems you can use dump_mem() to dump
the xml into a string, and then replace your first line
Raphael Bauduin wrote:
>Please, don't tell me I can't set the doctype with php!?
>Will I have to user a 3 liner in perl to set the doctype? :(
>
>Raph
>
>
>Raphael Baud
Please, don't tell me I can't set the doctype with php!?
Will I have to user a 3 liner in perl to set the doctype? :(
Raph
Raphael Bauduin wrote:
> Hi,
>
> I'm generating XML files with the domxml functions. Everything works fine,
> but I can't set the .
>
> I tried to add a textnode, but <>
Hello,
You can try Krysalis to solve your problems.
We have fully implemented UTF-8 support in both XML generation and XSL
transformation, using a CDATA passthrough technique.
http://www.interakt.ro/products/Krysalis/
As we have developed the site of the Romanian Ministry of IT&C using
Krysal
Check that the file employees.xml exists, and try providing it with an
absolute reference rather than relative (eg:
"c:\\xmlfiles\\employees.xml"). Also check that the xml file renders ok in
Internet Explorer.
> the line that gives the error...
>
> Warning: failed to load external entity "employ
the line that gives the error...
Warning: failed to load external entity "employees.xml" in
C:\Inetpub\wwweloanshop\test\xml.php on line 36
What employees?
is...
$doc = xmldocfile("employees.xml") or die("What employees?");
"Lallous" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news
hmm!
1)Can you show the code @ line 36 if possible
2)try to escape the "\" (replace every \ with \\)
"Brian McGarvie" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I have a problem with DOMXML...
>
> I installed it and it is showing up in a phpinfo() script
I am having similar difficulties with DOMXML in php4.2.0.
phpinfo() indicates all is well with the setup...
If you get some response, please share!
Thanks!
Mike
"Thalis A. Kalfigopoulos" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I'm trying to get DOMXML
Hi
Lucky wrote:
> Hello all, I have a little problem with encodings with libxml2 resp. domxml
> in php.
>
> In our site we're storing articles as XML, ISO-8859-1 encoded (indicated in
> xml-header). Libxml2 is doing all the internal processing in UTF-8, so the
> article gets translated to UTF-8.
18 matches
Mail list logo