vb.net - Unable to retrieve data from XML using linq to xml with multiple namespaces -


i unable retrieve data xml looks might missing

the data need retrieve looks this:

 <rs:data>     <z:row billno='b0033582' billdtm='2012-05-21t22:57:02' tab_room='        ' waiter='sup   ' pax='1' discount='.00000000'     billdisamt='.00000000'   /> 

i unable retrive data because of <z:row vs <row

namespace details

<xml xmlns:s='uuid:bdc6e3f0-6da3-11d1-a2a3-00aa00c14882'     xmlns:dt='uuid:c2f41010-65b3-11d1-a29f-00aa00c14882'     xmlns:rs='urn:schemas-microsoft-com:rowset'     xmlns:z='#rowsetschema'> 

if change row can retrieve data, possible retrieve row information when row starts <z:row z: guess namespace reference given here xmlns:z='#rowsetschema' .

please me way data out

the answer quite simple,

just make these small changes, add these @ top

imports <xmlns:rs='urn:schemas-microsoft-com:rowset'> imports <xmlns:z='#rowsetschema'> 

this should contain namespace information available in first few rows of xml file

and element referred namespace add z: referred <z:row>

i not find solution in spite of searching over, others find useful.


Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c# - Copy ObservableCollection to another ObservableCollection -

All overlapping substrings matching a java regex -