Skip to main content
Jun 19, 2012 6:49 PM UTC
Question

Valid XML singleton tags

Has anyone come across parser problems when it comes to Arbortext singleton tags not being properly closed?


All of our singleton tags such as <tableref> are closed only by a > sign, instead of using />. The parsers we use are constantly complaining about this.


Is this Arbortext XML Editor specific? Can it be changed?


Ashley

    3 replies

    Jun 19, 2012 6:52 PM UTC
    Are you sure you are using the XML mode? I've seen this behaviour on SGML
    documents and then Arbortext normalizes SGML such that it is almost XML.

    ..dan


    > Has anyone come across parser problems when it comes to Arbortext
    > singleton tags not being properly closed?
    > All of our singleton tags such as <tableref> are closed only by a > sign,
    > instead of using />. The parsers we use are constantly complaining about
    > this.
    > Is this Arbortext XML Editor specific? Can it be changed?
    > Ashley
    >
    >
    Jun 19, 2012 6:56 PM UTC
    EMPTY tags (singleton tags) in SGML do not have the /> at the end. This is XML syntax. It seems to me that you are probably parsing an SGML document.
    Jun 19, 2012 7:01 PM UTC
    XML singleton tags must always be of the form <tag/>. SGML will support unclosed <tag> if you have the DTD set to allow omitted closing tags for that particular element.

    -G

    On 19/06/2012, at 19:50, "Ashley Holmes" <aholmes@pharmacists.ca<<a style="COLOR:" blue;=" text-decoration:=" underline&quot;=" target="_BLANK" href="mailto:aholmes@pharmacists.ca">>">mailto:aholmes@pharmacists.ca>> wrote:


    Has anyone come across parser problems when it comes to Arbortext singleton tags not being properly closed?

    All of our singleton tags such as <tableref> are closed only by a > sign, instead of using />. The parsers we use are constantly complaining about this.

    Is this Arbortext XML Editor specific? Can it be changed?

    Ashley

    ----------