C
Curious
Hi,
I am using the following code, and the xml being generated is shown
below:
XmlNode root = document.DocumentElement;
XmlElement element = document.CreateElement("rdf", "Stadium",
RDF_PATH);
element.SetAttribute("about", null, STADIUM_PATH+"/"+stadium.Name);
root.AppendChild(element);
<rdf:Stadium about="http://www.test.fake/stadium/test" />
Now, what I require is to generate the following xml:
<rdf:Stadium rdf:about="http://www.test.fake/stadium/test" />
How can this be done.
Can someone help me out.
Thanks in Advance
I am using the following code, and the xml being generated is shown
below:
XmlNode root = document.DocumentElement;
XmlElement element = document.CreateElement("rdf", "Stadium",
RDF_PATH);
element.SetAttribute("about", null, STADIUM_PATH+"/"+stadium.Name);
root.AppendChild(element);
<rdf:Stadium about="http://www.test.fake/stadium/test" />
Now, what I require is to generate the following xml:
<rdf:Stadium rdf:about="http://www.test.fake/stadium/test" />
How can this be done.
Can someone help me out.
Thanks in Advance