N
Nicolas George
Hi.
I would like to simplify the namespaces declarations, something like that:
<html xmlns="http://www.w3.org/1999/xhtml">
<html:em xmlns:html="http://www.w3.org/1999/xhtml">foo</html:em>
</html>
must become:
<html xmlns="http://www.w3.org/1999/xhtml">
<em>foo</em>
</html>
That is: the em element is already in the XHTML namespace, there is no need
to re-declare the namespace nor to declare the element.
Can someone suggest how to do it efficiently/easily, preferably with
libxml2?
Thanks.
I would like to simplify the namespaces declarations, something like that:
<html xmlns="http://www.w3.org/1999/xhtml">
<html:em xmlns:html="http://www.w3.org/1999/xhtml">foo</html:em>
</html>
must become:
<html xmlns="http://www.w3.org/1999/xhtml">
<em>foo</em>
</html>
That is: the em element is already in the XHTML namespace, there is no need
to re-declare the namespace nor to declare the element.
Can someone suggest how to do it efficiently/easily, preferably with
libxml2?
Thanks.