I really nead to ask you this one, many of you might think it's a simple problem but please help I worked for hours on this one and I am not a step closer to the solution. I really need this one for collage.
I have to create an xml document and this one is working fine.
Now I need to define namespaces or at least I think that is what they are.
I need to insert this into my document
<language>
<language id="1" tag="english"/>
<language id="2" tag="english"/>
</language>
And use it like this:
<item id="1">
<item>
<item language="1">Periods</item>
</item>
<item/>
My code:
XmlElement element = xmldoc.CreateElement("", "item", "1");
The problem is that insted of language I get xmlns, where can I define
the namespace and how do I create <language id="1" tag="english"/> ?
my problem is that i don't know how to define <language id="1" tag="english"/>
and i don't know how can i use it like this <item language="1">Periods</item>