Click here to Skip to main content
14,426,209 members
   

XML / XSL

 
QuestionHelp to make condition in xsd file Pin
MrKBA30-Mar-11 23:41
MemberMrKBA30-Mar-11 23:41 
AnswerRe: Help to make condition in xsd file Pin
RugbyLeague19-Apr-11 3:26
MemberRugbyLeague19-Apr-11 3:26 
Questionattribute restriction [modified] [Solved] Pin
V.24-Mar-11 23:40
professionalV.24-Mar-11 23:40 
QuestionVisual Studio's XSD vs Liquid Technologies Code Generator Pin
Ger Hayden16-Mar-11 5:40
MemberGer Hayden16-Mar-11 5:40 
Questionusing search web service Pin
ekaup12-Mar-11 0:36
Memberekaup12-Mar-11 0:36 
AnswerRe: using search web service Pin
jschell13-Mar-11 11:16
Memberjschell13-Mar-11 11:16 
GeneralRe: using search web service Pin
ekaup13-Mar-11 13:22
Memberekaup13-Mar-11 13:22 
QuestionHow limitate the attribute of the root to it? Pin
Pierre besquent24-Feb-11 23:06
MemberPierre besquent24-Feb-11 23:06 
Hi,
I have this code to generate xml file;
XmlTextWriter				myXmlTextWriter = new XmlTextWriter ("D:/New Folder/MyXmlff.xml",System.Text.Encoding.UTF8);
		      myXmlTextWriter.Formatting = Formatting.Indented;
			  myXmlTextWriter.WriteStartDocument(false);
			  myXmlTextWriter.WriteStartElement("root");
			  myXmlTextWriter.WriteAttributeString("xmlns","urn:iso:std:iso:20022:tech:xsd:pain.001.001.02"); 
			  myXmlTextWriter.WriteStartElement("pain.001.001.02");
                          myXmlTextWriter.WriteComment("Section A : Group Header");
		          myXmlTextWriter.WriteStartElement("GrpHdr");
		          myXmlTextWriter.WriteStartElement("MsgId");
myXmlTextWriter.Flush();
            myXmlTextWriter.WriteEndElement();
            myXmlTextWriter.WriteEndElement();
			myXmlTextWriter.Close();

the problem is the attribute of the root appears always in other tags like this:

<root xmlns="urn:iso:std:iso:20022:tech:xsd:pain.001.001.02">
<pain.001.001.02>
<salarié xmlns="A01">

<grphdr>
<msgid>
<credttm xmlns="25/02/2011 04:50:31">
<btchbookg xmlns="True">
<nboftxs xmlns="1">
<ctrlsum xmlns="100">
<grpg>
<initgpty>
</Salarié>
</pain.001.001.02>
</root>
but i want that xmlns appears ONLY as an attribute of the root like this:

<document xmlns="urn:iso:std:iso:20022:tech:xsd:pain.001.001.02">

<pain.001.001.02>

<grphdr>

<msgid>FVIR/101230/1

<credttm>2010-12-30T17:02:21

thank u for u help
hugs
<btchbookg>false
AnswerRe: How limitate the attribute of the root to it? Pin
dasblinkenlight9-Mar-11 3:20
Memberdasblinkenlight9-Mar-11 3:20 
QuestionIs Serialization worth it? Pin
Ger Hayden22-Feb-11 0:47
MemberGer Hayden22-Feb-11 0:47 
Questiongenerate xml based on schema. Pin
Ramkumar_S16-Feb-11 16:33
MemberRamkumar_S16-Feb-11 16:33 
AnswerRe: generate xml based on schema. Pin
Ger Hayden22-Feb-11 1:04
MemberGer Hayden22-Feb-11 1:04 
QuestionCustomizing RSS Feed - XSL to display rss your way. Pin
Sparx200914-Feb-11 3:36
MemberSparx200914-Feb-11 3:36 
AnswerRe: Customizing RSS Feed - XSL to display rss your way. Pin
Ravi Sant16-Feb-11 5:09
MemberRavi Sant16-Feb-11 5:09 
QuestionConverting some RTF text to WordML Pin
Ravi Sant8-Feb-11 20:55
MemberRavi Sant8-Feb-11 20:55 
QuestionHelp editing Xml file in C# Pin
jadughar3-Feb-11 22:32
Memberjadughar3-Feb-11 22:32 
AnswerRe: Help editing Xml file in C# Pin
Xmen Real 3-Feb-11 23:03
professional Xmen Real 3-Feb-11 23:03 
GeneralRe: Help editing Xml file in C# Pin
jadughar3-Feb-11 23:38
Memberjadughar3-Feb-11 23:38 
GeneralRe: Help editing Xml file in C# Pin
Xmen Real 3-Feb-11 23:41
professional Xmen Real 3-Feb-11 23:41 
GeneralRe: Help editing Xml file in C# Pin
jadughar3-Feb-11 23:57
Memberjadughar3-Feb-11 23:57 
QuestionBehavior of '+' operator for String in XSL Pin
itsaswath29-Jan-11 7:48
Memberitsaswath29-Jan-11 7:48 
QuestionSilverlight XSD and datatable Pin
Mycroft Holmes17-Jan-11 22:46
MemberMycroft Holmes17-Jan-11 22:46 
GeneralXSL Drop Down Pin
manowj24-Dec-10 22:46
Membermanowj24-Dec-10 22:46 
QuestionHow to deserialize this one Pin
igalep13219-Dec-10 20:12
Memberigalep13219-Dec-10 20:12 
QuestionSaving a word document(2000 to 2010) to xml Pin
Haim Nachum10-Dec-10 7:13
MemberHaim Nachum10-Dec-10 7:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.