예제 #1
0
 void ReadNonExistentElementName(StringHandleConstStringType elementName)
 {
     EnterJsonScope(JsonNodeType.Object);
     XmlElementNode elementNode = EnterScope();
     elementNode.LocalName.SetConstantValue(elementName);
     elementNode.Namespace.Uri.SetValue(elementNode.NameOffset, 0);
     elementNode.Prefix.SetValue(PrefixHandleType.Empty);
     elementNode.BufferOffset = BufferReader.Offset;
     elementNode.IsEmptyElement = false;
     elementNode.ExitScope = false;
     ReadAttributes();
 }
예제 #2
0
 public void SetConstantValue(StringHandleConstStringType constStringType)
 {
     type = StringHandleType.ConstString;
     key = (int)constStringType;
 }
예제 #3
0
 public void SetConstantValue(StringHandleConstStringType constStringType)
 {
     this.type = StringHandleType.ConstString;
     this.key  = (int)constStringType;
 }
예제 #4
0
        /// <summary>
        /// Read a non existent element (non existent for the moment ?)
        /// </summary>
        /// <param name="elementName"></param>
        private void ReadNonExistentElementName(StringHandleConstStringType elementName)
        {
            // Enter a scope of object
            EnterJsonScope(JsonNodeType.Object);

            // Create an element Node
            XmlElementNode xmlElementNode = this.EnterScope();
            xmlElementNode.LocalName.SetConstantValue(elementName);
            xmlElementNode.BufferOffset = this.BufferReader.Offset;
            xmlElementNode.IsEmptyElement = false;
            xmlElementNode.ExitScope = false;

            // Read attributes
            ReadAttributes();
        }