Hi David,
Thanks a lot for your remarks. I agree to your view points.
Your explanation clears up my mind regarding this topic ...
On Fri, Feb 29, 2008 at 5:05 PM, David Carlisle <davidc@xxxxxxxxx> wrote:
> it can make a lot of difference, if for example you have some elements
> containing dates and you want to compare the dates (as dates) with some
> other dates, if you extract the string value then it won't work and
> you'll have to explictly cast the string back to a date, but if you
> extract the data() it will be a date. Of course in many situations you
> select the element node rather than the text node or string value or
> data() so that often this typing will be inferred, but data() is still
> useful sometimes. Just as text() is still useful sometimes.
>
> David
--
Regards,
Mukul Gandhi
|