1
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
2
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
4
using ICSharpCode.SharpDevelop.Gui;
6
using ICSharpCode.Core;
8
namespace ICSharpCode.XmlEditor
11
/// Validates the xml in the xml editor against the known schemas.
13
public class ValidateXmlCommand : AbstractMenuCommand
18
public override void Run()
20
// Find active XmlView.
21
XmlView xmlView = XmlView.ActiveXmlView;
22
if (xmlView != null) {
24
xmlView.ValidateXml();