Click here to Skip to main content
15,441,629 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
<bill>
  <condition stid="-1" compeid="-1" hometeamid="-1" teamexclusion="-1" language="-1" region="-1" title="-1" pattern="konami" />
  <condition pattern="konami" />
</bill>


What I have tried:

PLEASE PROVIDE A SOLUTION FOR THIS
THANKS
Posted
Updated 25-Apr-21 6:27am

1 solution

You can use Xelement, see example here: Deep C# - XML in C#[^]

You can save an Xelement like this:
XElement root = new XElement("Root",  
    new XElement("Child", "child content")  
);  
root.Save("Root.xml");  

Note that things like stid="-1" are called "attributes", see the example on how to create attributes for an Xelement.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900