Can XmlData be zero length?

Imported from previous forum

Hi. Can XmlData value be of zero length. Let’s say someone sends an empty string as XML, what is a good action?

Thank you.
Dmitry

[ original email was from Ryan Pierce - rpierce@taltrade.com ]
> Hi. Can XmlData value be of zero length. Let’s say someone sends an empty string as XML, what is a good action?

Absolutely not.

It is a spec requirement that tag=[SOH] is illegal, and grounds for a session-level reject.

However, XmlData is an optional field. You don’t need to send it.