/// <summary> /// Determines if the given script is valid. /// </summary> /// <param name="p_scpScript">The script to validate.</param> /// <returns><c>true</c> if the given script is valid; /// <c>false</c> otherwise.</returns> public bool ValidateScript(IScript p_scpScript) { IUnparser upsUnparser = GetUnparser((XmlScript)p_scpScript); XElement xelScript = upsUnparser.Unparse(); return(IsXmlScriptValid(xelScript)); }
/// <summary> /// Determines if the given script is valid. /// </summary> /// <param name="p_scpScript">The script to validate.</param> /// <returns><c>true</c> if the given script is valid; /// <c>false</c> otherwise.</returns> public bool ValidateScript(IScript script) { IUnparser Unparser = GetUnparser((XmlScript)script); XElement XelScript = Unparser.Unparse(); return(IsXmlScriptValid(XelScript)); }
/// <summary> /// Saves the given script into a text representation. /// </summary> /// <param name="p_scpScript">The <see cref="IScript"/> to save.</param> /// <returns>The text represnetation of the given <see cref="IScript"/>.</returns> public string SaveScript(IScript p_scpScript) { IUnparser upsUnparser = GetUnparser((XmlScript)p_scpScript); XElement xelScript = upsUnparser.Unparse(); return(xelScript.ToString()); }
/// <summary> /// Saves the given script into a text representation. /// </summary> /// <param name="p_scpScript">The <see cref="IScript"/> to save.</param> /// <returns>The text represnetation of the given <see cref="IScript"/>.</returns> public string SaveScript(IScript script) { IUnparser Unparser = GetUnparser((XmlScript)script); XElement XelScript = Unparser.Unparse(); return(XelScript.ToString()); }