Site Feedback Thread

2 posts

Forum Read Only

This forum has been made read only by the site admins. No new threads or comments can be added.

XML Closing Tag

Back to Forum: Site Feedback
  • User profile image

    How do I close an XML tag with out the the full text?

    When I write out the xml file, it's written like so:-



    I want the ending tag not to contain the opening tag wording.... like so



    I'm new to writing out XML, any advice would be appreciated.   

    The reason I want to do this, is because I'm writing a small app that outputs some data to be read by another application (which I have no control), when I remove the tag text from the closing tag it reads the file fine, with it, it doesn't.

    Thanks in advance.

  • User profile image

    You can't do that. The closest XML comes is allowing you to open and close a tag at the same time:

    <Document />

    Otherwise you have to be explicit.

Conversation locked

This conversation has been locked by the site admins. No new comments can be made.