Re: [SOAP] calculate xml size
[email protected] (Marcus Boerger)
| Newsgroups | php.soap |
|---|---|
| Message-ID | <[email protected]> |
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