[Xml-bin] Some central design issues
Peter Jacobi
pj@walter-graphtek.com
Thu, 12 Apr 2001 12:07:21 +0200
> <xmlbin:binary>...base64...</xmlbin:binary>
>
> This would be needed to be able to round trip binXML through
> textXML... otherwise the binary bits would come out as base64 strings
> after going through XML :-(
bXML
[{tag="Foo"}{type=binary}{length=123}] ... 123 bytes of binary data here
=>
tXML
<Foo
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="base64Binary"
> ... base64 encoded data goes here ...
</Foo>
You can and should use the xsi:type attribute without actually using a
schema. There still must be a mechanism implemented for attributes.
Regards,
Peter