[PHP] Re: DOM append to the top

2009-11-20 Thread Nathan Rixham
Matthew Croud wrote: > The XML looks like: > > > ... > ... > ... > <- new items are added here > > > This is what my code looks like: > > $y = $dom -> getElementsByTagName("item"); > $dom -> documentElement -> insertBefore($Xitem,$y); > > If trying to pass the top most "item" node to inse

[PHP] Re: Dom PDF Problem

2009-09-23 Thread Chris Wilson
This might help some people struggling with memory leak problems in DOMPDF. I haven't fixed it but it seems to have reduced the memory leak considerably. I have done 2 things: 1. Added a detruct function to the DOMPDF file in dompdf.cls.php where I unset everything. I call this each time in my l

[PHP] Re: DOM - Question about \0

2008-03-16 Thread Rob Richards
dav wrote: Hi, I have question about \0 character with DOM : What to do with the character \0 ? encode this character to obtain : ? or skip the character with str_replace("\0", '', $cdata) ? CDATA is raw data and why it doesnt get magically encoded. If you remove the charac

[PHP] Re: DOM

2007-07-27 Thread Man-wai Chang
Thanks to all. -- @~@ Might, Courage, Vision, SINCERITY. / v \ Simplicity is Beauty! May the Force and Farce be with you! /( _ )\ (Xubuntu 7.04) Linux 2.6.22.1 ^ ^ 17:35:01 up 15 days 19:39 1 user load average: 0.03 0.03 0.00 news://news.3home.net news://news.hkpcug.org news://news.new

Re: [PHP] Re: DOM

2007-07-26 Thread Larry Garfield
On Thursday 26 July 2007, Man-wai Chang wrote: > > Does Web 2.0 or maybe 3.0 offer some new types, say something > > like a real grid, or maybe a modal child popup? > > Java is just a specialized DOM... in my opinion. Java has absolutely nothing to do with the subject at hand. Java is a compile

[PHP] Re: DOM

2007-07-26 Thread M. Sokolewicz
Man-wai Chang wrote: Does Web 2.0 or maybe 3.0 offer some new types, say something like a real grid, or maybe a modal child popup? Java is just a specialized DOM... in my opinion. Where did you get this weird idea... JAVA by itself has nothing to do with the web or documents... It's commonly

[PHP] Re: DOM

2007-07-26 Thread Man-wai Chang
Does Web 2.0 or maybe 3.0 offer some new types, say something like a real grid, or maybe a modal child popup? Java is just a specialized DOM... in my opinion. -- @~@ Might, Courage, Vision, SINCERITY. / v \ Simplicity is Beauty! May the Force and Farce be with you! /( _ )\ (Xubuntu 7.04)

[PHP] Re: DOM support

2007-06-26 Thread Mikey
Mikey wrote: Hey! I have been looking through the docs writing test code and am going a little bit mad trying to work this out. Does anyone know where I can find a definitive list of DOM XML functions that are supported in specific versions of PHP? I write my code in Zend and it has 5.2.0,

[PHP] Re: DOM/XML Query

2006-02-06 Thread Barry
Andrew Clarke wrote: I'm having some problems using PHP5 on Windows 2000 Server, running IIS 5. When trying to access a document from a "xmldoc()" function the system responds with the following, *Fatal error*: Call to undefined function xmldoc() in *"XML Document"* on line *Number* ** How do I

[PHP] Re: DOM namespace prefix troubles

2005-11-02 Thread Ace McKool
Thanks Rob! That solved my probem. Thanks again! On 11/2/05, Rob <[EMAIL PROTECTED]> wrote: > > Ace McKool wrote: > > > What I'm trying to create is something like the following: > > > > > > > > > > I am unable to create the "" element with the "cac:" > namespace > > prefix. Any suggestions wo

[PHP] Re: DOM namespace prefix troubles

2005-11-02 Thread Rob
Ace McKool wrote: What I'm trying to create is something like the following: I am unable to create the "" element with the "cac:" namespace prefix. Any suggestions would be appreciated! $dom = new DOMDocument("1.0", "UTF-8"); $root = $dom->createElement('Notes'); $dom->appendChild($

[PHP] Re: DOM XML issue

2005-06-28 Thread Jason Barnett
Andrew Kachalo wrote: Hi! ... Fatal error: Call to undefined function domxml_open_file() in /Users/Andrew/Sites/portfolio/index.php on line 61 This is because PHP5 now has an object-oriented approach. You use DOMDocument's and/or SimpleXML to read your XML files. Also in the newest vers

[PHP] Re: DOM XML output whitespace

2004-05-25 Thread Dan Phiffer
Martin Geisler wrote: I don't remember any more where I found this, but with formatOutput = true; ?> you get what you ask for: formatted output. Excellent, that did the trick! Thanks, -Dan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: DOM XML output whitespace

2004-05-24 Thread Martin Geisler
[EMAIL PROTECTED] (Dan Phiffer) writes: > 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. I don't remember any more where I found this, but with formatOutput = true; ?> you get what you ask for: formatted output. -- Martin

Re: [PHP] Re: DOM XML and php

2004-03-15 Thread Lucian COZMA
way to transform xlm data from variable not open xml file with using DOMXML. tassos -Original Message- From: Lucian COZMA [mailto:[EMAIL PROTECTED] Sent: Friday, March 12, 2004 1:50 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Re: DOM XML and php True, but it does much more than that.

RE: [PHP] Re: DOM XML and php

2004-03-12 Thread Tassos T
Hi, I agree but I cannot find a way to transform xlm data from variable not open xml file with using DOMXML. tassos -Original Message- From: Lucian COZMA [mailto:[EMAIL PROTECTED] Sent: Friday, March 12, 2004 1:50 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Re: DOM XML and php True

Re: [PHP] Re: DOM XML and php

2004-03-12 Thread Lucian COZMA
ide functions to create XML docs from the beginning and manipulate xml data like add or remove xml elements. I hope to help you. tassos -Original Message- From: Lucian COZMA [mailto:[EMAIL PROTECTED] Sent: Thursday, March 11, 2004 5:31 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Re: DOM XML

RE: [PHP] Re: DOM XML and php

2004-03-12 Thread Tassos T
elements. I hope to help you. tassos -Original Message- From: Lucian COZMA [mailto:[EMAIL PROTECTED] Sent: Thursday, March 11, 2004 5:31 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Re: DOM XML and php I have a question please (I'm trying to clarify something for me): Why do you pr

Re: [PHP] Re: DOM XML and php

2004-03-11 Thread Lucian COZMA
CTED]> wrote in message news:[EMAIL PROTECTED] > Thanks I use this code and it works. > > tassos > > > -Original Message- > From: Lucian COZMA [mailto:[EMAIL PROTECTED] > Sent: Thursday, March 11, 2004 4:03 PM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] Re

RE: [PHP] Re: DOM XML and php

2004-03-11 Thread Tassos T
Thanks I use this code and it works. tassos -Original Message- From: Lucian COZMA [mailto:[EMAIL PROTECTED] Sent: Thursday, March 11, 2004 4:03 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Re: DOM XML and php It should look something like (pretty much extracted from manual): lalala

Re: [PHP] Re: DOM XML and php

2004-03-11 Thread Lucian COZMA
ocess($xp, $xml_string, 'myxsl.xsl'); > >echo $result_xsl; > >xslt_free($xp); > > > > ?> > > > > Please advise > > > > Regards > > > > tassos > > > > -Original Message- > > From: Lucian COZMA [mai

Re: [PHP] Re: DOM XML and php

2004-03-11 Thread Lucian COZMA
_string, 'myxsl.xsl'); >echo $result_xsl; >xslt_free($xp); > > ?> > > Please advise > > Regards > > tassos > > -Original Message- > From: Lucian COZMA [mailto:[EMAIL PROTECTED] > Sent: Thursday, March 11, 2004 3:20 PM > To: [E

Re: [PHP] Re: DOM XML and php

2004-03-11 Thread Lucian COZMA
t;$result_xsl = xslt_process($xp, $xml_string, 'myxsl.xsl'); >echo $result_xsl; >xslt_free($xp); > > ?> > > Please advise > > Regards > > tassos > > -----Original Message- > From: Lucian COZMA [mailto:[EMAIL PROTECTED] > Sent: Thursday, March

RE: [PHP] Re: DOM XML and php

2004-03-11 Thread Tassos T
:20 PM To: [EMAIL PROTECTED] Subject: [PHP] Re: DOM XML and php blabalabalab'; if(!$dom = domxml_open_mem($xmlstr)) { echo "Error while parsing the document\n"; exit; } // The root domdocument node $root = $dom->document_element(); ///Dump the content back to string var_d

[PHP] Re: DOM XML and php

2004-03-11 Thread Lucian COZMA
blabalabalab'; if(!$dom = domxml_open_mem($xmlstr)) { echo "Error while parsing the document\n"; exit; } // The root domdocument node $root = $dom->document_element(); ///Dump the content back to string var_dump($dom->dump_mem()); ?> Read the manual in the DOM XML functions section. Regards, L

[PHP] Re: DOM XML : experimental ?

2002-07-15 Thread Richard Lynch
>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 EXPERI

[PHP] Re: DOM XML

2002-04-25 Thread J Smith
I'm assuming it's that stray dollar sign you have in front of domxml_root. J Sebastian A. wrote: > 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

[PHP] Re: DOM XML?

2002-01-04 Thread Jeff Warrington
In <[EMAIL PROTECTED]>, Yasuo Ohgaki wrote: > Daniele Baroncelli wrote: > >> 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 ex

[PHP] Re: DOM XML?

2001-12-14 Thread Yasuo Ohgaki
Daniele Baroncelli wrote: > 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 no