无法读取XML [英] Not able to read XML

查看:89
本文介绍了无法读取XML的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

XML采用以下提到的格式

The XML is in the below mentioned format

<subbalances>
<subbalance>
<attribute name="\"balance\"" value="\"0\"" />
<attribute name="\"description\"" value="\"Prepaid_Balance_Subaccount\"" />
<attribute name="\"expireDate\"" value="\"01.01.2037\"" />
</subbalance>
<subbalance>
<attribute name="\"balance\"" value="\"536870912\"" />
<attribute name="\"description\"" value="\"EX_Subaccount\"" />
<attribute name="\"expireDate\"" value="\"12.10.2011\"" />
</subbalance>
</subbalances>


我无法使用子节点遍历此xml,并且输出始终为".


请帮助


I am not able to traverse through through this xml using child node and output is always as "".


Kindly help

推荐答案

取出双引号.

Take out the double quotes.

<attribute name="balance" value="0" />


如果您无法编写解析代码,请阅读很多可用教程之一在参数上(例如,在以下 Google搜索结果列表 [ ^ ]. ady编写了代码,但无法正常工作,请在此处发布它以获得更好的帮助.
If you aren''t able to write the parsing code then read one of the many many many available tutorials on the argument (for instance choose one in the following Google search result list[^]. If you''ve already written the code but it doesn''t work, please post it here, to get better help.


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

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