Edits to New Post java and xml