Re: [SOAP] calculate xml size
| From: | Marcus Boerger | Date: | Sat, 26 May 2007 18:35:34 +0000 |
| Subject: | Re: [SOAP] calculate xml size | ||
| References: | 1 | Groups: | php.soap |
| Request: | Send a blank email to php-soap+get-2549@lists.php.net to get a copy of this message | ||
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