Beispiel #1
0
 public AttributeNode(SourceContextReference sourceContextReference, int ordering, XmlnsPrefixAndName name, string value, bool escapeWhitespace)
     : base(sourceContextReference, ordering)
 {
     this.name             = name;
     this.value            = value;
     this.escapeWhitespace = escapeWhitespace;
 }
Beispiel #2
0
 public AttributeNode GetXmlSpaceAttribute()
 {
     for (int index = 0; index < this.attributes.Count; ++index)
     {
         AttributeNode attributeNode = this.attributes[index] as AttributeNode;
         if (attributeNode != null)
         {
             XmlnsPrefixAndName name = attributeNode.Name;
             if (object.Equals((object)name.Prefix, (object)ElementNode.XmlSpaceName.Prefix) && name.TypeQualifiedName == ElementNode.XmlSpaceName.TypeQualifiedName)
             {
                 return(attributeNode);
             }
         }
     }
     return((AttributeNode)null);
 }
Beispiel #3
0
 public AttributeNode(SourceContextReference sourceContextReference, int ordering, XmlnsPrefixAndName name, string value)
     : this(sourceContextReference, ordering, name, value, true)
 {
 }
Beispiel #4
0
 public AttributeNode(XmlnsPrefixAndName name, string value)
     : this((SourceContextReference)null, int.MaxValue, name, value)
 {
 }