Fix attribute application from XML

Signed-off-by: Taeho Kim <jyte82@gmail.com>