Exemple #1
0
 public static void Save( TypeBase doc, string filename, string encoding, bool bBigEndian, bool bBOM )
 {
     XmlTextWriter writer = new XmlTextWriter( filename, GetEncodingObject(encoding, bBigEndian, bBOM) );
     writer.Formatting = Formatting.Indented;
     XmlDocument dDoc = (XmlDocument) doc.Node;
     dDoc.Save(writer);
     writer.Close();
 }
		static public void SetSchemaLocation(TypeBase node, string schLoc)
		{
			XmlElement root = null;
			// if this is a doc, set it on the DocumentElement
			if (node.Node is XmlDocument)
			{
				XmlDocument doc = (XmlDocument) node.Node;
				root = doc.DocumentElement;
			}
			else
			{
				root = (XmlElement) node.Node;
			}
			
			// 
		}
        static public void Save( TypeBase doc, string filename, string encoding )
		{
			Save( doc, filename, encoding, System.String.Compare(encoding, "UTF-16BE", true) == 0, System.String.Compare(encoding, "UTF-16", true) == 0 );
		}
 static public void Save(TypeBase doc, string filename)
 {
     Save(doc, filename, "UTF-8", false, false);
 }