protected override void PerformAction(XEditNet.Dtd.XmlName name) { if (editor.Document == null) { XmlDocument doc = new XmlDocument(); editor.Attach(doc, true); } else { editor.CreateUndoPoint(); } XmlElement elem = XmlUtil.CreateElement(name, editor.Document); editor.Insert(elem); }
public Dtd.Attribute GetAttribute(XmlName name) { return((Dtd.Attribute)attributes[name]); }
/** * Construct a new ElementType from an XMLName. * * @param name XMLName of the element type. */ public ElementType(XmlName name) { this.Name = name; }
public bool HasChildElement(XmlName name) { return(children.ContainsKey(name)); }
/** * Construct a new ElementType from its namespace URI, local name, and prefix. * * @param uri Namespace URI of the element type. May be null. * @param localName Local name of the element type. * @param prefix Namespace prefix of the element type. May be null. */ public ElementType(string uri, string localName, string prefix) { this.Name = new XmlName(prefix, localName, uri); }