- 论坛徽章:
- 0
|
有如下一个XML文件,我需要把每个Error标签页中的所有标签到一行中显示
A.XML:
<?xml version="1.0" encoding="UTF-8"?>
<Verify>
<Error>
<ErrorCode>A006</ErrorCode>
<SEQ>001</SEQ>
<ErrorMessage>Sum field in file header dosen't equal actual the total nuber of record..</ErrorMessage>
</Error>
<Error>
<ErrorCode>A07</ErrorCode>
<SEQ>002</SEQ>
<ErrorMessage>Sum field in file header dosen't equal actual the total nuber of record..</ErrorMessage>
</Error>
</Verify>
需要的效果
=========================
<Error> <ErrorCode>A006</ErrorCode> |<SEQ>001</SEQ>|<ErrorMessage>Sum field in file header dosen't equal actual the total nuber of record..|</Error>
<Error> <ErrorCode>A007</ErrorCode> |<SEQ>002</SEQ>|<ErrorMessage>Sum field in file header dosen't equal actual the total nuber of record..|</Error>
用SED的话应该可以,不过试了几种方法都不行,请高手指教 |
|