This may seem like a really basic question, but how do I remove a node from an XML document? I know the name and position of the node (its at the top of the document and is a single node meaning it doesn't have a cloding tag).
I tried a few things, but I was only guessing about which methods/properties to use. Can anyone tell me how to do this the right way?
Here is the XML:... and I need to remove this line "<?xml version="1.0" encoding="UTF-16"?>"Code:<?xml version="1.0" encoding="UTF-16"?> <PropertyBag> <frmMain> <FormMain.WindowState>0</FormMain.WindowState> <FormMain.Top>2610</FormMain.Top> <FormMain.Left>2985</FormMain.Left> <FormMain.Height>6300</FormMain.Height> <FormMain.Width>9390</FormMain.Width> <Toolbars.Menus>True</Toolbars.Menus> </frmMain> </PropertyBag>
Any help would be appriciated.![]()




Reply With Quote