added a method to serialize common node fields to xml