需要你的帮助。我过去经常在MQ中处理失败的XML。有时由于某些问题,大量用于移动到错误队列的消息。在这里,我需要在解决问题后重新处理消息。在错误队列中会有数据,但是会有错误标签。错误队列中的消息不是正确的xml。例如,下面给出了一个消息:
<?xml version="1.0" encoding="UTF-8"?>
<Student>
+++++++++++++++++++++some content++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++some content++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++some content++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++some content++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++some content++++++++++++++++++++++++++++++++++++++++++
</Student>
错误队列消息将具有上面的消息加上下面的错误详细信息。
<ErrorMessage>
++++++++++++++++++++++reason for failure will be updated below these tag with will
many lines
</ErrorMessage>
我可以将整个消息以错误队列的形式下载到下一格式。我希望删除<ErrorMessage>
和</ErrorMessage>
标记之间的数据。这事需要帮助。在textpad或notepad++的帮助下做这件事很容易吗?
我对notepad++中的正则表达式没有太多的想法。请帮我一下
发布于 2014-08-19 04:25:56
在Notepad++中,可以替换为空字符串。
<ErrorMessage>.*</ErrorMessage>
发布于 2014-08-20 16:25:13
我的理解是
<ErrorMessage>
++++++++++++++++++++++reason for failure will be updated below these tag with will
many lines
</ErrorMessage>
至
<ErrorMessage>
</ErrorMessage>
解决方案:
1)命中Ctrl+H
2)在<ErrorMessage>(.\*?)</ErrorMessage>
中查找输入框,提供
3)在中用输入框替换,提供
4)不要忘记检查“。
5)点击替换/替换所有
注意:--我在Notepad++中测试过这个(6.6.3)
https://stackoverflow.com/questions/25346415
复制相似问题