Methods are defined using the Function tag. The name of a method is defined as the value of the name attribute of the function element. The name must follow the rules allowed for the values of attributes.
Field names are specified as elements with tags, their names depend on the document's rules for tag names.