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
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
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!
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
> 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
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 );
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
> -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
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
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
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 .
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/
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
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
>
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
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
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
> >
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
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
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/)
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
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-
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
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
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
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ü
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
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
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
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
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
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
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
101 - 133 of 133 matches
Mail list logo