I would like to create a GML using openlayers to send to Geoserver to insert a new feature. While displaying writeGeometry() in console it displays the error like: Uncaught TypeError: format.writeGeometry is not a function
`var gml3 = format.writeGeometry(coords, {})`
What's wrong with this code?