当前位置:网站首页>XML & XPath parsing
XML & XPath parsing
2022-06-10 18:11:00 【ˡ A cup of American style】
1.XML effect
1.1 To configure
*.xml and *.properties、*.ini、*.yaml
1.2 Data interaction ( Get third-party data )
XML:webservices(axis2) -> xml -> Where the mobile phone belongs 、 The weather
JSON ajax No refresh
2.Java in 3 Configuration position and reading mode
2.1 How to use Properties Read configuration file
1)*.properties Files store data as key value pairs ;
2) Use Properties Class to read the configuration file ;

2.2 Configuration location
1) Stored in the root directory ,/ Representative acquisition src The absolute path to the root
2) Stored in the same kind of bag , No addition / Represents the relative path under the package with the same name ;
3) Stored in WEB-INF Under the table of contents


3.dom4j+xpath analysis xml file
1)xpath Similar to select sentence ;
2)Document With nodes (Node) form : Element nodes 、 attribute 、 Text etc. ;
3)selectNodes() Get all child nodes under the node ;
4)selectSingleNodes() Get single node information ;


5) xpath grammar :/( Positioning path )、@( get attribute )

边栏推荐
猜你喜欢

AOE网关键路径

Why 0.1+0.2=0.3000000000000004

(CVPR 2020) RandLA-Net: Efficient Semantic Segmentation of Large-Scale Point Clouds

Leetcode 875. 爱吃香蕉的珂珂

PCA principal component analysis tutorial (origin analysis & drawing, without R language)

JS blur shadow follow animation JS special effect plug-in

IP总结(TCP/IP卷1和卷2)

传统企业在进行信息化升级的过程中,如何做好信息化顶层设计
![[FAQ] summary of common problems and solutions during the use of rest API interface of sports health service](/img/93/d999239b28afb2d9a61e9aad27d2cd.png)
[FAQ] summary of common problems and solutions during the use of rest API interface of sports health service

Cdga| six key points of data governance for industrial enterprises
随机推荐
IP总结(TCP/IP卷1和卷2)
正斜杠“/”、反斜杠“\、”转义字符“\”、文件路径分割符傻傻记不清楚
Abbexa丙烯酰胺-PEG-NHS说明书
JS blur shadow follow animation JS special effect plug-in
使用Canvas实现的噪音线条h5js特效
信息学奥赛一本通 1280:【例9.24】滑雪 | OpenJudge NOI 2.6 90:滑雪 | 洛谷 P1434 [SHOI2002] 滑雪
LeetCode 255. 验证前序遍历序列二叉搜索树*
Leetcode 321. Nombre maximum de raccords
项目中常用的19条MySQL优化
软考不通过能不能补考?解答来了
pands pd. Detailed parsing of dataframe() function
苹果放大招!这件事干的太漂亮了……
高数_第6章无穷级数__正项级数的性质
LeetCode 255. Verifying preorder traversal sequence binary search tree*
JS special effect of canvas divergent particle H5 animation
Some views on the current CIM (bim+gis) industry
mmdetection之dataloader构建
苹果期待的「无密码时代」,真能实现吗?
国货彩妆,败走618
Leetcode 875. Coco, who likes bananas

