XML embedded in JSON
Wednesday, 13 January 2016 · 2 messages
IL
Actual XML elements in actual JSON documents won’t be feasible I guess. But after you’ve transformed the JSON to XML, you can parse the escaped strings into XML elements proper, using
http://www.w3.org/TR/xpath-functions-3/#func-parse-xml
Quoted text · E. Wray Johnson · 7 lines
On 13.01.2016 02:06, E. Wray Johnson wrote: > We have JSON that has string/text values which are XML. Is there a > way o have the XML as sub-elements value and not be encoded/escaped > string? > > Wray Johnson >
EJ
E. Wray Johnson13 Jan 2016 03:06 #
We have JSON that has string/text values which are XML. Is there a way o have the XML as sub-elements value and not be encoded/escaped string?
Wray Johnson
Written for BaseX 8.3. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery