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?
Yes, empty elements of the kind ...
... 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!
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)