'Build an ASCII from a vtu

I am trying to investigate the connectivity and points data from a Paraview vtu/vtk file by looking at it in ASCII format. Shown in code block below is part of my vtu file. I know how to build a numpy binary file (.npy) from this using python, but does anyone know how to build an ASCII file?

When I open the vtu file in a text editor, it says that it is in XML format.

vtkUnstructuredGrid (0x7fb63101bbf0)
  Debug: Off
  Modified Time: 425
  Reference Count: 2
  Registered Events: (none)
  Information: 0x7fb63101be60
  Data Released: False
  Global Release Data: Off
  UpdateTime: 457
  Field Data:
    Debug: Off
    Modified Time: 384
    Reference Count: 1
    Registered Events: (none)
    Number Of Arrays: 1
    Array 0 name = TIME
    Number Of Components: 1
    Number Of Tuples: 1
  Number Of Points: 12288
  Number Of Cells: 3072
  Cell Data:
    Debug: Off
    Modified Time: 312
    Reference Count: 1
....


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source