private PushEntity ( |
||
baseUri | ||
e | Entity | |
return | void |
public static SgmlDtd Parse(Uri baseUri, string name, TextReader input, string subset, string proxy, XmlNameTable nt) { SgmlDtd dtd = new SgmlDtd(name, nt); dtd.PushEntity(baseUri, new Entity(dtd.Name, baseUri, input, proxy)); if (!string.IsNullOrEmpty(subset)) { dtd.PushEntity(baseUri, new Entity(name, subset)); } try { dtd.Parse(); } catch (Exception e) { throw new SgmlParseException(e.Message + dtd.m_current.Context()); } return dtd; }
public static SgmlDtd Parse(Uri baseUri, string name, string pubid, string url, string subset, string proxy, XmlNameTable nt) { SgmlDtd dtd = new SgmlDtd(name, nt); if (url != null && url != "") { dtd.PushEntity(baseUri, new Entity(dtd.Name, pubid, url, proxy)); } if (subset != null && subset != "") { dtd.PushEntity(baseUri, new Entity(name, subset)); } try { dtd.Parse(); } catch (Exception e) { throw new Exception(e.Message + dtd.current.Context()); } return dtd; }