public void CanOverrideIdAttributeNameConvention() { const string xml = "<a><b><c/></b><b NAME='t2'>text2</b><b>text3</b></a>"; var conventions = new XizzleConventions {IdAttributeName = () => "NAME"}; using (var context = XElementContext.Parse(xml, conventions)) { context.Select("#t2").Single() .Value .ShouldEqual("text2"); } }
public void SaveDefaultConventions() { _originalConventions = XElementContext.DefaultConventions; }