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' -

java - Log4j2 configuration not found when running standalone application builded by shade plugin -

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