GeoGebra

GeoGebra XML Format

Jump to: navigation, search

This is a short description of GeoGebra’s XML file format. It is used to save GeoGebra constructions in a file with the extension ".ggb" or ".ggt".

Version: 3.2
Date: November 2008

ggb files

A ggb (GeoGebra) file is used to save a GeoGebra construction including gui settings, user-defined-tools, and image files. A ggb file is a zip-archive with the following contents:

  • geogebra.xml is an XML file describing the main construction
  • geogebra_macro.xml (optional) is an XML file describing user-defined-tools
  • geogebra_thumbnail.png (optional) is a PNG with maximum dimensions 200 pixels by 200 pixels of the Graphics View at the time of saving
  • image files (optional) are saved in subfolders

ggt files

A ggt (GeoGebra Tools) file is used to save one or several user-defined-tools of GeoGebra together with all necessary image and icon files. A ggt file is a zip-archive with the following contents:

  • geogebra_macro.xml is an XML file describing one or several user-defined-tools
  • image files (optional) are saved in subfolders


geogebra_macro.xml

The geogebra_macro.xml file describes user-defined-tools and has the following structure.

<?xml version="1.0" encoding="utf-8"?>      
 <geogebra format="3.2">
  <macro>
    <macroInput>
        ...                  <-- the <macroInput> tag
    </macroInput>
    <macroOutput>
        ...                  <-- the <macroOutput> tag
    </macroOutput>
    <construction>              
       ...                   <-- the <construction> tag
    </construction>
 </macro>
</geogebra>