Changes

Jump to: navigation, search

Gramps XML

549 bytes added, 22:41, 19 January 2023
m
Gramps XML Resources: update link
{{languages|Gramps XML}}
'''Gramps XML''' is the '''Extensible Markup Language ''' ([http://en.wikipedia.org/wiki/XML XML] ) format designed for storing Gramps data. The goal is to have a fully portable, human- and machine-readable XML format so that the data can be read and written without any loss. In addition, XML format allows for smaller files (if '''compressed''') and for using the version control system for tracking the changes (if '''uncompressed''').
The reason XML is not used by Gramps as the working database ("internal") format is performance, specifically memory considerations.
==Gramps XML Resources==
{{man note|Starting with Gramps XML 1.0|Each revision of Gramps XML has its own resource page, with references to that version's [https://en.wikipedia.org/wiki/Document_type_definition DTD] and [https://en.wikipedia.org/wiki/RELAX_NG RELAX NG] schema.<br />The resource pages are listed at [httphttps://www.gramps-project.org/xml/ httphttps://www.gramps-project.org/xml/].}}
{| class="wikitable sortable"
| no change against 4.2 yet
| >= 1.0.0 - best 1.7
| 1819
| Unreleased <br />[{{Code Browser}}/tree/master/example/gramps/example.gramps example.gramps]
| Unreleased
| 1.7.0 - 1.7.1
| >= 1.0.0 - 1.7
| 1819
|[{{Code Browser}}/tree/maintenance/gramps51/example/gramps/example.gramps]
|
| 1.7.0 - 1.7.1
| >= 1.0.0 - 1.7
| 1819
|[{{Code Browser}}/tree/maintenance/gramps50/example/gramps/example.gramps]
|
* Database backends become plugins
* BSDDB is default, convert default handle (metadata) to str
* DB-API (SQLite) is tested as viable replacement
|-
xmllint --noout filename.gramps
{{man warn|If the Gramps XML file does not validate|this indicates an error in either the DTD or the XML Writer.<br>'''Please file the bug report at httphttps://bugs.gramps-project.org /bugs/ in that case.'''}}
==Parsing Gramps XML file==
* [[Xsl|XSLT]] scripts: [http://www.gramps-project.org/grampsExhibit/0.0.2/grampsexhibit.xsl gramps exhibit] (Michiel Nauta), [[media:Ancestors.xsl.gz|Ancestors.xsl]], [[media:Birthday.xsl.gz|Birthday.xsl]] (Gramps 1.x), [[media:Tellico.tar.gz|Tellico scripts]], [[Lxml_GrampletAddon:Lxml Gramplet|lxml gramplet]], [http://sourceforge.net/mailarchive/message.php?msg_id=28108782 Print Notes], etc ... see [[media:Xpaths.gz|XPaths]].
* A [http://svn.code.sf.net/p/gramps-addons/code/trunk/contrib/DescendantsLines/ft.py sample of standalone script] (Adam Sampson) which parses a Gramps XML file for drawing a family tree.
* [[Other_genealogy_tools#Gramps-php-exporter|Gramps-php-exporter]]
* A [http://sourceforge.net/projects/joomlagen/ Joomla! component/module] for uploading the Gramps XML database and for showing genealogical information and overviews.
* [http://www.phpgedview.net PhpGedView] supports [http://phpgedview.svn.sourceforge.net/viewvc/phpgedview/trunk/phpGedView/includes/classes/class_grampsexport.php simple output to Gramps XML file format] for the Clippings Cart and has an option to download entire Gedcom in Gramps XML form as well as being able to retrieve raw data from the SOAP web service in Gramps XML format. Still a [http://sourceforge.net/projects/phpgedview/forums/forum/185166/topic/5177979 partial support on version 4.3.0].
* [http://en.wikipedia.org/wiki/Greasemonkey Greasemonkey] scripts (Michiel Nauta)* GrampsXMLview was a number of PHP scripts in combination with a Gramps XML database (Sjoerd van Staveren). [https://web.archive.org/web/20120220103003/http://www.gramps.van-staveren.net/ GrampsXMLview2012 www.gramps.van-staveren.net Internet Archive] is a number of PHP scripts in combination with a Gramps XML database.
* [https://github.com/claws/gramps2gource gramps2gource] for blurring the line between Genealogy and Software Configuration Management visualisation.
* ...
==See also==
* [https://gramps.discourse.group/t/auxiliary-xml-format-documentation/2800 Auxiliary XML files in Gramps]:
** filters: custom_filters.xml
** report settings: report_options.xml
** Books: books.xml
** holiday sets or country calendars: [[Calendar_tools_holidays#format_of_holidays.xml|holidays.xml]]
* [[Generate XML]]
* Tutorial: [[Customize_reports_with_XML_tool|Customize reports with XML tool]]
* [[GEDCOM]]
* [[Gramps and GEDCOM]]
1,969
edits

Navigation menu