for development test about leaf content
fixed issue with leaf node containing both inner content and attributes

fixed issue with leaf node containing both inner content and attributes