EnglishFrenchSpanish

Ad


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
    strikr
    strikr
    Strikr Free Software project. Artifacts
    released under a 'intent based'
    dual license: AGPLv3 (community) and
    CC-BY-NC-ND 4.0 international
    (commercial)...
    Download strikr
  • 3
    GIFLIB
    GIFLIB
    giflib is a library for reading and
    writing gif images. It is API and ABI
    compatible with libungif which was in
    wide use while the LZW compression
    algorithm was...
    Download GIFLIB
  • 4
    Alt-F
    Alt-F
    Alt-F provides a free and open source
    alternative firmware for the DLINK
    DNS-320/320L/321/323/325/327L and
    DNR-322L. Alt-F has Samba and NFS;
    supports ext2/3/4...
    Download Alt-F
  • 5
    usm
    usm
    Usm is a unified slackware package
    manager that handles automatic
    dependency resolution. It unifies
    various package repositories including
    slackware, slacky, p...
    Download usm
  • 6
    Chart.js
    Chart.js
    Chart.js is a Javascript library that
    allows designers and developers to draw
    all kinds of charts using the HTML5
    canvas element. Chart js offers a great
    array ...
    Download Chart.js
  • More »

Linux commands

  • 1
    a2j
    a2j
    a2j - Wrapper script to simulate
    a2jmidid's non-DBUS behaviour though
    a2jmidid actually being in DBUS mode ...
    Run a2j
  • 2
    a2jmidid
    a2jmidid
    a2jmidid - JACK MIDI daemon for ALSA
    MIDI ...
    Run a2jmidid
  • 3
    corebird
    corebird
    corebird - Native Gtk+ Twitter client
    for the Linux desktop. ...
    Run corebird
  • 4
    coredumpctl
    coredumpctl
    coredumpctl - Retrieve coredumps from
    the journal ...
    Run coredumpctl
  • 5
    ganyremotex
    ganyremotex
    ganyremote - GTK+ frontend for
    anyRemote ...
    Run ganyremotex
  • 6
    gap
    gap
    GAP - Groups, Algorithms and
    Programming DESCRIPTION: GAP is a system
    for computational discrete algebra with
    particular emphasis on computational
    group theory...
    Run gap
  • More »

Ad