Henrik Visby

Henrik Visby

  • NA
  • 4
  • 2.6k

C# XML Namespace

Feb 7 2014 6:20 AM
Hello C# Corner,

I am new to the c# language and I am playing around with XML and I hope you will be able to help me out. http://i.imgur.com/pqLUWXj.png is the part of the code I am struggling with, this is the output http://i.imgur.com/9byrCLI.png how can I stop xmlns from showing up on all of the lines except the first line as shown below.
<Suppliers xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

So basicly I dont want the xmnls= part in any other sentence other than the sentence above.

Best regards Henrik.

Answers (2)