EnglishFrenchSpanish

OnWorks favicon

xmlsortp - Online in the Cloud

Run xmlsortp in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command xmlsortp that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


xmlsort - sorts 'records' in XML files

SYNOPSIS


xmlsort -r=<recordname> [ <other options> ] [ <filename> ]

Options:
-r <name> name of the elements to be sorted
-k <keys> child nodes to be used as sort keys
-i ignore case when sorting
-s normalise whitespace when comparing sort keys
-t <dir> buffer records to named directory rather than in memory
-m <bytes> set memory chunk size for disk buffering
-h help - display the full documentation

Example:
xmlsort -r 'person' -k 'lastname;firstname' -i -s in.xml >out.xml

DESCRIPTION


This script takes an XML document either on STDIN or from a named file and writes a sorted
version of the file to STDOUT. The "-r" option should be used to identify 'records' in
the document - the bits you want sorted. Elements before and after the records will be
unaffected by the sort.

OPTIONS


Here is a brief summary of the command line options (and the XML::Filter::Sort options
which they correspond to). For more details see XML::Filter::Sort.

-r <recordname> (Record)
The name of the elements to be sorted. This can be a simple element name like
'person' or a pathname like 'employees/person' (only person elements contained
directly within an employees element).

-k <keys> (Keys)
Semicolon separated list of elements (or attributes) within a record which should be
used as sort keys. Each key can optionally be followed by 'alpha' or 'num' to
indicate alphanumeric of numeric sorting and 'asc' or 'desc' for ascending or
descending order (eg: -k 'lastname;firstname;age,n,d').

-i (IgnoreCase)
This option makes sort comparisons case insensitive.

-s (NormaliseKeySpace)
By default all whitespace in the sort key elements is considered significant.
Specifying -s will case leading and trailing whitespace to be stripped and internal
whitespace runs to be collapsed to a single space.

-t <directory> (TempDir)
When sorting large documents, it may be prudent to use disk buffering rather than
memory buffering. This option allows you to specify where temporary files should be
written.

-m <bytes> (MaxMem)
If you use the -t option to enable disk buffering, records will be collected in memory
in 'chunks' of up to about 10 megabytes before being sorted and spooled to temporary
files. This option allows you to specify a larger chunk size. A suffix of K or M
indicates kilobytes or megabytes respectively.

Use xmlsortp online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    SAGA GIS
    SAGA GIS
    SAGA - System for Automated
    Geoscientific Analyses - is a Geographic
    Information System (GIS) software with
    immense capabilities for geodata
    processing and ana...
    Download SAGA GIS
  • 2
    Toolbox for Java/JTOpen
    Toolbox for Java/JTOpen
    The IBM Toolbox for Java / JTOpen is a
    library of Java classes supporting the
    client/server and internet programming
    models to a system running OS/400,
    i5/OS, o...
    Download Toolbox for Java/JTOpen
  • 3
    D3.js
    D3.js
    D3.js (or D3 for Data-Driven Documents)
    is a JavaScript library that allows you
    to produce dynamic, interactive data
    visualizations in web browsers. With D3
    you...
    Download D3.js
  • 4
    Shadowsocks
    Shadowsocks
    A fast tunnel proxy that helps you
    bypass firewalls This is an application
    that can also be fetched from
    https://sourceforge.net/projects/shadowsocksgui/.
    It ha...
    Download Shadowsocks
  • 5
    GLPI Themes
    GLPI Themes
    Download release at
    https://github.com/stdonato/glpi-modifications/
    Color themes for GLPI 0.84 and 0.85 New
    Modifications for GLPI This is an
    application that c...
    Download GLPI Themes
  • 6
    SMPlayer
    SMPlayer
    SMPlayer is a free media player for
    Windows and Linux with built-in codecs
    that can also play YouTube videos. One
    of the most interesting features of
    SMPlayer:...
    Download SMPlayer
  • More »

Linux commands

Ad