RE: calculate xml size

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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:  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




[Index of Archives]     [PHP Home]     [PHP Users]     [Kernel Newbies]     [PHP Database]     [Yosemite]

  Powered by Linux