I would like to get port from server.xml that is tomcat server configuration file.
my server.xml is below.
How can I get port from server.xml without comment part
I just want to get only 50000 without 8080.
<Connector port="50000" maxHttpHeaderSize="8192" protocol="HTTP/1.1"
maxThreads="2000" minSpareThreads="50" maxSpareThreads="150" />
<!--
<Connector executor="tomcatThreadPool"
port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
-->