OnWorks favicon

hxname2id - Online in the Cloud

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

This is the command hxname2id 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



hxname2id - move some NAME and ID attributes from an A to its parent


hxname2id [ -x ] [ file ]


The hxname2id command reads an HTML file and looks for elements with an A element as first
child, with no intervening text other than whitespace. If that A element has an ID or NAME
attribute, it is moved to the parent element and removed from the A.

Because Netscape 4 doesn't understand ID attributes, it was common practice to write
<H2><A NAME="sect7">...</A></H2> instead of <H2 ID="sect7">. This program can be used to
convert such old HTML files to the new convention.

Other programs in this suite, such as hxmultitoc(1), require IDs on headings instead of A
elements with NAME attributes. So it is useful to run hxname2id prior to running
hxmultitoc and similar program. hxname2id can be used in a pipe.


The following options are supported:

-x Use XML conventions: empty elements are written with a slash at the end: <IMG />


The following operand is supported:

file The name of an HTML file. If absent, standard input is read instead.


The following exit values are returned:

0 Successful completion.

> 0 An error occurred in the parsing of the HTML file. hxname2id will try to
correct the error and produce output anyway.

Use hxname2id online using onworks.net services

Free Servers & Workstations

Download Windows & Linux apps

  • 1
    Image Downloader
    Image Downloader
    Crawl and download images using
    Selenium Using python3 and PyQt5.
    Supported Search Engine: Google, Bing,
    Baidu. Keywords input from the keyboard
    or input from ...
    Download Image Downloader
  • 2
    Eclipse Tomcat Plugin
    Eclipse Tomcat Plugin
    The Eclipse Tomcat Plugin provides
    simple integration of a tomcat servlet
    container for the development of java
    web applications. You can join us for
    Download Eclipse Tomcat Plugin
  • 3
    WebTorrent Desktop
    WebTorrent Desktop
    WebTorrent Desktop is for streaming
    torrents on Mac, Windows or Linux. It
    connects to both BitTorrent and
    WebTorrent peers. Now there's no
    need to wait for...
    Download WebTorrent Desktop
  • 4
    GenX is a scientific program to refine
    x-ray refelcetivity, neutron
    reflectivity and surface x-ray
    diffraction data using the differential
    evolution algorithm....
    Download GenX
  • 5
    PSPP is a program for statistical
    analysis of sampled data. It is a free
    replacement for the proprietary program
    SPSS. PSPP has both text-based and
    graphical us...
    Download pspp4windows
  • 6
    Git Extensions
    Git Extensions
    Git Extensions is a standalone UI tool
    for managing Git repositories. It also
    integrates with Windows Explorer and
    Microsoft Visual Studio
    (2015/2017/2019). Th...
    Download Git Extensions
  • More »

Linux commands