XMLDocument bug fix, or do I have my information wrong


#1

In the XMLDocument class, it sets up a number of vars, specifically this function is what I am talking about:

[code]

//==============================================================================
static inline bool isXmlIdentifierChar_Slow (const tchar c)
{
return String::isLetterOrDigit ©
|| c == T(’_’)
|| c == T(’:’);
}[/code]
I have some XML that I use and it will not parse unless I change one thing in it, to make it:

[code]

//==============================================================================
static inline bool isXmlIdentifierChar_Slow (const tchar c)
{
return String::isLetterOrDigit ©
|| c == T(’-’)
|| c == T(’_’)
|| c == T(’:’);
}[/code]
Is a dash ( - ) standard in xml names, or are these few things not following standards. I also noticed that most web pages have meta elements, take this site, it has this:

The http-equiv would not parse if I ran this through it, this is similier to what I have. I always update my source before compiling to include the above change, just wondering if it should be made global for all?

EDIT: Do note, what I have to import it is in the main name, not an attirbute name… I do just guess it is an annoyance on their part…


#2

Damn… you’re quite right about that!

Thanks for the heads-up - I’ll update it to include the dash.


#3