Monday, April 28, 2014

how parse xelemnts that have the same name but hasn'l attributes?

i think you have typos, please try this code instead:



esTranslation = from es in element.Descendants("gloss") where (x => !string.IsNullOrEmpty(es.Attribute("xml_Lang").Value == "spa" )) select es.Value



hope this helps!


No comments:

Post a Comment