# Read XDMF format with Sets

**URL:** https://discourse.paraview.org/t/read-xdmf-format-with-sets/14257
**Category:** ParaView Support
**Created:** [March 25, 2024, 3:09pm UTC](https://discourse.paraview.org/t/read-xdmf-format-with-sets/14257 "2024-03-25T15:09:42Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![KS\_HH](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/k/c0e974/32.png) [@KS\_HH](https://discourse.paraview.org/u/KS_HH)
#### Post date: [March 25, 2024, 3:09pm UTC](https://discourse.paraview.org/t/read-xdmf-format-with-sets/14257/1 "2024-03-25T15:09:42Z")

</div>

Dear Paraview developers,  
I am trying to generate Finite Element results in the XDMF format (share mesh over time series data). To evaluate my results I heavily rely on cell sets to process the data of specific regions. To that end I tried to include a “Set” section in the XDMF-file which “lives” also in the original shared mesh to hopefully be available for every time data element. However, when I import the XDMF-file Paraview crashes without any warnings.  
Here is the minimal example file:

```auto
<Xdmf xmlns:ns0="http://www.w3.org/2003/XInclude" Version="3.0">
    <Domain>
        <Grid Name="mesh" GridType="Uniform">
            <Geometry GeometryType="XY">
                <DataItem DataType="Float" Dimensions="8 2" Format="XML">
                    0.0000000000000000e+00 0.0000000000000000e+00
                    1.0000000000000000e+00 0.0000000000000000e+00
                    2.0000000000000000e+00 5.0000000000000000e-01
                    1.0000000000000000e+00 1.0000000000000000e+00
                    0.0000000000000000e+00 1.0000000000000000e+00
                    -1.0000000000000000e+00 1.0000000000000000e+00
                    -2.0000000000000000e+00 5.0000000000000000e-01
                    -1.0000000000000000e+00 0.0000000000000000e+00
                </DataItem>
            </Geometry>
            <Topology TopologyType="Mixed" NumberOfElements="4">
                <DataItem DataType="Int" Dimensions="18" Format="XML">
                    5 0 1 3 4
                    5 0 4 5 7
                    4 1 2 3
                    4 5 6 7
                </DataItem>
            </Topology>
            <Attribute Name="ELE SETS" Center="Cell" AttributeType="Matrix">
                <DataItem Format="XML" Dimensions="4 5">
                    1 0 1 0 1
                    1 0 0 1 1
                    0 1 0 1 1
                    0 1 1 0 1
                </DataItem>
            </Attribute>
            <Set Name="Quads" SetType="Cell">
                <DataItem Format="XML" Dimensions="2" >
                    0 1
                </DataItem>
                <Attribute Name="Example" Center="Cell">
                    <DataItem Format="XML" Dimensions="2" >
                        0 0
                    </DataItem>
                </Attribute>
            </Set>
            <Set Name="Tris" SetType="Cell">
                <DataItem Format="XML" Dimensions="2" >
                    2 3
                </DataItem>
                <Attribute Name="Example" Center="Cell">
                    <DataItem Format="XML" Dimensions="2" >
                        1 1
                    </DataItem>
                </Attribute>
            </Set>
            <Set Name="All" SetType="Cell">
                <DataItem Format="XML" Dimensions="4" >
                    0 1 2 3
                </DataItem>
                <Attribute Name="Example" Center="Cell">
                    <DataItem Format="XML" Dimensions="4" >
                        0 0 0 0
                    </DataItem>
                </Attribute>
            </Set>
        </Grid>
        <Grid Name="TimeSeries_meshio" GridType="Collection" CollectionType="Temporal">
            <Grid>
                <ns0:include xpointer="xpointer(//Grid[@Name=&quot;mesh&quot;]/*[self::Topology or self::Geometry])" />
                <Time Value="0.0" />
                <Attribute Name="phi" AttributeType="Scalar" Center="Cell">
                    <DataItem DataType="Int" Dimensions="4" Format="XML" Precision="8">
                        1
                        2
                        3
                        4
                    </DataItem>
                </Attribute>
            </Grid>
            <Grid>
                <ns0:include xpointer="xpointer(//Grid[@Name=&quot;mesh&quot;]/*[self::Topology or self::Geometry])" />
                <Time Value="0.1" />
                <Attribute Name="phi" AttributeType="Scalar" Center="Cell">
                    <DataItem DataType="Float" Dimensions="4" Format="XML" Precision="8">
                        5.0000000000000000e-01
                        8.0000000000000004e-01
                        1.2000000000000000e+00
                        2.2e+00
                    </DataItem>
                </Attribute>
            </Grid>
        </Grid>
    </Domain>
</Xdmf>

```

I would be grateful for any help.
