> If I am not mistaken the XMLParse function takes a string and converts
> it
> into an XML Object therefore I believe that if you use the XMLParse
> function
> on your string and then do the isXML it will pass muster.

That somewhat negates the point of IsXML as I understand it.

> If you notice you are running the XMLParse function first in your older
> code
> but have left it out in your newer code.

Yes, that's because in CFMX 6.1 the only way I can tell if the string is XML
is to parse it. The whole point of IsXML as I read the docs is so that I
don't have the overhead of actually having to parse the string to tell
whether or not it is valid XML therefore reducing the overheads in the code.

At the point where my code is running, I only need to know whether the
string is Valid XML or not so I can store choose to store it in the DB or
not. IsXML is supposed to be a lightweight way of doing this but it seems to
be inconsistent with the results of XMLParse.

Paul





~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Get involved in the latest ColdFusion discussions, product
development sharing, and articles on the Adobe Labs wiki.
http://labs/adobe.com/wiki/index.php/ColdFusion_8

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291328
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to