Results 1 to 2 of 2

Thread: Passing data with XML

  1. #1
    Join Date
    Jul 2008

    Passing data with XML

    We are passing XML to another system. A large dispute has arisen concerning how XML tags that contain no data must be passed. Our problem is our BizTalk application handles a tag with no data with a single element closed at the end ex. <gateway_id /> as opposed to <gateway_id></gateway_id> or not sending it at all. Is sending a single element to indicate no data <gateway_id /> proper according to the XML standard?

    Is this well-formed XML according to the standard to send to another computer that is expected to comply with the XML standard?
    Example below:
    <gateway_id />

  2. #2
    Join Date
    Oct 2007
    Yes, empty elements of the kind ...

    <empty-element />
    ... are considered the "proper" way to go about these. Note, however, that just about every XML parser out there will equate the above with:

    So they will both be considered to be the same, which is to say, empty.

    Not to be rude or anything, but if you work in an environment where big disputes are occuring over this, then there is some major nerdiness going on. Beware!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center