change the method to copy an XMLNode. The previous method throws the exception.
Use one character flag for options parser.
Merge pull request #1766 from Zhengzi/UIdefects

change the method to copy an XMLNode.
Merge branch 'master' into fix_if_node