Creator information within the XML itself

Discussion in 'XML' started by Carsten Witte, Jan 13, 2010.

  1. Hi all,

    already checked quite some FAQ here and at 3WC, but either there is no
    information or I'm reading it wrong. I'm looking for a way to include
    name and version of the editor/tool that generated the XML file into
    the file itself. I'm aware, that I could come up with something like:

    <creator tool="mycrap.exe" version="0.1" />

    but of course if there would be a standardized way/tag/attribute, I
    would prefer to use that one.

    TIA, Carsten
    Carsten Witte, Jan 13, 2010
    1. Advertisements

  2. Hi Carsten,

    How about Dublin Core Elements?


    With full namespace declarations, providing full validation:

    <dc:creator xmlns:dc="" xmlns:xsi="" xsi:schemaLocation="">mycrap.exe</dc:creator>

    <dct:hasVersion xmlns:dct="" xmlns:xsi="" xsi:schemaLocation="">0.1</dct:hasVersion>

    If 'xsi' namespace is already declared in root element: remove it.

    Good luck...
    Susanne Wunsch
    Susanne Wunsch, Jan 13, 2010
    1. Advertisements

  3. Of course that only works if the particular XML markup you're working
    with has defined a way to do it. If you're designing your own document,
    you can add that; if you're trying to work with someone else's schema or
    DTD you need to look at whether and how they've provided an authorship
    mechanism... Or you need to do what most tools do and put that in a
    comment rather than in the document content per se.

    Joe Kesselman,

    {} ASCII Ribbon Campaign | "may'ron DaroQbe'chugh vaj bIrIQbej" --
    /\ Stamp out HTML mail! | "Put down the squeezebox & nobody gets hurt."
    Joe Kesselman, Jan 13, 2010
  4. Since DC sounds promising and we own our XML documents, I think there
    is a way to include this into our specifications. With over 100 xml-
    files in the system and an growing multitude of tools to create them,
    it prove useful to have the information at hand in a standardized

    Thanx to both of you.
    Carsten Witte, Jan 13, 2010
  5. Johannes Koch, Jan 13, 2010
  6. Hi Johannes,

    Thanks for the comment.

    That means, there is no possibility to describe the pure software
    version, than adding it into the 'creator'-tag?

    The other tag 'isVersionOf' also refines a 'relation'.

    Would some link be a 'non-literal value'?




    Can you give an example, how to use 'hasVersion' correctly?

    Thanks for getting me onto the right track.

    Susanne Wunsch, Jan 13, 2010
  7. I don't understand.
    The document <>
    contains an example with another relation:

    <dcterms:isPartOf xsi:type="dcterms:URI">

    So, probably


    could be the way to describe a "has version" relation between two resources.

    In RDF/XML such a relation between uri_for_resource1 and
    uri_for_resource2 could look like this:

    <rdf:Description rdf:about="uri_for_resource1">
    <dct:hasVersion rdf:resource="uri_for_resource2"/>
    <rdf:Description rdf:about="uri_for_resource2">
    Johannes Koch, Jan 14, 2010
  8. Carsten Witte

    Peter Flynn Guest

    The TEI provides for this kind of metadata; if DC doesn't provide the
    level of granularity you need, you can borrow the code from the TEI schemas.

    Peter Flynn, Jan 17, 2010
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.