Changes

Jump to navigation Jump to search
95 bytes added ,  02:16, 15 August 2011
no edit summary
|-
| valign='top' width='90' | '''Signatures'''
|<code><b>json:serialize-ml</b>($input as node()) as xs:string()</code>
|-
| valign='top' | '''Summary'''
|-
| valign='top' width='90' | '''Signatures'''
|<code><b>json:parse-ml</b>($input as xs:string()) as element()</code>
|-
| valign='top' | '''Summary'''
==Examples==
'''Example 1: A basic example Converts a simple XML fragment to convert an empty XML documentthe JsonML format'''
'''Query:'''
</pre>
'''Example 2: Conversion of some simple objects Converts an XML document with elements and arraystext'''
'''Query:'''
<pre class="brush:xquery">
json:serialize-ml(doc('inputflickr.xml'))
</pre>
'''inputflickr.xml:'''
<pre class="brush:xml">
<address id='1'flickr> <last_nametitle>SmithTalk On Travel Pool</last_nametitle> <agelink>25http://www.flickr.com/groups/talkontravel/pool/</agelink> <address> <streetdescription>21 2nd StreetTravel and vacation photos from around the world.</streetdescription> <citymodified>New York2009-02-02T11:10:27Z</citymodified> <codegenerator>10021<http:/code> </address> <phone type='home'>212 555-1234<www.flickr.com/phone></addressgenerator></preflickr>
'''Result:'''
</pre>
'''Example 3: Nested Converts a document with nested elements and attributes'''
'''Query:'''
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu