Fix that category replacement is not correct

It's missing a bit shift operation.
Merge pull request #39 from wang16/mini_xml_parser

[Mini] Fix that category replacement is not correct