Skip to content

Part 1: Create an edML-based online course

A Brief Introduction to XML

A tag named tagname is a “building block” that describes the structure of a document; it is opened with <tagname> and closed with </tagname>. Depending on the element, additional substructures (= other tags) and/or text may be contained between them. If there is no content between the opening and closing tags, this can be abbreviated as <tagname/>. With <tagname>, so-called attributes are also permitted, which can define specific properties. Attributes are specified in the form attributname=“attributwert”. A list of all tags available in edML can be found in the category Language or Player (application examples).

The Basic Structure: the course tag

The online editor is not yet available. Therefore, it is best to use a code editor such as Visual Studio Code, IntelliJ IDEA, or Eclipse. Alternatively, you can use any text editor, even Word or similar programs.

In edML, an online course is introduced with a course tag.

Create a Root Tag: course
<course xmlns="https://edml.mint-kolleg.kit.edu" edmlversion="0.6.0">

</course>

The value of the edmlversion attribute specifies the EDML version

Create a Variant

A course can define one or more variants of itself, such as different language variants. Therefore, the next tag is variant, where the language is specified using the lang attribute. Possible values include, for example, de for German or en for English.

Define a (Language) Variant
<course xmlns="https://edml.mint-kolleg.kit.edu" edmlversion="0.6.0">
    <variant lang="en">
    </variant>
</course>

In this tutorial, we'll limit ourselves to one language variant. You can define additional ones in the same way:

Define Multiple (Language) Variants
<course xmlns="https://edml.mint-kolleg.kit.edu" edmlversion="0.6.0">
    <variant lang="en">
    </variant>

    <variant lang="en">
    <variant>
</course>

Course Titles Assigned

To assign a title to the course, each variant must be given its own unique title:

Assign a Course Title
<course xmlns="https://edml.mint-kolleg.kit.edu" edmlversion="0.6.0">
    <variant lang="en">
        <title>My First edML Online Course</title>
    </variant>
</course>

Preparing Navigation and Pages

In addition to the course title, a variant must also include page navigation and pages. These will be “fleshed out” in the next steps.

Prepare Navigation and Pages
<course xmlns="https://edml.mint-kolleg.kit.edu" edmlversion="0.6.0">
    <variant lang="en">
        <title>My First edML Online Course</title>

        <navigation>
        </navigation>

        <pages>
        </pages>
    </variant>
</course>

Create a Home Page

Now we’ll create a home page, for example, with a welcome message. The first step is to create the page. Each page must be uniquely identifiable within a variant. For this reason, each page is assigned a name attribute, whose value must be unique to that specific page within the variant. The name should be chosen in such a way that it helps you, as the author, identify the page. It must begin with a letter. Name components can be separated by _ or -.

Add a Page
<course xmlns="https://edml.mint-kolleg.kit.edu" edmlversion="0.6.0">
    <variant lang="en">
        <title>My First edML Online Course</title>

        <navigation>
        </navigation>

        <pages>
            <page name="startpage">
            </page>
        </pages>
    </variant>
</course>

This page is currently empty. A page title can be specified using the title tag. To add a welcome message, we first need to provide the page with an appropriate container to hold the content. The simplest container is a textbox element, into which text can be embedded. Text is organized into paragraphs (the p tag). A possible home page might look like this:

Add Content to Page
<course xmlns="https://edml.mint-kolleg.kit.edu" edmlversion="0.6.0">
    <variant lang="en">
        <title>My First edML Online Course</title>

        <navigation>
        </navigation>

        <pages>
            <page name="startpage">
                <title>Welcome to the course!</title>   
                <textbox>                    
                    <p>We hope you enjoy working on this.</p> 
                </textbox>
            </page>
        </pages>
    </variant>
</course>

As a final step, the page must be linked to the navigation so that course users can find it. The navigation can be thought of as a list with possible “sublists” for individual items. Therefore, you should first add a navlist element to the navigation. This navlist element represents the top level of the navigation. A directly subordinate navlist element corresponds to the second level of navigation, and so on.

Create Navigation Entry
<course xmlns="https://edml.mint-kolleg.kit.edu" edmlversion="0.6.0">
    <variant lang="en">
        <title>My First edML Online Course</title>

        <navigation>
            <navlist>
            </navlist>
        </navigation>

        <pages>
            <page name="startpage">
                <title>Welcome to the course!</title>   
                <textbox>                    
                    <p>We hope you enjoy working on this.</p> 
                </textbox>
            </page>
        </pages>
    </variant>
</course>

The navigation list must now be expanded to include an entry that links to the page named startpage. To do this, the navitem element and the ref element are used. Since this is the home page in our example, this role should be assigned to the navitem element via the roles attribute. To ensure that the navitem element links to the page and not, for example, to an external link (which would also be possible), a ref element is nested within the navitem element. This ref element points to the page named startpage using the to attribute.

Link Navigation to Page
<course xmlns="https://edml.mint-kolleg.kit.edu" edmlversion="0.6.0">
    <variant lang="en">
        <title>My First edML Online Course</title>

        <navigation>
            <navlist>
                <navitem roles="home">
                    <ref to="startpage">Home</ref>
                </navitem>
            </navlist>
        </navigation>

        <pages>
            <page name="startpage">
                <title>Welcome to the course!</title>   
                <textbox>                    
                    <p>We hope you enjoy working on this.</p> 
                </textbox>
            </page>
        </pages>
    </variant>
</course>

This completes the creation of your first online course using edML. You can save it as a file—for example, course.edml—using the editor provided. You can also test this file right away using our online edML player.

Add More Pages

Additional pages can be added by specifying additional page elements under pages. Each of these should then be linked to a navitem so that course users can access them.

Course with 3 Pages and Subnavigation
<course xmlns="https://edml.mint-kolleg.kit.edu" edmlversion="0.6.0">
    <variant lang="en">
        <title>My First edML Online Course</title>

        <navigation>
            <navlist>
                <navitem roles="home">
                    <ref to="startpage">Home</ref>
                </navitem>
                <navitem>
                    <ref to="chapter1page">Chapter 1</ref>
                    <navlist>
                        <navitem>
                            <ref to="chapter1-content1">Content 1-1</ref>
                        </navitem>
                    </navlist>
                </navitem>
            </navlist>
        </navigation>

        <pages>
            <page name="startpage">
                <title>Welcome to the course!</title>   
                <textbox>                    
                    <p>We hope you enjoy working on this.</p> 
                </textbox>
            </page>

            <page name="chapter1page">
                <title>Chapter 1</title>    
                <textbox>
                    <p>Welcome to Chapter 1!</p>
                </textbox>
            </page>

            <page name="chapter1-content1">
                <title>Chapter 1</title>
                <textbox>
                    <p>Content 1-1</p>
                </textbox>
            </page>
        </pages>
    </variant>
</course>