[Content] Fix Bugs in Content and Bootstrap

Modify the format of array in xml.
Check if a node has attribute of tagName or not.