Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
swiftMtMx
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
isc-v3.1-tmp
swiftMtMx
Commits
4345a832
Commit
4345a832
authored
Dec 19, 2023
by
gechengyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交解析ISO报文的测试代码
parent
3fd23a0f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
ParseISOTest.java
swiftCore/src/test/java/com/brilliance/ParseISOTest.java
+10
-2
No files found.
swiftCore/src/test/java/com/brilliance/ParseISOTest.java
View file @
4345a832
...
...
@@ -17,11 +17,19 @@ public class ParseISOTest {
Document
document
=
DocumentHelper
.
parseText
(
xmlStr
);
Map
<
String
,
String
>
parentElementMaps
=
XmlUtil
.
getParentElementMaps
(
document
);
System
.
out
.
println
(
"isoMaps="
+
parentElementMaps
);
String
bodyParentElementName
=
parentElementMaps
.
get
(
"
CdtTrfTxInf
"
);
String
endToEndId
=
XmlUtil
.
getXmlNodeValue
(
document
,
bodyParentElementName
+
".
CdtTrfTxInf.PmtId.
EndToEndId"
);
String
bodyParentElementName
=
parentElementMaps
.
get
(
"
EndToEndId
"
);
String
endToEndId
=
XmlUtil
.
getXmlNodeValue
(
document
,
bodyParentElementName
+
".EndToEndId"
);
System
.
out
.
println
(
"endToEndId="
+
endToEndId
);
String
ownrefParentElentName
=
parentElementMaps
.
get
(
"InstrId"
);
String
ownref
=
XmlUtil
.
getXmlNodeValue
(
document
,
ownrefParentElentName
+
".InstrId"
);
System
.
out
.
println
(
"ownref="
+
ownref
);
String
valueDateParentElementName
=
parentElementMaps
.
get
(
"IntrBkSttlmDt"
);
String
valueDate
=
XmlUtil
.
getXmlNodeValue
(
document
,
valueDateParentElementName
+
".IntrBkSttlmDt"
);
System
.
out
.
println
(
"valueDate="
+
valueDate
);
//ownref我行参考号
//othref他行参考号
//参数 xmlPath报文路径 收发报标识flg 返回Map对象
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment