how i opening xml information buttress controlling linq xml?
i have xml buttress table:
<keywords>
<keyword name="first name" value="|firstname|" display="jack" />
<keyword name="last name" value="|lastname|" display="jones" />
<keyword name="city" value="|city|" display="anytown" />
<keyword name="state" value="|state|" display="md" />
</keywords>
i'm removing record out list controlling linq sql around this:
generatedarticle ga = db.generatedarticles.single(p => p.generatedarticleid == generatedarticleid);
that works, i generatedarticle vigilant only fine.
i'd transport by information articlekeywords field, xml. i started doing this:
var keywords = k ga.articlekeywords.elements("keywords")
name k;
foreach (var keyword keywords)
{
//what goes here?
}
i'm 100% certain i'm removing information correctly. i need assistance repremand syntax value arrangement out xml field.
Comments
Post a Comment