使用linq搜索xml [英] search xml using linq

查看:97
本文介绍了使用linq搜索xml的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


<?



 



xml
version = ' 1.0 '
编码 = ' utf-8 '
?>


<



 




全部 >


<



 




客户 >


 



<



 




客户 >


<



 




名称 >
布里斯班
< / 名称 >


<



 




年龄 >
18
< / 年龄 >


<



 




id >
1234
< / id >


<



 




类型 >
所有者
< / 类型 >


< /



 




客户 >


 



<



 




详细信息 >


<



 




地址 >
123,brisbane
< / 地址 >


<



 




位置 >
Indonacia
< / 位置 >


< /



 




详细信息 >


<



 




联系 >


<



 




手机 >
123456789
< / 手机 >


<



 




传真 >
12548976
< / 传真 >


< /



 




联系 >


 



< /



 




客户 >


<



 




客户 >


<



 




客户 >


<



 




名称 >
manila
< / 名称 >


<



 




年龄 >
16
< / 年龄 >


<



 




id >
1200
< / id >


<



 




类型 >
卖家
< / 类型 >


< /



 




客户 >


 



<



 




详细信息 >


<



 




地址 >
富裕街道
< / 地址 >


<



 




位置 >
Fabia
< / 位置 >


< /



 




详细信息 >


<



 




联系 >


<



 




手机 >
987456321
< / 手机 >


<



 




传真 >
23654897
< / 传真 >


< /



 




联系 >


 



< /



 




< span style =" font-size:x-small; color:#800000;"%3



loving dotnet

解决方案

你能否重新格式化帖子?看来只有你帖子的一部分显示。


谢谢


<?

 

xml version='1.0' encoding='utf-8' ?>

<

 

All>

<

 

Customers>

 

<

 

Customer>

<

 

Name> Brisbane </Name>

<

 

age> 18 </age>

<

 

id> 1234 </id>

<

 

type> owner </type>

</

 

Customer>

 

<

 

details>

<

 

address> 123,brisbane </address>

<

 

location> Indonacia </location>

</

 

details>

<

 

contact>

<

 

phone> 123456789 </phone>

<

 

fax> 12548976 </fax>

</

 

contact>

 

</

 

Customers>

<

 

Customers>

<

 

Customer>

<

 

Name> manila</Name>

<

 

age> 16 </age>

<

 

id> 1200 </id>

<

 

type> seller</type>

</

 

Customer>

 

<

 

details>

<

 

address> rich street </address>

<

 

location> Fabia </location>

</

 

details>

<

 

contact>

<

 

phone> 987456321</phone>

<

 

fax> 23654897 </fax>

</

 

contact>

 

</

 

<span style="font-size: x-small; color: #800000;"%3


loving dotnet

解决方案

Could you please re-format the post? It seems only a part of your post is shown.

Thanks


这篇关于使用linq搜索xml的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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