public override void WriteStartProperty(string localName, string ns)
        {
            if (localName == null)
            {
                throw new ArgumentNullException("localName");
            }
            if (string.IsNullOrEmpty(localName))
            {
                throw Failure.EmptyString("localName");
            }
            if (currentParent == null)
            {
                throw PropertyTreesFailure.WouldCreateMalformedDocumentRootRequired();
            }

            this.property = new PropertyBuilder(ns, localName);
            CopyLineInfo(property.Property);
            PushParent(this.property.Property);
        }
Example #2
0
 public override PTXWriterState CreatePropertyChild(string ns, string name)
 {
     throw PropertyTreesFailure.WouldCreateMalformedDocumentRootRequired();
 }