If XML is all about “text” data, is it possible to include binary data (such as an image) in an XML document? If yes, how?
Yes, it is possible to include binary data as part of XML document. The binary data needs to be hex or base64 encoded. Most of the parsers and various XML tools offer the encoding/decoding support for binary data, for example, using Microsoft’s XML parser (MSXML), if a node data type is set to bin.base64, the parser automatically does the base64 encoding/decoding.





