Create XML document with namespaces in C#

BrainiInone

New Member
I'm trying to generate an XML document like the one below. I tried several solution but when I add the namespace, I have the namespace almost everywherelike \[code\]<FieldB xlmns="">BBBBB</FieldB>\[/code\]Do you have an idea how to get this ? \[code\]<?xml version="1.0" encoding="UTF-8" standalone="true"?><value attributeA="A" attributeB="B" xmlns:XXX="http://MyURLA" xmlns="http://MyURLB"> <FieldA>AAAAA</FieldA> <FieldB>BBBBB</FieldB> <FieldB>BBBBB</FieldB> <status attributeC="C"> <FieldC>ValueFieldC</FieldC> </status> <LastUpdate date="2011-02-11T10:00:56.350" login="testing"/> <XXX:Infos> <XXX:Info> <XXX:InfoA>false</XXX:InfoA> <XXX:InfoB>false</XXX:InfoB> </XXX:Info> </XXX:Infos></value>\[/code\]
 
Back
Top