[Glass] XML Parser bug ?

BrunoBB via Glass glass at lists.gemtalksystems.com
Fri Jul 15 11:04:10 PDT 2016


Dale,

Here is a small test that i think it show the bug:
| str1 str2 |

str1 := '<imageAnnotation>
<image filename="" mediatype="" size=""/>
<annotation/>
</imageAnnotation>'.
str2 := str1 copyWithoutAll: String lf.

((XMLDOMParser parse: str1) xPath: 'imageAnnotation')
collection last stringNodes. "answer a XMLNodeList with 3 elements"

((XMLDOMParser parse: str2) xPath: 'imageAnnotation')
collection last stringNodes. "answer an empty XMLNodeList (not LF in this
string)"

regards,
bruno



--
View this message in context: http://forum.world.st/XML-Parser-bug-tp4906721p4906735.html
Sent from the GLASS mailing list archive at Nabble.com.


More information about the Glass mailing list