[DFDL-WG] Action 322 - embedded XML and JSON
Steve Hanson
smh at uk.ibm.com
Fri Jul 9 06:23:29 EDT 2021
Embedded XML and JSON
Apache Daffodil seeing requests for embedded XML strings.
z/TPF seeing requests for embedded JSON objects.
This was something that was originally a candidate for DFDL 1.0 but was
dropped.
New action 322 raised to investigate for DFDL 2.0.
Investigation has shown that dfdl:representation="xml" for String types
was the way this was to be achieved. See table, taken from draft 033 of
the spec (Dec 2008).
Property Name
Description
representation
String
Valid values are dependent on logical type.
Number: ‘text, ‘binary’
String: ‘text'(implied), ‘xml’
Calendar: ‘text, ‘binary’
Boolean: ‘text, ‘binary’
Opaque: ‘binary’
Note that for type String, the representation is always assumed to be
'text' so only the value 'xml' for representation has any effect on how
String type elements are processed.
Annotation: dfdl:element (all simple types)
In draft 034, the 'xml' option had been struck through. I've trawled the
WG call minutes from that time but can't find a mention of its removal.
Regards
Steve Hanson
IBM Hybrid Integration, Hursley, UK
Architect, IBM DFDL
Co-Chair, OGF DFDL Working Group
smh at uk.ibm.com
tel:+44-1962-815848
mob:+44-7717-378890
Note: I work Tuesday to Friday
Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number
741598.
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.ogf.org/pipermail/dfdl-wg/attachments/20210709/4f66b583/attachment-0001.html>
More information about the dfdl-wg
mailing list