# problem reading manually wrote XML files

**URL:** https://discourse.paraview.org/t/problem-reading-manually-wrote-xml-files/11830
**Category:** ParaView Support
**Created:** [April 7, 2023, 4:35am UTC](https://discourse.paraview.org/t/problem-reading-manually-wrote-xml-files/11830 "2023-04-07T04:35:49Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![Archana](https://discourse.paraview.org/user_avatar/discourse.paraview.org/archana/32/12469_2.png) [@Archana](https://discourse.paraview.org/u/Archana)
#### Post date: [April 7, 2023, 4:31am UTC](https://discourse.paraview.org/t/problem-reading-manually-wrote-xml-files/11830/1 "2023-04-07T04:31:57Z")

</div>

I am getting the same error trying to open a vts file (600 MB) created in C++.  
Archana

---

<div class="post-metadata">

### Author: ![Archana](https://discourse.paraview.org/user_avatar/discourse.paraview.org/archana/32/12469_2.png) [@Archana](https://discourse.paraview.org/u/Archana)
#### Post date: [April 7, 2023, 4:35am UTC](https://discourse.paraview.org/t/problem-reading-manually-wrote-xml-files/11830/2 "2023-04-07T04:35:49Z")

</div>

I am sorry my error is different as follows:  
ERROR: In vtkXMLParser.cxx, line 379  
vtkXMLDataParser (00000275597059B0): Error parsing XML in stream at line 207986259, column 0, byte index 615566002: no element found

ERROR: In vtkXMLReader.cxx, line 520  
vtkXMLStructuredGridReader (0000027558F1DC50): Error parsing input file. ReadXMLInformation aborting.

ERROR: In vtkXMLStructuredDataReader.cxx, line 345  
vtkXMLStructuredGridReader (0000027558F1D2F0): Error reading extent 0 399 0 399 0 399 from piece 0

ERROR: In vtkXMLDataReader.cxx, line 410  
vtkXMLStructuredGridReader (0000027558F1D2F0): Cannot read point data array “Grand Potential Density [J/m^3]” from PointData in piece 0. The data array in the element may be too short.

ERROR: In vtkXMLStructuredDataReader.cxx, line 345  
vtkXMLStructuredGridReader (0000027558F1D2F0): Error reading extent 0 399 0 399 0 399 from piece 0

ERROR: In vtkXMLDataReader.cxx, line 410  
vtkXMLStructuredGridReader (0000027558F1D2F0): Cannot read point data array “Grand Potential Density [J/m^3]” from PointData in piece 0. The data array in the element may be too short.

ERROR: In vtkXMLStructuredDataReader.cxx, line 345  
vtkXMLStructuredGridReader (0000027558F1D2F0): Error reading extent 0 399 0 399 0 399 from piece 0

ERROR: In vtkXMLDataReader.cxx, line 410  
vtkXMLStructuredGridReader (0000027558F1D2F0): Cannot read point data array “Grand Potential Density [J/m^3]” from PointData in piece 0. The data array in the element may be too short.

ERROR: In vtkXMLStructuredDataReader.cxx, line 345  
vtkXMLStructuredGridReader (0000027558F1D2F0): Error reading extent 0 399 0 399 0 399 from piece 0

ERROR: In vtkXMLDataReader.cxx, line 410  
vtkXMLStructuredGridReader (0000027558F1D2F0): Cannot read point data array “Grand Potential Density [J/m^3]” from PointData in piece 0. The data array in the element may be too short.

ERROR: In vtkXMLStructuredDataReader.cxx, line 345  
vtkXMLStructuredGridReader (0000027558F1D2F0): Error reading extent 0 399 0 399 0 399 from piece 0

ERROR: In vtkXMLDataReader.cxx, line 410  
vtkXMLStructuredGridReader (0000027558F1D2F0): Cannot read point data array “Grand Potential Density [J/m^3]” from PointData in piece 0. The data array in the element may be too short.

I wonder if there is something wrong with the data ?

---

<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: [April 7, 2023, 6:40am UTC](https://discourse.paraview.org/t/problem-reading-manually-wrote-xml-files/11830/3 "2023-04-07T06:40:35Z")

</div>

Probably, please share your data

---

<div class="post-metadata">

### Author: ![cory.quammen](https://discourse.paraview.org/user_avatar/discourse.paraview.org/cory.quammen/32/11193_2.png) [@cory.quammen](https://discourse.paraview.org/u/cory.quammen)
#### Post date: [April 10, 2023, 11:29pm UTC](https://discourse.paraview.org/t/problem-reading-manually-wrote-xml-files/11830/4 "2023-04-10T23:29:30Z")

</div>

> [@Archana](#):
>
> ERROR: In vtkXMLParser.cxx, line 379  
> vtkXMLDataParser (00000275597059B0): Error parsing XML in stream at line 207986259, column 0, byte index 615566002: no element found

The error message is very specific about where the problem is in your XML file. Line 207986259, column 0. Look at that line to see what is missing.

My guess is your file got truncated somehow.

---

<div class="post-metadata">

### Author: ![Archana](https://discourse.paraview.org/user_avatar/discourse.paraview.org/archana/32/12469_2.png) [@Archana](https://discourse.paraview.org/u/Archana)
#### Post date: [April 11, 2023, 5:22am UTC](https://discourse.paraview.org/t/problem-reading-manually-wrote-xml-files/11830/5 "2023-04-11T05:22:09Z")

</div>

Thanks. Its a huge vts file so I have compressed it and sharing the linl  
[https://drive.google.com/file/d/1zFUV-64XDrLIDdz-ljku6lHkDzsKU7qj/view?usp=share\_link](https://drive.google.com/file/d/1zFUV-64XDrLIDdz-ljku6lHkDzsKU7qj/view?usp=share_link)

---

<div class="post-metadata">

### Author: ![Archana](https://discourse.paraview.org/user_avatar/discourse.paraview.org/archana/32/12469_2.png) [@Archana](https://discourse.paraview.org/u/Archana)
#### Post date: [April 11, 2023, 5:23am UTC](https://discourse.paraview.org/t/problem-reading-manually-wrote-xml-files/11830/6 "2023-04-11T05:23:12Z")

</div>

Thanks, but I am unable to open the file with any editor, because its a huge file.

---

<div class="post-metadata">

### Author: ![Archana](https://discourse.paraview.org/user_avatar/discourse.paraview.org/archana/32/12469_2.png) [@Archana](https://discourse.paraview.org/u/Archana)
#### Post date: [April 11, 2023, 5:47am UTC](https://discourse.paraview.org/t/problem-reading-manually-wrote-xml-files/11830/7 "2023-04-11T05:47:17Z")

</div>

> [@cory.quammen](#):
>
> 207986259

Finally I can open the file - and checked the location. Nothing unusual or seems truncated.

---

<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: [April 11, 2023, 9:28am UTC](https://discourse.paraview.org/t/problem-reading-manually-wrote-xml-files/11830/8 "2023-04-11T09:28:25Z")

</div>

You need to share the file.

---

<div class="post-metadata">

### Author: ![Archana](https://discourse.paraview.org/user_avatar/discourse.paraview.org/archana/32/12469_2.png) [@Archana](https://discourse.paraview.org/u/Archana)
#### Post date: [April 13, 2023, 1:39am UTC](https://discourse.paraview.org/t/problem-reading-manually-wrote-xml-files/11830/9 "2023-04-13T01:39:03Z")

</div>

> [@Archana](#):
>
> [https://drive.google.com/file/d/1zFUV-64XDrLIDdz-ljku6lHkDzsKU7qj/view?usp=share\_link](https://drive.google.com/file/d/1zFUV-64XDrLIDdz-ljku6lHkDzsKU7qj/view?usp=share_link)

I posted the share link above and sorry for duplication  
[https://drive.google.com/file/d/1zFUV-64XDrLIDdz-ljku6lHkDzsKU7qj/view?usp=share\_link](https://drive.google.com/file/d/1zFUV-64XDrLIDdz-ljku6lHkDzsKU7qj/view?usp=share_link)

---

<div class="post-metadata">

### Author: ![Archana](https://discourse.paraview.org/user_avatar/discourse.paraview.org/archana/32/12469_2.png) [@Archana](https://discourse.paraview.org/u/Archana)
#### Post date: [April 14, 2023, 12:34am UTC](https://discourse.paraview.org/t/problem-reading-manually-wrote-xml-files/11830/10 "2023-04-14T00:34:50Z")

</div>

@mwestphal, are you able to download the file? To add further information, this data was generated by C++ code. I do not have any problem loading smaller data sets, e.g., corresponding to 200 x 200 x 200 grid size.  
Thanks

---

<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: [April 14, 2023, 5:40am UTC](https://discourse.paraview.org/t/problem-reading-manually-wrote-xml-files/11830/11 "2023-04-14T05:40:32Z")

</div>

Your data opens fine (albeits slowly because you are using ascii) on my **Linux** using **ParaView 5.11.1**.

 ![image](https://discourse.paraview.org/uploads/default/original/2X/d/dedfacd056bc35da3b22258c1526d7f98ad6598f.png)

---

<div class="post-metadata">

### Author: ![Archana](https://discourse.paraview.org/user_avatar/discourse.paraview.org/archana/32/12469_2.png) [@Archana](https://discourse.paraview.org/u/Archana)
#### Post date: [April 21, 2023, 1:43am UTC](https://discourse.paraview.org/t/problem-reading-manually-wrote-xml-files/11830/12 "2023-04-21T01:43:04Z")

</div>

Did you load it vias GUI or python scripts?  
Indeed I am using Windows and trying to load via PV GUI.  
It throws error while loading the file (see above or the link below) - I do not mind if it is slow.  
Enjoy your vacation!  
I really appreciate your response despite being on vacation.

> [@problem reading manually wrote XML files](https://discourse.paraview.org/t/problem-reading-manually-wrote-xml-files/11830/2):
>
> I am sorry my error is different as follows: ERROR: In vtkXMLParser.cxx, line 379 vtkXMLDataParser (00000275597059B0): Error parsing XML in stream at line 207986259, column 0, byte index 615566002: no element found ERROR: In vtkXMLReader.cxx, line 520 vtkXMLStructuredGridReader (0000027558F1DC50): Error parsing input file. ReadXMLInformation aborting. ERROR: In vtkXMLStructuredDataReader.cxx, line 345 vtkXMLStructuredGridReader (0000027558F1D2F0): Error reading extent 0 399 0 399 0 399 fr…

Archana

---

<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: [May 2, 2023, 3:17pm UTC](https://discourse.paraview.org/t/problem-reading-manually-wrote-xml-files/11830/13 "2023-05-02T15:17:21Z")

</div>

> [@Archana](#):
>
> Did you load it vias GUI or python scripts?

GUI
