About Namespace: Is it possible to define a Global Namespace to Xml file?

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Hi, there!
I created a default namespace (using VB code):
<pre class="prettyprint lang-vb Imports <xmlns="myNamespace [/code]
The "problem" with is this approach is that every time that I insert an element in Xml file, the code add the namespace
"myNamespace" as attribute of the inserted element.
Im using Linq do add elements to Xml file. I want that Xml file has global namespace and avoid to create a namespace for every element that I insert in Xml file.

Is it possible and how?
Best regards,
<
Ciro
<br/>

View the full article
 
Back
Top