Skip to main content
1-Visitor
June 19, 2012
Question

Valid XML singleton tags

  • June 19, 2012
  • 3 replies
  • 1366 views

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

    1-Visitor
    June 19, 2012
    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
    >
    >
    1-Visitor
    June 19, 2012
    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.
    16-Pearl
    June 19, 2012
    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

    ----------