cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Help us improve the PTC Community by taking this short Community Survey! X

Valid XML singleton tags

AshleyHolmes
7-Bedrock

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 3

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
>
>

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.

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

----------
Top Tags