【发布时间】:2014-04-15 12:36:31
【问题描述】:
我有一个看起来像这样的 xml
<?xml version='1.0' encoding='utf-8'?><s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><content></content>
我只想单独提取内容,我期待这样的东西。
<content></content>
我知道字符串替换是一种解决方案,但它每次都会改变。
谢谢。
【问题讨论】:
标签: java xml jsp replace xml-parsing