Added rootElement to XML files

Closes #91
Check if inline is already defined