Cleaned up SXML implementation
Made example usage more readable