If the legacy VTK (.vtk) file format suits your needs, you should be OK using it. Although legacy, I don’t think there are any plans to deprecate this file format. It is still used quite a bit.
Also, if you want to use the newer XML formats, the document you referenced documents both the legacy .vtk format and the XML formats. The XML documentation starts after the legacy VTK format starting at the bottom of page 11.
OK., XML is very similar to Latex (or JSON) with which I am familiar. It seems to be geared for document (and not data) preparation, but I can see how it can be used in this context.
Is there “out there” an example of an xml file to represent unstructured data, cells, vectors and tensors such as the following:
File/Save Data… choose the vtu format with Data Mode “Ascii” - this should give you a good idea.
The output will include many additional things that you can skip (eg, the RangeMin, RangeMax).
Assuming you only have non-polyhedrals, generating the cells is fairly easy. In the Legacy format each entry in CELLS is prefixed by its size, Eg,
8 0 26 156 548 51 348 945 1624
4 20 312 1603 331
In the xml format this would be represented by two arrays. The connectivity is the list of vertices for the cells and the offsets are the cumulative end of the connectivity lists.
Eg,
Select VTK Unstructured Grid Files (*.vtu) and choose a filename. Then click OK. Before saving the file, ParaView will pop up a second dialog box for options for that file format. In that second dialog box, select Data Mode to Ascii.