Menu

#3 getCdata() returns bogus results

open
nobody
None
5
2003-06-11
2003-06-11
Josh Brown
No

When returning the cdata from a xml tree the getCdata()
method applies to situations where one might have the
following:

<model>mymodel</model>

The method returns a string, which is supposed to be
the C data; in the above case it would be 'mymodel'.
This method however will always return at least a 6
character string. So in the event that someone might
do something like:

<model>tent</model> the method returns: 'tent '
which is of course incorrect.

Hope this is an easy fix.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.