0

I add an Xelement to a parent Xelement:

rootElement.Add(schemaRootTag);  

The new XML element has an empty xmlns attribute like: xmlns="".

Any ideas?

user3165438
  • 2,631
  • 7
  • 34
  • 54

1 Answers1

0

This has been asked here before. It's all to do with how you create the XElement: https://stackoverflow.com/a/12039383/616304

Community
  • 1
  • 1
Stephen Wilson
  • 1,484
  • 1
  • 15
  • 30