I can also offer a very round answer.
Place the geoserver on your computer (you can download a standalone zip file)
Set up a data warehouse that points to your shapefile.
Set up a layer pointing to the data warehouse
Go to the preview layers page and ask for WFS as a GML preview
Voila - xml view of your shapefile.
TheSteve0 Feb 09 2018-10-10T00 : 00Z
source share