I'm trying to use xmllint to reformat our VisualForce code. My command line is "xmllint --format --recover filename.page".
Though the formatting (especially script sections) work out well, all the tags with apex inside them are modified to eliminate "apex."
For instance, "apex:page" is replaced with "page.". Obviously, this makes the reformatting useless.
While processing, xmllint complains about the namespace. In the example below I just use the namespace "ns." Notice how the output removes the "ns."
tgagne@ubuntu:~/tmp$ xmllint --format --recover a.xml
a.xml:1: namespace error : Namespace prefix ns on a is not defined
<ns:a>
^
<?xml version="1.0"?>
<a>
</a>