Re: [PHP] DOM XML compatible PHP4 & PHP5

2005-09-13 Thread Stephen Leaf
On Monday 12 September 2005 02:08 pm, Florent Monnier wrote: > Hi, > > Is there a way to make dom xml applications compatible PHP4 and PHP5? > > Thanks You can use the PHP_VERSION predefined constant or the function_exists(string) http://us2.php.net/manual/en/function.function-exists.php What I

[PHP] DOM XML compatible PHP4 & PHP5

2005-09-12 Thread Florent Monnier
Hi, Is there a way to make dom xml applications compatible PHP4 and PHP5? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] DOM->schemaValidate - line numbers??

2005-07-24 Thread John Smith
I'm validating an XML document against a schema using PHP 5's DomDocument. Easy enough to use, however it doesn't output the line numbers of errors in the XML file! Anybody know if it's possible? Thanks, John __ Do You Yahoo!? Tired of spam? Yahoo!

[PHP] DOM XML issue

2005-06-28 Thread Andrew Kachalo
Hi! I have installed PHP 5.0.4 on MacOS X 10.3 (Panther). Everything works fine exept DOM XML parser. After using "phpinfo" it shows (dom section): dom DOM/XML enabled DOM/XML API Version 20031129 libxml Version 2.5.4 HTML Support enabled XPath Support enabled XPointer Support enabled Schema

Re: [PHP] DOM: copying from one document to another

2005-06-01 Thread Chris Boget
> Is there any way I can copy an element from one DOM document to another > without having to dissect the original node/element and create a new > node/element from scratch using the new DOM document and append to it? Never mind. Apparently I can use clone_node(). When I tried that before I was

[PHP] DOM: copying from one document to another

2005-06-01 Thread Chris Boget
Consider the following test code: $doc = domxml_new_doc( '1.0' ); $baseDocument = domxml_new_doc( '1.0' ); $domNode = $doc->create_element( 'Node' ); $node = $doc->create_element( 'NodeChild' ); $textNode = $doc->create_text_node( 'this' ); $node->append_child( $textNode );

Re: [PHP] DOM: browse childnodes but not recursively

2005-05-30 Thread Victor Spång Arthursson
28 maj 2005 kl. 19.32 skrev Jared Williams: childNodes contains the textnodes too, in this case the whitespace between each of . So, to put it in short words; how do I do to browse the content of the element id="5" withuot doing it recursively? I want to receive a list when I call childNod

RE: [PHP] DOM: browse childnodes but not recursively

2005-05-28 Thread Jared Williams
> -Original Message- > From: Victor Spång Arthursson [mailto:[EMAIL PROTECTED] > Sent: 27 May 2005 17:25 > To: php-general@lists.php.net > Subject: [PHP] DOM: browse childnodes but not recursively > > Ciao! > > I really hope someone can help me on this, s

[PHP] DOM: browse childnodes but not recursively

2005-05-27 Thread Victor Spång Arthursson
Ciao! I really hope someone can help me on this, since I have been putting in to much time in it now, and I have to show off some results ;) The problem is that I can't browse nodelists in only one dimension, that is, whitout getting the sub-nodes of the nodes. My XML reads: Still g

Re: [PHP] DOM or DOM XML ?

2005-01-09 Thread Chris
Ok, that answers my questions. Thanks a lot! Chris Yann Larrivée wrote: Hello If you don't wish to have XML support please use. --disable-simplexml --disable-libxml --disable-xml By Default, libxml is needed to compile PHP5. It tries to load DOM. DOMXML is history :) Hop this helps. Yann On Januar

Re: [PHP] DOM or DOM XML ?

2005-01-09 Thread Yann Larrivée
Hello If you don't wish to have XML support please use. --disable-simplexml --disable-libxml --disable-xml By Default, libxml is needed to compile PHP5. It tries to load DOM. DOMXML is history :) Hop this helps. Yann On January 9, 2005 13:35, Chris wrote: > I'm currently compiling (at the .

[PHP] DOM or DOM XML ?

2005-01-09 Thread Chris
I'm currently compiling (at the ./configure step at the moment) 5.03 on Redhat 9 and ran into something that confused me. I got the error message included below. [EMAIL PROTECTED] ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-gd --with-mysql=/usr/local/mysql41 --with-mysqli=/usr/

Re: [PHP] DOM XML/XSL questions

2004-10-27 Thread Dusty Bin
Christian Stocker wrote: Use $dom->createProcessingInstruction($target, $data) ; and then append this to the document. that could maybe work see http://ch.php.net/manual/en/function.dom-domdocument-createprocessinginstruction.php for more details. Thank you Christian, the following code worked fi

Re: [PHP] DOM XML/XSL questions

2004-10-27 Thread Christian Stocker
On Wed, 27 Oct 2004 13:52:13 +0100, Dusty Bin <[EMAIL PROTECTED]> wrote: > I have a requirement to create an XML file which looks approximately like: > > > > >Item Text >... > > > The file needs to be formatted. > > I built a dom using the Dom extension, creating a document, adding >

[PHP] DOM XML/XSL questions

2004-10-27 Thread Dusty Bin
I have a requirement to create an XML file which looks approximately like: Item Text ... The file needs to be formatted. I built a dom using the Dom extension, creating a document, adding nodes, and I got a nicely formatted XML file from $dom->saveXML(); The only problem I had, was that I

Re: [PHP] DOM loadXML not loading doctype as expected in PHP5

2004-08-31 Thread Christian Stocker
On Tue, 31 Aug 2004 11:47:22 -0400, David Numan <[EMAIL PROTECTED]> wrote: > It worked! Thank you so much! no problem > I couldn't find documentation for this anywhere. I think I will add a > note on the DOM Function page in the php docs. The properties are unfortunately not documented yet :( An

Re: [PHP] DOM loadXML not loading doctype as expected in PHP5

2004-08-31 Thread David Numan
It worked! Thank you so much! I couldn't find documentation for this anywhere. I think I will add a note on the DOM Function page in the php docs. -dave On Tue, 2004-08-31 at 01:23, Christian Stocker wrote: > On Tue, 31 Aug 2004 00:27:25 -0400, David Numan <[EMAIL PROTECTED]> wrote: > > Hi > >

Re: [PHP] DOM loadXML not loading doctype as expected in PHP5

2004-08-30 Thread Christian Stocker
On Tue, 31 Aug 2004 00:27:25 -0400, David Numan <[EMAIL PROTECTED]> wrote: > Hi > > I'm working on a project using PHP5 and I'm using the DOM extension > quite heavily. I need to be able to store various character entities > such as $nbsp; and é Note: this is for a custom XML document, not > stand

[PHP] DOM loadXML not loading doctype as expected in PHP5

2004-08-30 Thread David Numan
Hi I'm working on a project using PHP5 and I'm using the DOM extension quite heavily. I need to be able to store various character entities such as $nbsp; and é Note: this is for a custom XML document, not standard (X)HTML. When I load my XML string into my domDocument I've been trying variations

[PHP] DOM XML output whitespace

2004-05-23 Thread Dan Phiffer
Hello, Is there a way to get DOM XML to insert human-friendly whitespace between elements created programmatically? I'm using PHP 5 these days, so I guess I'm looking for some way to tell a DomDocument to prettify its save() output. Thanks! -Dan -- PHP General Mailing List (http://www.php.net/)

[PHP] DOM XML and php

2004-03-11 Thread Tassos T
Hello, I face a problem. I have a php script and I send a xml request to a server. After I receive xml data but I have this data to an php string variable. How to create a xml dom with out to write a xml file ? I want to use a xslt to tranform that xml data. Any idea ? Thanks tassos -- PHP

[PHP] DOM appendChild question

2004-02-25 Thread Dan Phiffer
I'm getting an error from the following code, but the error message hasn't given me many leads: $doc = new DomDocument(); $doc->loadXML(''); $hello = new DomDocument(); $hello->loadXML('Hello world!'); $xp = new DomXPath($doc); $body = $xp->query('/html/body')->item(0); $body->appendChild($hello-

Re: [PHP] DOM XML difference between PHP versions 4.2.1 and 4.3.3

2003-10-24 Thread Tom Rogers
Hi, Friday, October 24, 2003, 9:37:07 PM, you wrote: S> Hello S> I wonder if anyone can help me with this problem or suggest an alternative S> strategy. S> I have two PHP boxes, one windows box running PHP version 4.2.1 and DOM XML S> version 2.4.9, and the other one a FreeBSD box running PHP ve

[PHP] DOM XML difference between PHP versions 4.2.1 and 4.3.3

2003-10-24 Thread Simon
Hello I wonder if anyone can help me with this problem or suggest an alternative strategy. I have two PHP boxes, one windows box running PHP version 4.2.1 and DOM XML version 2.4.9, and the other one a FreeBSD box running PHP version 4.3.3 and DOM XML version 2.5.11. What I need to do is to join

[PHP] DOM setting encoding attribute

2003-08-27 Thread Maciek Ruckgaber Bielecki
Hi there everybody !! i have been trying to set the encoding attribute in the document definition, using the DOM model any idea about some info ??? Thanks in advance!!! -- Maciek Ruckgaber Bielecki -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/un

[PHP] Re: PHP DOM XML Function

2003-03-14 Thread Alexandru COSTIN
lexandru COSTIN Chief Operating Officer http://www.interakt.ro/ +4021 411 2610 "Fgôk ÞôündÉö" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > do you have any idea about PHP DOM XML functions? > when will PHP DOM XML functions be stable? > > > Fatih Üstü

[PHP] PHP DOM XML Function

2003-03-14 Thread Fatih Üstündağ
do you have any idea about PHP DOM XML functions? when will PHP DOM XML functions be stable? Fatih Üstündağ Yöre Elektronik Yayımcılık A.Ş. 0 212 234 00 90 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] DOM XML : experimental ?

2002-07-14 Thread Mario de Mello Bittencourt Neto
Hi, I am planning to use PHP to develop some scripts that will need to create and manipulate html pages. One of the things that will be created is a DOM tree of the html. After reading the manual I've found that php supports the event-driven and dom xml, but with the latter tagged as EXPERIM

[PHP] DOM XML

2002-04-25 Thread Sebastian A.
Hello, I have been recently doing experiments with the DOM XML function and I am (not surprisingly) having some problems with it. When I try to run the code below, I get an error saying I am trying to use and endefined function. To me it seems that the DOM XML extension is working fine, because I

[PHP] DOM XML Issues with 4.1.0?

2001-12-16 Thread Mark
Hello. I developed a pretty cool website whose content is entirely specified in XML, and use PHP DOM to convert it to HTML (XSL would be a bit painful). Now, with PHP 4.0.6 and libxml2-2.4.7, everything worked fine, except that there was a huge memory leak somewhere in the PHP

[PHP] DOM XML?

2001-12-14 Thread Daniele Baroncelli
Hello, I would like to restyle one big site in XML and I would like some brief straight info/suggestions. I am definitely interested in DOM XML, but as far as I can understand, the module is still experimental and there to main risks: - The module is not completely stable - The functions are lik

[PHP] DOM

2001-08-29 Thread Jean-Charles Preaux
Hello I'm looking for someone who have ever used DOM with PHP. Actually, i've a trouble with CDATA section when i descend the tree of my XML document. Does someone can help me ? Thx Jean-Charles Preaux -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTE

[PHP] DOM XML module

2001-08-16 Thread Anders Östling
Hi I need to use the DOMXML functions on a PHP 4.0.4 (Mandrake 8.0) page, but the module is not there by default. Having downloaded the sources and tried to rebuild from scratch, I get a bunch of new dependency problems. Looks like building a full featured PHP is not that easy,,, So my questi

<    1   2