XML中有“\n”的文本,赋值给TextField类的text后,不能换行。
"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?> <configuration>\n <dbs>\n <db>\n <name>hive1</name>\n <type>hive</type>\n <driver>org.apache.hive.jdbc.HiveDriver</driver>\n <url>jdbc:hive2://172.32.148.66:10000/default</url>\n <user>hive</user>\n <password>root</password>\n <version>0.11</version>\n </db>\n <db>\n <name>oracle1462mkt</name>\n <type>oracle</type>\n <driver>oracle.jdbc.driver.OracleDriver</driver>\n <url>jdbc:oracle:thin:@172.32.147.217:1521:orcl</url>\n <user>emkt</user>\n <password>emkt1234</password>\n <version>11</version>\n </db>\n <db>\n <name>oracletest</name>\n <type>oracle</type>\n <driver>oracle.jdbc.driver.OracleDriver</driver>\n <url>jdbc:oracle:thin:@172.32.147.60:1521:bidev</url>\n <user>HADOOP</user>\n <password>HADOOP</password>\n <version>11</version>\n </db>\n <db>\n <name>oracle146200mkt</name>\n <type>oracle</type>\n <driver>oracle.jdbc.driver.OracleDriver</driver>\n <url>jdbc:oracle:thin:@192.168.146.200:1521:gudb8</url>\n <user>mkt</user>\n <password>letmein</password>\n <version>11</version>\n </db>\n </dbs>\n</configuration>\n"如何让\n成换行,格式化XML。