# Paraview 5.10.1 doesn't load XML .vtp file correctly

**URL:** https://discourse.paraview.org/t/paraview-5-10-1-doesnt-load-xml-vtp-file-correctly/16328
**Category:** ParaView Support
**Created:** [March 13, 2025, 8:26pm UTC](https://discourse.paraview.org/t/paraview-5-10-1-doesnt-load-xml-vtp-file-correctly/16328 "2025-03-13T20:26:01Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![DeadComposer](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/d/7feea3/32.png) [@DeadComposer](https://discourse.paraview.org/u/DeadComposer)
#### Post date: [March 13, 2025, 8:26pm UTC](https://discourse.paraview.org/t/paraview-5-10-1-doesnt-load-xml-vtp-file-correctly/16328/1 "2025-03-13T20:26:01Z")

</div>

Paraview 5.10.1 doesn’t load XML-format .vtp file correctly

The contents of my XML-format .vtp file are below. Paraview 5.10.1 loads this but only adds 1 rectangle to the viewing area, even though there are 2 rectangles defined.

```auto

<?xml version="1.0"?>

<VTKFile type="PolyData" version="0.1" byte_order="LittleEndian">
<PolyData>
<Piece NumberOfPoints="8" NumberOfVerts="0" NumberOfLines="0" NumberOfStrips="0" NumberOfPolys="2">
<Points>
<DataArray type="Float32" Name="points" NumberOfComponents="3" format="ascii">
0.0 0.0 0.0
1.0 0.0 0.0
1.0 0.0 1.0
0.0 0.0 1.0
1.0 0.0 0.0
2.0 0.0 0.0
2.0 0.0 1.0
1.0 0.0 1.0
</DataArray>
</Points>
<CellData scalars="VAR1">
<DataArray type="Float32" Name="VAR1" NumberOfComponents="1" format="ascii">
0.0068
0.0346
</DataArray>
</CellData>
<Polys>
<DataArray type="Int32" Name="connectivity" format="ascii">
0 1 2 3 4 5 6 7
</DataArray>
<DataArray type="Int32" Name="offsets" format="ascii">
0 4
</DataArray>
</Polys>
</Piece>
</PolyData>
</VTKFile>

```

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [March 14, 2025, 6:27am UTC](https://discourse.paraview.org/t/paraview-5-10-1-doesnt-load-xml-vtp-file-correctly/16328/3 "2025-03-14T06:27:39Z")

</div>

Fixed the formating.

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [March 14, 2025, 8:40am UTC](https://discourse.paraview.org/t/paraview-5-10-1-doesnt-load-xml-vtp-file-correctly/16328/4 "2025-03-14T08:40:18Z")

</div>

Your offsets array is incorrect, it should contain `4 8`

---

<div class="post-metadata">

### Author: ![DeadComposer](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/d/7feea3/32.png) [@DeadComposer](https://discourse.paraview.org/u/DeadComposer)
#### Post date: [March 14, 2025, 12:44pm UTC](https://discourse.paraview.org/t/paraview-5-10-1-doesnt-load-xml-vtp-file-correctly/16328/5 "2025-03-14T12:44:23Z")

</div>

Thanks, that did the trick.
