php-groups.com | Post Question | Search | About | Groups | Contact | Register | Login



php notes (593)

php bugs (293)

php cvs (289)

php doc cvs (213)

php qa reports (199)

php doc fr (184)

php doc de (159)

php doc bg (157)

php webmaster (152)

php general (150)


php.xml.dev Post New
Items(42)
Subject Posted Replies From
First message of 2009

Uau XML represents no problem to the PHP community, no messages in 2009 so far. Good or bad, it represents a small movement and here I am to contribute a little (even if it's to promote myself): XML Debugger, award winning class posted in PHPClasses.org and well explained in my blog, thalesjacobi.com Original post http://www.thalesjacobi.com/2009/09/debug-xml-document-with-php.html Hosting repository and API documentation http://xml.bubaweb.com/php_xml_debugger.html PHPClasses package address http://www.phpclasses.org/browse/package/5675.html

11/25/2009 11:29:12 AM 0 thales.jac...@wonderstore.com ("Thales Jacobi")
Politics

deterministic billions depositing bluntended recode orphaning modification coefficients donggl

10/26/2008 5:00:43 PM 0 ...@carpinterialuque.com (Amy)
Politics

kc hhoj globbing subprogram spacewar peta handing frontpanel expresses

10/26/2008 11:00:44 AM 0 ...@carpinterialuque.com (Amy)
Politics

usenetter adger required specmark composing generational wins shifted bozoish

10/24/2008 4:01:23 AM 0 ...@carpinterialuque.com (Amy)
Politics

damaged tilting fatally veryhighlevel mutating unrelieved plants spices fx

10/22/2008 10:04:07 AM 0 ...@carpinterialuque.com (Amy)
"Invalid hexadecimal character reference" error parsing an XML with SAX processor

Hy to everyone I have created a simple SAX parser for a very simple XML file. When I run the code that follows I get this error: "Invalid hexadecimal character reference" The strange thing is If I change the "chunk size" for the data I send to the parser, the error row changes. This behaviour is very strange! I have done a one more test and I have set the chunkSize equals to the file size and I have the same error at the end of the file. The same XML file processed with another language doesn't raise any error. I use PHP 5.2.3 and a LAMP (AppServ Open Project - 2.5.9 fo

8/7/2008 9:26:19 PM 0 rbattist...@acm.org (Roberto Battistoni)
Troubles with importing a node from another DOMDocument

Hi! I have a trouble with importing a node from one DOMDocument to another. I have no troubles with MSXML lib, but during porting my sourcecode to PHP i faced this: <? $xml = new DOMDocument('1.0', 'utf-8'); $xml2 = new DOMDocument('1.0', 'utf-8'); $el = $xml->createElement("smth"); $el2 = clone $el; $xml2->appendChild($el2); ?> OUTPUT: Fatal error: Uncaught exception 'DOMException' with message 'Wrong Document Error' in D:\www\joomla\libraries\bc\2.php:9 Stack trace: #0 D:\www\joomla\libraries\bc\2.php(9): DOMNode->appendChild(Object(DOMElement)) #1 {main} thro

7/17/2008 8:44:58 AM 0 ssazo...@mcode.ru ("Stanislav Sazonov")
Howto: Remove XML, doctype and top-level namespace declarations from DOMDocument

Hi all, This silly little problem took quite a while to figure out without using any regular expression hacks, so here goes (example using XHTML namespace): // Initialize $doc = new DOMDocument; $doc->load('somefile.xhtml'); // Remove XHTML namespace declaration $doc->documentElement->removeAttributeNS('http://www.w3.org/1999/xhtml', ''); // Get the XML contents without XML and doctype declarations $text => $doc->saveXML($doc->documentElement)) // Now you can use this to e.g. process several XML documents in XSLT $proc->setParame

3/29/2008 8:10:58 PM 0 victor.engm...@gmail.com (Victor Engmark)
Microsoft word XML files

Is there a method for using XML files created by ms word? I was just trying in SIMPLExml and it errored out every time I hit a ":" in the address to the value, sorry if this has already been asked, or if i asked in the wrong spot, i tried to search.

1/24/2008 10:23:46 PM 0 emai...@ericl.info (EricL)
Proposal of DOM non-standard method: DOMDocument::loadCharacterEntitiesFromDtd($path)

DOMDocument::loadCharacterEntitiesFromDtd($path); I like to load character entities (not whole document type definition). When I try to do that by creating my own DTD with only character entities, and setting resolveExternals to true, then DTD parser complains that it didn't occur root definition. The proposed method, if called before DOMDocument::load/loadXML(), would get character entities from DTD (and its modules) and apply them during parsing XML. If called multiply, or if XML contains a DTD reference, entities put before would be overwritten. -- Freyjkell

10/20/2007 3:06:26 PM 0 freyjk...@gmail.com (Freyjkell)
Proposal of DOM boolean property: DOMDocument::omitXMLDeclaration

(bool) DOMDocument::omitXMLDeclaration; Does not need a comment. Implemented in XSLT. -- Freyjkell

10/20/2007 3:06:14 PM 0 freyjk...@gmail.com (Freyjkell)
One more small question

Hi, Rob, One more small question which may turn into a request. When you have a node, can you set its value easily? Accessing is easy, you just cast to string. But if you try to set you will just set the variable that holds the object, not the data the node contains. Maybe a setValue method should be added to SimpleXML as well to facilitate this. E.g. foreach ($root->elemtype as $sxe) { $sxe->setValue($something); } Surely my list of requests is coming to an end now... Cheers, Ben. Send instant messages to your online friends http://au.messenger.yahoo.com

7/24/2007 1:00:36 AM 0 mail_ben_schm...@yahoo.com.au (Ben Schmidt)
Further SimpleXML suggestions

Hi, Rob, Thanks heaps for all the time you have given to helping me with my questions and suggestions. Here are a few more, if you'd be so good as to help me with them (or anyone else on the list, I suppose): IMPORTANT ONE: - It would be nice if $sxe->subelem[]=$value worked. At the moment it gives a fatal error (!) when you try to do this; it seems to assume you are trying to set an attribute, which is clearly not the case--empty brackets imply numeric indices, and an unnamed attribute is nonsense, and any XML programmer would know that! LESS IMPORTANT ONES: a subcl

7/23/2007 4:51:50 AM 0 mail_ben_schm...@yahoo.com.au (Ben Schmidt)
Can SimpleXML still return all namespaces?

I was interested in this article http://www.onlamp.com/pub/a/php/2004/01/15/simplexml.html?page=2 and its description of the handling of namespaces in a beta version of SimpleXML where it simply ignores them, returning elements and attributes from all namespaces. Obviously this behaviour was changed by the time the final version was released, as now it only returns values in the default namespace (and doesn't seem to do that quite correctly; I have just filed a bug report http://bugs.php.net/42026). For me, the alternative behaviour would be useful/desirable. Is there a wa

7/18/2007 12:35:13 PM 0 mail_ben_schm...@yahoo.com.au (Ben Schmidt)
She won�t believe her eyes after she sees what Virility Patch RX has done to your penis.

------=_NextPart_000_0007_0329A7C8.109BEAED Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: quoted-printable ------=_NextPart_000_0007_0329A7C8.109BEAED--

7/6/2007 4:51:41 AM 0 ...@discovercommunityed.com
is extending DOMElements pointless?

Dear developers, can it be that implementing derived DOMElements is completely useless? You can't write to them if they are created via 'new myDOMElement', and you can't get a version of your own class via 'myDOMDocument->createElement()'... I want to have different myDOMElements representing objects in a tree, which benefit from the native DOM functionality and add methods like 'myDOMElement->loadChildrenFromDB()'. Currently, i am forced to use a somehow crappy implementation where myDOMElements are not derived and store the real DOMElement as a member, which has numero

10/8/2006 8:46:01 AM 0 ollo_mul...@gmx.net (=?ISO-8859-15?Q?Oliver_M=FCller?=)
Default parser configuration

Hi, currently if you create XML parser its default behaviour is to not=20 replace entites, to not load external DTD and to not supply attribute=20 default values. Although XML Recommendation allows very edge=20 interpretation in which such behaviour is completely conforming, in most = cases it makes sense to specify: LIBXML_NOENT|LIBXML_DTDLOAD|LIBXML_DTDATTR The majority of other XML parsers (including Java JAXP, MSXML and .NET)=20 are also behaving like these three options were set. Are there any plans to make those settings default and make XML parser=20 more easier to u

5/30/2006 8:56:25 PM 0 ji...@kosek.cz (Jirka Kosek)
DOM Traversal interfaces

Hi, is there any plan about supporting DOM Traversal interfaces=20 (NodeIterator, TreeWalker and NodeFilter) in future? Jirka --=20 ------------------------------------------------------------------ Jirka Kosek e-mail: jirka@kosek.cz http://www.kosek.cz ------------------------------------------------------------------ Profesion=E1ln=ED =B9kolen=ED a poradenstv=ED v oblasti technologi=ED = XML. Pod=EDvejte se na n=E1=B9 nov=EC spu=B9t=ECn=FD web http://DocBook.= cz Podrobn=FD p=F8ehled =B9kolen=ED http://xmlguru.cz/skoleni/ -------------------

5/17/2006 5:59:44 PM 0 ji...@kosek.cz (Jirka Kosek)
Divergence from DOM standard

Hi, nodeValue property called on DOMNode should return node value. However=20 to me it seems that this property returns text content of all=20 descendants, similarly to textContent property. Is there any=20 justification for this divergence from DOM standard? Jirka --=20 ------------------------------------------------------------------ Jirka Kosek e-mail: jirka@kosek.cz http://www.kosek.cz ------------------------------------------------------------------ Profesion=E1ln=ED =B9kolen=ED a poradenstv=ED v oblasti technologi=ED = XML. Pod=EDvejte se na n=E

5/10/2006 8:06:33 AM 0 ji...@kosek.cz (Jirka Kosek)
watch this stck trade Tuesday Contd it isday [H O T Tuesday Contd it is] Norway ghoul expertly Punic

GAPJ- GOLDEN APPLE OIL/GAS Keep an Eye on this one This weeks Pick, Company already has solid potential Current Price: $ 0.55 5 Day Projected : $ 1.00 Golden Apple Oil and Gas, Inc. and Franklin Ross Securities Complete Private Placement Golden Apple Oil and Gas, Inc. (GAPJ - News) is pleased to announce it has completed the initial private placement with Franklin Ross Securities of New Jersey. The terms of the deal provide for Franklin Ross to purchase 181,818 shares of Golden Apple Oil and Gas, Inc. restricted stock priced at 10 per share. The company is curre

5/9/2006 12:52:24 PM 0 nqmwi331...@buchanan.com ("nvocd")
webservice

Does anyone know why I am getting the result below? <?php require_once('webservice.php'); $PerlPackageDatabase = WebService::ServiceProxy( "http://test.xtravelsystem.com/public/v1_0rc1/commonsHandler?WSDL") ; $res = $PerlPackageDatabase->readPackageAbstract("SOAP-Lite"); print_r($res); ?> I GET THIS RESULT: soap_fault Object ( [error_message_prefix] => [mode] => 1 [level] => 1024 [code] => WSDL [message] => no operation readpackageabstract in wsdl [userinfo] => http://test.xtravelsystem.com/public/v1_0rc1/commonsHandler?WSDL [backtrace] => Array ( [0] => Array ( [file] => c:

3/30/2006 2:33:46 PM 0 di...@hotelkey.com ("Diana Castillo")
Lack of configuration support in SAX interface

Hi, is there a way how to configure SAX parser (xml_parser_create) similarly = as DOM or SimpleXML? I mean specifying constants like LIBXML_NOENT,=20 LIBXML_DTDLOAD, LIBXML_DTDATTR etc. to control parser behaviour. It seems that default behaviour of SAX parser is quite non-conforming to = XML spec, it even doesn't expand references to internal entities. TIA, Jirka --=20 ------------------------------------------------------------------ Jirka Kosek e-mail: jirka@kosek.cz http://www.kosek.cz -----------------------------------------------------------------

9/8/2005 8:43:33 PM 0 ji...@kosek.cz (Jirka Kosek)
SIMPLExml problem....

I tryed this simple PHP script that uses SimpleXML control: <?php $users = simplexml_load_file('baza.xml'); echo $users -> name; ?> and i got: Fatal error: Cannot clone object of class SimpleXMLElement due to 'zend.ze1_compatibility_mode' in /mnt/storage/users/w/i/p/wipe/formular.php on line 381 i tryed the same code on 3 other servers including my localhost and it works (the versions where PHP 5.04 and on the server with the problem it's 5.03) i searched google but i didn't got the answer... http://wipe.host.sk http://bihnet.org/Cruonit/wipe/

6/20/2005 8:48:55 AM 0 ...@wipie.info ("Cruonit")
SIMPLExml problem....

I tryed this simple PHP script that uses SimpleXML control: <?php $users = simplexml_load_file('baza.xml'); echo $users -> name; ?> and i got: Fatal error: Cannot clone object of class SimpleXMLElement due to 'zend.ze1_compatibility_mode' in /mnt/storage/users/w/i/p/wipe/formular.php on line 381 i tryed the same code on 3 other servers including my localhost and it works (the versions where PHP 5.04 and on the server with the problem it's 5.03) i searched google but i didn't got the answer... http://wipe.host.sk http://bihnet.org/Cruonit/wipe/

6/20/2005 8:48:52 AM 0 ...@wipie.info ("Cruonit")
SIMPLExml problem....

I tryed this simple PHP script that uses SimpleXML control: <?php $users = simplexml_load_file('baza.xml'); echo $users -> name; ?> and i got: Fatal error: Cannot clone object of class SimpleXMLElement due to 'zend.ze1_compatibility_mode' in /mnt/storage/users/w/i/p/wipe/formular.php on line 381 i tryed the same code on 3 other servers including my localhost and it works (the versions where PHP 5.04 and on the server with the problem it's 5.03) i searched google but i didn't got the answer... http://wipe.host.sk http://bihnet.org/Cruonit/wipe/

6/20/2005 8:48:41 AM 0 ...@wipie.info ("Cruonit")
Test

Only a test, I'm so sorry

5/6/2005 1:12:35 AM 0 gcam...@ing.puc.cl (Grover Manuel Campos Ancajima)
PHP and CURL

Recently my web host disabled PHP's allow_url_fopen. This functionality allowed me to do the following: if(!($handle = fopen('http://weather.gov/data/current_obs/KPHF.xml', "r"))) echo ' '; while($contents = fread($handle, 4096)) xml_parse($xml_parser, $contents, feof($handle)); fclose($handle); This allowed me to open the XML file and parse it with no problem using PHP's xml_parse functions. As an alternative, they have installed CURL which is supposed to be very flexible. However, I have not been able to figure out how to open the XML file using CURL. There are

4/25/2005 12:54:20 AM 0 brian.ar...@verizon.net ("Brian Artis")
PHP and CURL

Recently my web host disabled PHP's allow_url_fopen. This functionality allowed me to do the following: if(!($handle = fopen('http://weather.gov/data/current_obs/KPHF.xml', "r"))) echo ' '; while($contents = fread($handle, 4096)) xml_parse($xml_parser, $contents, feof($handle)); fclose($handle); This allowed me to open the XML file and parse it with no problem using PHP's xml_parse functions. As an alternative, they have installed CURL which is supposed to be very flexible. However, I have not been able to figure out how to open the XML file using CURL. There a

4/25/2005 12:53:26 AM 0 brian.ar...@verizon.net ("Brian Artis")
Robustly using XSLT across different versions of PHP?

Has anyone written anything, perhaps in PEAR or elsewhere, that allows for some portability of XSLT use across PHP 4 with Sablotron, PHP 4 with domxml, and PHP 5? I'm doing some work on a project at the moment, and the server it will be hosted on initially has PHP 4 compiled with Sablotron support. Unfortunately my workstation where I'm doing a lot of prototyping runs Fedora Core 3 and has PHP 4.3.11 compiled with '--with-xml' '--with-expat-dir=/usr' '--with-dom=shared,/usr' '--with-dom-xslt=/usr' '--with-dom-exslt=/usr'. All attempts so far to recompile Fedora's src rpm with sablot

4/20/2005 8:11:13 PM 0 dar...@dzr-web.com ("D. D. Brierton")
getting domxml working under Windows

Hi, I need help getting domXml to work under windows. The instuctions are confusing. I have PHP 5.0.0. configured with Apache server preconfigured in UniServer3.2 I copied php_domxml.dll to the php/extentions/ folder I modified php.ini so that extension=php_domxml.dll For versions before 5, the PHP docs say either libxml2.dll. or iconv.dll need to be in the system folder or in the system path, but it say: "And as of PHP 5.0.0, iconv is compiled into your Windows PHP binaries by default so no extra DLL is needed." When I stop and restart Apache server, I get 2 erro

3/31/2005 9:32:39 PM 0 ...@galaxybeing.com ("blackrock")
XML syntax error in Windows

Hi guys, When I parse a RSS feed in Linux, everything goes OK, but when I try to do it in Windows, I only receive the "Syntax error in line 1". Line 1 is just the '<?xml version="1.0" encoding="ISO-8859-1"?>' line. And as I said, it only happens in windows. Can anyone explain to me why? I am just going nuts trying to find a reason for that error. Thanks. Jose.

3/28/2005 12:40:32 AM 0 jrosales3...@adelphia.net ("Jose Rosales")
xml:id and getElementById Issue

Howdy, As per the discussion at http://blog.bitflux.ch/wiki/Talk:GetElementById_Pitfalls, DOMDocument::getElementByID() doesn't work with xml:id if the DOMDocument is being created in code. It only works when the document is either loaded from a string or from a file. As per the discussion, this is an issue with libxml2. As of libxml2.6.17, it still doesn't work. I'm curious as to whether the libxml2 developers are aware of this and what the reason is for this because it really stinks. BTW- I read somewhere that it minimum libxml2 version for PHP 5.1 should be 2.6.0.

3/16/2005 3:50:52 PM 0 c....@earthlink.net (C Drozdowski)
Custom Tag

Hi, i want to build an application around a custom tag system. There is something around for php ? Or if there is nothing good, where can i find some documentation to build a new one ? Regards Luciano

3/16/2005 9:23:27 AM 0 luci...@tolomei.name (Luciano Tolomei)
Encoding Values in DOMXPath Query Expressions

What is the best way to "encode" values passed to XPath expressions to ensure that they work correctly? For example, in the code below, what should I do to $value before incorporating it in the expression? htmlentities(), htmlspecialchars(), what? $query = "//book/chapter[name='$value']"; $xPath = new DOMXPath($domDoc); $nodeList = $xPath->query($query); Thanks in Advance for any help given.

3/15/2005 12:16:15 AM 0 c....@earthlink.net (C Drozdowski)
DTD validation problem

We parse our XML using the PHP SAX functions (e.g., xml_parse(), etc.). The XML we receive might take the form: <USERDATA> <YOURNAME>Will Smith</YOURNAME> . . </USERDATA> Before we pass this data to our parser, we prepend a string representing the DTD we use to validate the data. Based on my example data, the corresponding DTD would take the form: <?xml version="1.0"?> <!DOCTYPE USERDATA [ <!ELEMENT USERDATA (YOURNAME, ...)> <!ELEMENT YOURNAME (#PCDATA)> . . <!ATTLIST YOURNAME maxlength CDATA

2/23/2005 8:24:51 PM 0 mich...@bluemoon.com ("Mike Phillipson")
test

testing new config

2/16/2005 8:04:57 PM 0 jimi...@gmail.com ("Jim Plush")
Weeeeee! ;)))

----------scehnukyllkkwdynyrmy Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit I don't bite, weah! ...btw, "33012" is a password for archive ----------scehnukyllkkwdynyrmy--

2/5/2005 7:04:25 PM 0 eamonr...@clear.net.nz
xml error handling for 5.1

After trying many different approaches for better error handling support, I ultimately went with something simple - at least to start with. At first, I thought about letting users set a dedicated error handler for the errors, but ran into issues with memory leaks. Since they could exit or throw an exception in their handler, I couldnt find any way to be able to clean up stuff since the error would occur in the middle of libxml processing and never get a chance to return to the extension's internal function call. From here I decided to go the route of not issuing any errors from

2/4/2005 12:43:00 PM 0 rricha...@ctindustries.net (Rob Richards)
^_^ meay-meay!

----------rewhhllgvqwwhdqbjvxm Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Looking forward for a response :P password -- 34332 ----------rewhhllgvqwwhdqbjvxm--

2/3/2005 9:30:38 PM 0 eamonr...@clear.net.nz
XML catalog support in PHP

Hi, libxml2 supports XML catalogs which can be used to redirect entity=20 resolution (external DTDs, XIncludes, imported/included stylesheets).=20 Unfortunately I din't found how to enable XML catalogs support in PHP. Are XML catalogs supported? If not, wouldn't it be good idea to support=20 them? Jirka --=20 ------------------------------------------------------------------ Jirka Kosek e-mail: jirka@kosek.cz http://www.kosek.cz ------------------------------------------------------------------ Profesion=E1ln=ED =B9kolen=ED a poradenstv=ED v oblasti technolo

2/2/2005 6:05:07 PM 0 ji...@kosek.cz (Jirka Kosek)
SimpleXML behaves like chameleon

Hi, I found strange problem with SimpleXML. If there are multiple elements=20 with the same name on the same level (they are siblings) there are=20 sometimes returned as an array and sometimes as an object. Is this a bug = or am I missing something? See code that demonstrates problem: <pre> <?php $xml =3D simplexml_load_string(" <root> <item> <subitem>A</subitem> <subitem>B</subitem> </item> </root> "); // Inspect $xml->item. It seems that $xml->item->subitem is array print_r($xml->item); // OK. Count number of subitems. It should be 2 echo count($

1/31/2005 8:14:11 PM 0 ji...@kosek.cz (Jirka Kosek)
xmlrpc_encode_request does not produce XML output

This is perhaps before beginner question: function: xmlrpc_encode_request('method1','param1') produces output: method1 param1 expected: xml formatted request string question: is there something missing in my installation or am I doing something wrong ? (tried Apache 1.3.31 on Linux and Windows - the same output). thank you for help.

12/14/2004 11:20:07 PM 0 yu...@shaw.ca ("yurim")

Pages:









Newest Articles

#50656 [NEW]: Assign constant to var causes syntax error
1/4/2010 3:07:07 PM

#50655 [NEW]: fgets(): French translation error
1/4/2010 2:40:48 PM

note 95459 added to domnode.haschildnodes
1/4/2010 1:53:44 PM

note 95458 added to function.readdir
1/4/2010 1:36:41 PM

Hola
1/4/2010 1:29:49 PM