Hello,
I'm trying to write a xml document but I have a small problem with it.
When I take a look at the result it almost looks fine except for one small detail.
This is my result:
<?xml version="1.0" encoding="utf-8"?>
<Document xmlns:xsi=" xmlns="urn:uso:std:iso:20022:tech:xsd
ain.008.001.02">
<CstmrDrctDbtInitn xmlns="">
<GrpHdr>
<MsgId>bbbb_Z0522</MsgId>
<CreDtTm>2013-05-07T07:40:16</CreDtTm>
<NbOfTxs>1</NbOfTxs>
Why is there an xmlns next to the tag 'CstmrDrctDbtInitn'.
This is my code:
writerFirstTime.WriteStartDocument()
writerFirstTime.WriteStartElement("Document", "urn:uso:std:iso:20022:tech:xsd
ain.008.001.02")
writerFirstTime.WriteAttributeString("xmlns", "xsi", Nothing, "writerFirstTime.WriteStartElement("", "CstmrDrctDbtInitn", "")
writerFirstTime.WriteStartElement("", "GrpHdr", "")
I hope someone can tell me what I did wrong.
Thanks in advance
Elsje
I'm trying to write a xml document but I have a small problem with it.
When I take a look at the result it almost looks fine except for one small detail.
This is my result:
<?xml version="1.0" encoding="utf-8"?>
<Document xmlns:xsi=" xmlns="urn:uso:std:iso:20022:tech:xsd
<CstmrDrctDbtInitn xmlns="">
<GrpHdr>
<MsgId>bbbb_Z0522</MsgId>
<CreDtTm>2013-05-07T07:40:16</CreDtTm>
<NbOfTxs>1</NbOfTxs>
Why is there an xmlns next to the tag 'CstmrDrctDbtInitn'.
This is my code:
writerFirstTime.WriteStartDocument()
writerFirstTime.WriteStartElement("Document", "urn:uso:std:iso:20022:tech:xsd
writerFirstTime.WriteAttributeString("xmlns", "xsi", Nothing, "writerFirstTime.WriteStartElement("", "CstmrDrctDbtInitn", "")
writerFirstTime.WriteStartElement("", "GrpHdr", "")
I hope someone can tell me what I did wrong.
Thanks in advance
Elsje