minor changes to hex parsing
diff --git a/tinyxml2.h b/tinyxml2.h
index c577af4..3c702ec 100755
--- a/tinyxml2.h
+++ b/tinyxml2.h
@@ -591,10 +591,8 @@
     }

 

     inline static bool IsPrefixHex( const char* p) {

-        while (p && *p != '\0' && !isdigit(*p)) {

-            ++p;

-        }

-        return *p == '0' && ( *(p + 1) == 'x' || *(p + 1) == 'X');

+        p = SkipWhiteSpace(p, 0);

+        return p && *p == '0' && ( *(p + 1) == 'x' || *(p + 1) == 'X');

     }

 

     inline static bool StringEqual( const char* p, const char* q, int nChar=INT_MAX )  {