/// <summary> /// Adds a rule to the catalog directing the given public identifier to /// the indicated URI. /// </summary> /// <param name="publicId">The public identifier to be mapped.</param> /// <param name="uri">The corresponding URI.</param> /// <param name="xmlbase">Optional <b>xml:base</b> value.</param> /// <returns>The constructed <see cref="PublicEntry"/> instance.</returns> public PublicEntry AddPublic(String publicId, String uri, String xmlbase) { PublicEntry result = new PublicEntry (this, publicId, uri, xmlbase); rules.Add (result); return (result); }