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(); }
public void SetConstantValue(StringHandleConstStringType constStringType) { type = StringHandleType.ConstString; key = (int)constStringType; }
public void SetConstantValue(StringHandleConstStringType constStringType) { this.type = StringHandleType.ConstString; this.key = (int)constStringType; }
/// <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(); }