refine XML module, prepare to integrate with driver module

Signed-off-by: xcgspring <xcg1987xcg@126.com>