xpath谁能帮助我 [英] xpath can any one help me urjent

查看:102
本文介绍了xpath谁能帮助我的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有
Scheema1的Message1(重复记录)
Scheema2的HeaderMessage
scheema3的详细消息

我收到的消息是Message1
1)接收完message1之后,我将详细记录xpath传递给一些变量Details Counting
2)正在构建Headermessage.
headermessge = xpath(message1,"Xpath")
3)然后,我在内部构造了详细消息时采用了环形形状.
detailmessge = xpath(message1,"Xpath")
并增加循环
现在我想读取十进制类型的特定字段"X"的值
如果为null或",则必须将其默认值设置为0.

有人可以帮我吗?

问候

Raj

I have
Message1 of Scheema1(repeating records)
HeaderMessage of Scheema2
detailmessage of scheema3

My incoming message is Message1
1)After receving the mesage1 i asssaigned detail record xpath to some variable Details Counting
2) im constructing Headermessage.
headermessge=xpath(message1,"Xpath")
3)then i tookloop shape inside that im constructing detailmessage.
detailmessge=xpath(message1,"Xpath")
and incrementing the loop
Now i want to read the value of a particular field ''X''which is of decimal type
if it is null or "" i have to default its value to 0.

Can any one help me?

Regards

Raj

推荐答案

给定特定字段的Xpath,可以将消息中的任何值分配给变量.在此处 [
You can assign any value from your message to a variable, given you have the Xpath for that specific field. Check here[^] for more details on how to do it.


这篇关于xpath谁能帮助我的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆