Add xml methods to shares. Add tests to shares.