genSmartResult add xml support