Hello,

Je cherche une solution qui me permettrait de remplacé l'ordre des mots qui constitue un String.

J'ai le String suivant :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
 
<xsp:page xmlns:bean="http://www.odcgroup.com/uif/bean/0.1" xmlns:jpath="http://apache.org/xsp/jpath/1.0" xmlns:scope="http://www.odcgroup.com/uif/scope/0.1" xmlns:udp="http://www.odcgroup.com/uif/udp/0.1" xmlns:xgui="http://www.odcgroup.com/uif/xgui/0.1" xmlns:xi="http://www.w3.org/2003/XInclude" xmlns:xsp="http://apache.org/xsp" language="java">
que j aimerais remplacé par

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
 
	xmlns:xgui="http://www.odcgroup.com/uif/xgui/0.1" 	
	xmlns:bean="http://www.odcgroup.com/uif/bean/0.1"		
	xmlns:i18n="http://apache.org/cocoon/i18n/2.1"
	xmlns:udp="http://www.odcgroup.com/uif/udp/0.1" 	
	xmlns:scope="http://www.odcgroup.com/uif/scope/0.1"  	
	xmlns:jpath="http://apache.org/xsp/jpath/1.0" 			    
  xmlns:xi="http://www.w3.org/2003/XInclude" 	
  xmlns:xsp="http://apache.org/xsp" language="java">
quelqu un aurait une idée d une solution élégante, en fait le nombre de namespaces est variable si qui importe c est que le namespace scope soit placé avant le namespace jpath

d avance merci