What does that have to do with anything? You can write a string hashing function in C too (and I know which one I'll bet my money on). And how does this apply to writing an XML parser?
'cause XML is string parsing. Saying that java's XML is probably slow is rather unfair, and less probable for doing string manips are easily optimized in java as it is in one place... the jvm.