c# - Adding a node in the beginning of XML parent node -


i wanted add xmlnode in parent @ top/beginning. there variant of xmlnode.appendchild() can use?

as far understand question looking xmlnode.prependchild() method.
example:

xmldocument doc = new xmldocument(); xmlnode root = doc.documentelement;  //create new node. xmlelement node = doc.createelement("price");  //add node document. root.prependchild(node); 

msdn documentation


Comments

Popular posts from this blog

android - Why am I getting the message 'Youractivity.java is not an activity subclass or alias' -

python - How do I create a list index that loops through integers in another list -

c# - “System.Security.Cryptography.CryptographicException: Keyset does not exist” when reading private key from remote machine -