modcluster/mod_cluster — pull request #80 by winfinit (2014-05-15 17:53:49+00:00)
Title: [MODCLUSTER-209] Added ability to to output text/xml for DUMP and INFO

Added ability to to output **_text/xml_** for **DUMP** and **INFO** commands in addition to previous text/plain.

default is still **_text/plain_** and browser by default is still going to output text/plain.

#### sample **INFO** output:

````bash
$ curl -X INFO http://127.0.0.1:6666 -H "Accept: text/xml" | xmllint --format -
````
````xml

mycluster
mycluster
127.0.0.1
4445
http
Off
1
10
0
60
0
0
0
0
99

mycluster
mycluster
127.0.0.1
4444
http
Off
1
10
0
60
0
0
0
0
99

ENABLED
/cluster

ENABLED
/clusterA

ENABLED
/clusterB

````
#### sample DUMP output:

````bash
$ curl -X DUMP http://127.0.0.1:6666 -H "Accept: text/xml" | xmllint --format -
````
````xml

1
JSESSIONID
jsessionid
0
1

0
1

mycluster
MyClusterB
mycluster
127.0.0.1
4445
http
0
1
10
0
60
0

mycluster
MyCluster
mycluster
127.0.0.1
4444
http
0
1
10
0
60
0

1
1

1
2

1
1
ENABLED

1
2
ENABLED

1
2
ENABLED

````

representation of output is almost a map to existing **_text/plain_**.