[PHP] Re: DOMXML Warning

2008-02-13 Thread Nathan Rixham
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

Re: [PHP] Re: DOMXML support should be added to PHP5

2004-07-25 Thread Scrumpy
[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

Re: [PHP] Re: DOMXML support should be added to PHP5

2004-07-25 Thread Christian Stocker
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

[PHP] Re: DOMXML support should be added to PHP5

2004-07-25 Thread Scrumpy
[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

[PHP] Re: DOMXML support should be added to PHP5

2004-07-23 Thread Jason Barnett
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

[PHP] Re: DOMXML support should be added to PHP5

2004-07-23 Thread Scrumpy
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

[PHP] Re: DOMXML...

2003-07-15 Thread Michael Smith
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 -

Re: [PHP] Re: domxml memberfunction not dom compliant??

2003-01-30 Thread Øyvind Vestavik
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

[PHP] Re: domxml memberfunction not dom compliant??

2003-01-29 Thread SLanger
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

Re: [PHP] Re: domxml and setting the DOCTYPE

2002-09-24 Thread Raphael Bauduin
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

Re: [PHP] Re: domxml and setting the DOCTYPE

2002-09-24 Thread Marek Kilimajer
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

[PHP] Re: domxml and setting the DOCTYPE

2002-09-24 Thread Raphael Bauduin
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 <>

[PHP] Re: Domxml: coping with UTF-16

2002-09-06 Thread Alexandru COSTIN
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

Re: [PHP] Re: DOMXML...

2002-07-31 Thread Dan Hardiker
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

[PHP] Re: DOMXML...

2002-07-31 Thread Brian McGarvie
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

[PHP] Re: DOMXML...

2002-07-31 Thread lallous
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

[PHP] Re: DOMXML in 4.2.0 problems

2002-05-10 Thread Mike P
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

[PHP] Re: DOMXML and encodings (php4.1.2, libxml2.4.16)

2002-03-24 Thread Stefan Livieratos
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.