Fwd: Question about Gobo xml parsing library

Eric Bezault <[email protected]> Tue, 06 Sep 2011 22:34:03 +0200
Newsgroups gmane.comp.lang.eiffel.gobo.devel
Message-ID <[email protected]>

-------- Original Message --------
Subject: 	Question about Gobo xml parsing library
Date: 	Tue, 6 Sep 2011 05:40:50 -0400
From: 	<[email protected]>
To: 	<[email protected]>



Hi,

Sorry for the distribution of this mail, but I’ve no idea which person
should I send to.

Recently I’m get quite confused about the space normalization in Eiffel
xml parsing library.

I’m using nenie_mods and neniexml-01 library to parse xml, and I find
the spaces inside an attribute value will be collapsed, and the leading
and trailing spaces be discarded.

It seems that this behavior exactly conforms with the “Attribute-Value
Normalization” section in XML 1.0.

However, other xml parsing libaray, like Xerces C++ and JAXB, preserve
the spaces.

Also, when searched on Internet, I got this diff file applied to file
xm_eiffel_scanner.l:

http://gobo-eiffel.git.sourceforge.net/git/gitweb.cgi?p=gobo-eiffel/gobo;a=commitdiff;h=374c3367994f573e2699e9df7ccb9e9372196097

My question is, which behavior is the right one? And why Xerces C++,
JAXB, and the patched gobo xml library don’t conform with XML 1.0?

Thank you very much!

Regards,

Wang, Monica

Shanghai China

Telephone: 86 021 60951100 2243


------------------------------------------------------------------------------
Malware Security Report: Protecting Your Business, Customers, and the 
Bottom Line. Protect your business and customers by understanding the 
threat from malware and how it can impact your online business. 
http://www.accelacomm.com/jaw/sfnl/114/51427462/