# Assigning attributes to cell as celldata to visualise in cell elements

**URL:** https://discourse.paraview.org/t/assigning-attributes-to-cell-as-celldata-to-visualise-in-cell-elements/6818
**Category:** Development
**Tags:** vtk
**Created:** [March 29, 2021, 11:12am UTC](https://discourse.paraview.org/t/assigning-attributes-to-cell-as-celldata-to-visualise-in-cell-elements/6818 "2021-03-29T11:12:58Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![TOTA\_RAKESH\_KUMAR](https://discourse.paraview.org/user_avatar/discourse.paraview.org/tota_rakesh_kumar/32/6308_2.png) [@TOTA\_RAKESH\_KUMAR](https://discourse.paraview.org/u/TOTA_RAKESH_KUMAR)
#### Post date: [March 29, 2021, 11:12am UTC](https://discourse.paraview.org/t/assigning-attributes-to-cell-as-celldata-to-visualise-in-cell-elements/6818/1 "2021-03-29T11:12:58Z")

</div>

Hi Users,  
I am doing finite element analysis post processing in paraview.I have node data, displacements, stresses, strains stored at point in point data in .vtu format. This is working fine in paraview where i can visualise my results but I need to visualize attributes in the cell. I have cell data of same size as finite elements. The code is in matlab. I added the following below code in the matlab file to convert it to .vtu file format  
fprintf(fid,’%s\n’,’’);  
fprintf(fid,’%s\n’,’’);  
fprintf(fid,’%f ‘,x);  
fprintf(fid,’\n%s\n’,’’);  
x is the attribute to visualize in cell in paraview. but when i open it in paraview the below errors it is showing. Any help

ERROR: In C:\glr\builds\paraview\paraview-ci\build\superbuild\paraview\src\VTK\IO\XMLParser\vtkXMLParser.cxx, line 379

vtkXMLDataParser (000001DA4174F560): Error parsing XML in stream at line 40, column 2, byte index 975451: mismatched tag

ERROR: In C:\glr\builds\paraview\paraview-ci\build\superbuild\paraview\src\VTK\IO\XML\vtkXMLReader.cxx, line 520

vtkXMLUnstructuredGridReader (000001DA481A17B0): Error parsing input file. ReadXMLInformation aborting.

---

<div class="post-metadata">

### Author: ![TOTA\_RAKESH\_KUMAR](https://discourse.paraview.org/user_avatar/discourse.paraview.org/tota_rakesh_kumar/32/6308_2.png) [@TOTA\_RAKESH\_KUMAR](https://discourse.paraview.org/u/TOTA_RAKESH_KUMAR)
#### Post date: [March 30, 2021, 12:57pm UTC](https://discourse.paraview.org/t/assigning-attributes-to-cell-as-celldata-to-visualise-in-cell-elements/6818/2 "2021-03-30T12:57:25Z")

</div>

Problem resolved
