[Xmlstorage-commits] SF.net SVN: xmlstorage: [99] trunk/c++/xmlstorage.cpp
Brought to you by:
martinfuchs
|
From: <mar...@us...> - 2008-07-13 08:10:04
|
Revision: 99
http://xmlstorage.svn.sourceforge.net/xmlstorage/?rev=99&view=rev
Author: martinfuchs
Date: 2008-07-13 01:10:12 -0700 (Sun, 13 Jul 2008)
Log Message:
-----------
also allow dots in XML names to fulfill the XML specification
Modified Paths:
--------------
trunk/c++/xmlstorage.cpp
Modified: trunk/c++/xmlstorage.cpp
===================================================================
--- trunk/c++/xmlstorage.cpp 2008-07-13 07:39:12 UTC (rev 98)
+++ trunk/c++/xmlstorage.cpp 2008-07-13 08:10:12 UTC (rev 99)
@@ -665,9 +665,10 @@
for(; *p; ++p) {
char c = *p;
+ // NameChar ::= Letter | Digit | '.' | '-' | '_' | ':' | CombiningChar | Extender
if (c == '\xC3') // UTF-8 escape character
++p; //TODO only continue on umlaut characters
- else if (!isalnum(c) && c!='_' && c!='-' && c!=':')
+ else if (!isalnum(c) && c!='.' && c!='-' && c!='_' && c!=':')
break;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|