Standalone attribute found in sharpdevelop, which is explained on msdn
Obtains or sets the value of an independent attribute.
If all object declarations required by the XML document are included in the document, the valid value is yes, or if the external document type definition (DTD) is required, no.
If the XML declaration does not contain an independent attribute, the property will return string. Empty.
The following example creates an xmldeclaration node and adds it to the XML document.
Using system;
Using system. IO;
Using system. xml;
Public class sample
...{
Public static void main ()
...{
// Create and load the XML document.
Xmldocument Doc = new xmldocument ();
String xmlstring = "<book> <title> Oberon's legacy </title> </book> ";
Doc. Load (New stringreader (xmlstring ));
// Create an XML declaration.
Xmldeclaration xmldecl;
Xmldecl = Doc. createxmldeclaration ("1.0", null, null );
Xmldecl. Encoding = "UTF-8 ";
Xmldecl. standalone = "yes ";
// Add the new node to the document.
Xmlelement root = Doc. documentelement;
Doc. insertbefore (xmldecl, root );
// Display the modified XML document
Console. writeline (Doc. outerxml );
System. Console. Read ();
}
}