Wiki source for CommandXtype


Show raw source

=====Command xtype=====

====Name====
**xtype** Prints the XDM type of each argument

====Synopsis====
xtype [ [[SerializationOptions serialization options]] ] [-v] arg [arg ...]


====Options====
Supports the standard [ [[SerializationOptions serialization options]] ]


xtype prints the XDM type of each argument using [[http://www.xqueryfunctions.com/xq/functx_sequence-type.html functx:sequence-type ]]
If the -v option is given then the argument is used as a variable name and its type is printed.

Example:

%%
xtype "hi" <[ 1.2 ]> there <[ 1,2,3 ]> <[ <foo/> ]> <[ document{ <bar/> } ]>
%%

Result
%%
xs:string
xs:decimal
xs:string
xs:integer+
element()
document-node()
%%



----
[[Commands]]
[[CategoryCommands]]
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki