[ANN] XML Cleaner - remove superfluous namespaces

V

Victor Porton

http://www.mathematics21.org/misc/xmlclean/

I wrote XML Cleaner (current version 0.1.1alpha).

This command line utility can remove superfluous namespace
declarations from XML files.

It is written in Ada95 with XMLAda (which needs to be patched).

XML Cleaner should grow into a general XML filter/validator
with other functions, such as removal of superfluous whitespace,
DTD entity expansion etc. etc.

Oh, years passed and World laziness was overcomed. It seems
that no one else has written a command line utility to clean
XML files from superfluous namespaces before.
 
P

Peter Flynn

Victor said:
http://www.mathematics21.org/misc/xmlclean/

I wrote XML Cleaner (current version 0.1.1alpha).

This command line utility can remove superfluous namespace
declarations from XML files.

It is written in Ada95 with XMLAda (which needs to be patched).

XML Cleaner should grow into a general XML filter/validator
with other functions, such as removal of superfluous whitespace,
DTD entity expansion etc. etc.

Oh, years passed and World laziness was overcomed. It seems
that no one else has written a command line utility to clean
XML files from superfluous namespaces before.

Possibly because you can do it in two lines of sed:

s/xmlns:[^=][^=]*=\("[^"][^"]*"\|'[^'][^']*'\)//
s/<\([/]*\)[^:][^:]*:/<\1/

///Peter
 
N

Nick Kew

Peter said:
Possibly because you can do it in two lines of sed:

s/xmlns:[^=][^=]*=\("[^"][^"]*"\|'[^'][^']*'\)//
s/<\([/]*\)[^:][^:]*:/<\1/

sssh. Two-line scripts wrapped in GUIs are a multi-billion business.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top