RE: [SOAP] calculate xml size

From: Date: Sat, 26 May 2007 18:40:55 +0000
Subject: RE: [SOAP] calculate xml size
References: 1 2  Groups: php.soap 
Request: Send a blank email to php-soap+get-2550@lists.php.net to get a copy of this message
Thanks and sorry, I'm new the mailing list. ________________________________ From: Marcus Boerger [mailto:helly@php.net] Sent: Sat 5/26/2007 1:35 PM To: Vo, Lance Cc: soap@lists.php.net Subject: Re: [SOAP] calculate xml size Hello Lance, the function is called strlen(): $sxe = new SimpleXMLElement($xmlstring); $len = strlen($sxe->test1->asXML()); anyway this is no support forum, we are discussing php develoment in c here not develoment with php. Use the general list in the future please. marcus Saturday, May 26, 2007, 8:03:36 PM, you wrote: > hi > does php has any function that calculate a xml element in bytes or anything: > example: > > <tests> > <test1>ABC</test1> > <test2>DEF</test2> > </tests> > > If I want to calculate element <test1>, it should return 18 bytes. > Any suggestion is welcomed. > > thanks > Lance Best regards, Marcus

« previous php.soap (#2550) next »