Fixed bugs in xml parsing. Added KB xml converter.

Signed-off-by: Ryeyao <rye.y.cn@gmail.com>