My guess would be much bigger.

Try this

<cfsavecontent variable="myXml">
<root>
  <person>
    <firstName>Dale</firstName>
    <lastName>Fraser</lastName>
  </person>
</root>
</cfsavecontent>

<cfdump var="#myXml#" />
<cfdump var="#xmlParse(myXml)#" />

The way CF holds that in memory there is a lot of meta data, thus bigger
than a pure string, even though xml is verbose.

Regards
Dale Fraser

http://dale.fraser.id.au
http://learncf.com
http://flexcf.com

-----Original Message-----
From: cfaussie@googlegroups.com [mailto:cfaus...@googlegroups.com] On Behalf
Of Matthew
Sent: Wednesday, 21 January 2009 2:51 PM
To: cfaussie
Subject: [cfaussie] Is XML bigger before or after XmlParse


Hi guys

Is XML bigger or smaller after XmlParse? I would guess that it is
bigger because CF has had to convert it into struct/array type objects
within objects etc etc.

The reason I ask is because recently my inbox exploded due to an error
on the server which resulted in error emails being send out and the
error just so happened to be on a page where there was a large XML
object (I output all available variables/scopes to the error email in
order to have the best chance of diagnosing / repeating errors). I was
just wondering was the email so big because the XML had be parsed?

I'm now going to have to find some way of removing all XML objects
from each scope before dispatching an error email... any ideas?

I was trying to work out the answer to my first question by looking
for ways to establish the size of a variable before and after XmlParse
however I haven't yet found a way to find out a variables size. Does
anyone know how to do this? e.g. foo.howBigAmI()

Cheers
Matthew


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"cfaussie" group.
To post to this group, send email to cfaussie@googlegroups.com
To unsubscribe from this group, send email to 
cfaussie+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to