c# - Linq to XML if/foreach with XElement -
It seems that Linux is facing trouble with XML, I have looked at the tutorial, but some Does not really tell me, selection, statement I would like to know that statement with a foreach / if if linq, if you have a tutorial please tell me my problem is that i want a certain part in my xml if i There is something in the text box.
This code does not work as clearly as you can make a statement with your XDocument. Any help / description will be great
if (txtPr3_Chain.Text! = "") {New XElement ("Property_Info", New XAttribute ("Chain", txtPr3_Chain.Text), New XElement ("City", txtPr3_City.Text), New XElement ("AdRating", AdRating3.CurrentRating.ToString ()), New XElement ("Your Writing", Your RTE 3. Current Rating. ToString ()), New XElement (" Comment ", txtPr3_Comments .ext)),}
Why not always with parts Create XDocument Include / append other parts there and then, where you can use regularly Not or if
Comments
Post a Comment