# Example.gramps and 1.7.2 grampsxml.dtd

**URL:** <https://gramps.discourse.group/t/example-gramps-and-1-7-2-grampsxml-dtd/7204>\
**Category:** Beta Testing\
**Created:** [March 11, 2025, 10:08am UTC](https://gramps.discourse.group/t/example-gramps-and-1-7-2-grampsxml-dtd/7204 "2025-03-11T10:08:08Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![romjerome](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/romjerome/32/1489_2.png) [@romjerome](https://gramps.discourse.group/u/romjerome)\
**Post date:** [March 13, 2025, 9:50am UTC](https://gramps.discourse.group/t/example-gramps-and-1-7-2-grampsxml-dtd/7204/7 "2025-03-13T09:50:06Z")

</div>

> [@romjerome](#):
>
> It seems that we need to assign a random id attribute (id\_) on the modified .gramps file.

It still works, but only for few primary objects.  
e.g., for places or people

```python
<database xmlns="http://gramps-project.org/xml/1.7.2/">
   <people>
    <person id="">
      <name>
        <surname>Abbott</surname>
      </name>
    </person>
  </people>
  <places>
    <placeobj id="">
      <pname value="AK"/>
    </placeobj>
 </places>
 <sources>
   <source id="">
    <stitle>Import from test2.ged</stitle>
   </source>
  </sources>
</database>

```

So, one could import an external flat database, at a glance. In this case, a place database or a list of surnames, but could be census, individuals, events, sources, notes, etc.

About internal handles, it makes sense to keep them for an update or comparison. So, I do not want (or try to limit) any assignation on handle for this test.

Anyway, I wonder if a gramps xml reader viewer/reader could be useful? Maybe via a web app or a local one. I saw that streamlit provides a complete ecosystem for that, with few lines of code. Why not a transformer ? [CSV Import or Text Import addon are providing something like this](https://gramps.discourse.group/t/csv-template-for-text-import/5277/5).

With gramps xml file format we have some validation tools. So, either play with the flexibility of gramps or let the control and check of data to xml file format ([markups, tags, elements and attributes](https://raw.githubusercontent.com/gramps-project/addons-source/refs/heads/master/lxml/xpaths_4_2_x.txt)). This experimental list needs a minor update for Gramps 6.0 (maybe 5.2), but it gives a quick overview of a possible hierarchical “template” for looking at the content of our gramps xml files.

Nick,

> [@romjerome](#):
>
> Maybe version should be also set into ‘libgrampsxml.py’ ?

I was no more able to provide a Pull Request (_github account and n check issues_).

```python
-GRAMPS_XML_VERSION_TUPLE = (1, 7, 1) # version for Gramps 4.2
+GRAMPS_XML_VERSION_TUPLE = (1, 7, 2) # version for Gramps 6.0

```

---

_[View the full topic](https://gramps.discourse.group/t/example-gramps-and-1-7-2-grampsxml-dtd/7204)._
