我正在使用彈簧集成功能從傳出通道中獲取消息。每條消息的格式如下:如何在春季解析XML消息負載?
<message>
<properties>
<property>
<key>a</key>
<value>b</value>
</property>
<property>
<key>c</key>
<value>d</value>
</property>
</properties>
</message>
對於每個消息,我想爲鍵a解析值b並寫入磁盤。我如何在春季整合中做到這一點?
【JAVA?:如何讀寫XML文件]的可能的複製(HTTP:// stackoverflow.com/questions/7373567/java-how-to-read-and-write-xml-files) – sidgate
謝謝,我將如何做到這一點在春季整合? – user1040535
這個怎麼樣? http://stackoverflow.com/questions/25556624/xml-deserialization-to-pojo-using-jackson-xmlmapper – Tin