XmlReader AppendChild is not appending same child value

后端 未结 3 1109
慢半拍i
慢半拍i 2021-01-28 13:37
XmlElement updateRecipient = doc.CreateElement(\"UpdateRecipient\");
                XmlElement email = doc.CreateElement(\"EMAIL\");
                XmlElement listID =         


        
相关标签:
3条回答
  • 2021-01-28 14:27

    The problem is that you are reusing the "column", "name", & "value" variables. You need to create new XmlElements for the 2nd set.

    0 讨论(0)
  • 2021-01-28 14:29

    I don't know, but try doing it in the opposite order. That's what I've always done. Don't append updateRecipient to the root, until you're through with it.

    0 讨论(0)
  • 2021-01-28 14:42

    Thought you could reuse an existing element over again but you can't..

    0 讨论(0)
提交回复
热议问题