/// <include file='doc\XmlDocumentType.uex' path='docs/doc[@for="XmlDocumentType.XmlDocumentType"]/*' /> /// <internalonly/> /// <devdoc> /// </devdoc> protected internal XmlDocumentType( string name, string publicId, string systemId, string internalSubset, XmlDocument doc ) : base( doc ) { this.name = name; this.publicId = publicId; this.systemId = systemId; this.namespaces = true; this.internalSubset = internalSubset; Debug.Assert( doc != null ); if ( !doc.IsLoading ) { doc.IsLoading = true; XmlLoader loader = new XmlLoader(); loader.ParseDocumentType( this ); //will edit notation nodes, etc. doc.IsLoading = false; } }
protected internal XmlDocumentType(string name, string publicId, string systemId, string internalSubset, XmlDocument doc) : base(doc) { _name = name; _publicId = publicId; _systemId = systemId; _internalSubset = internalSubset; Debug.Assert(doc != null); if (!doc.IsLoading) { doc.IsLoading = true; XmlLoader loader = new XmlLoader(); doc.IsLoading = false; } }
public ItemSearchResponse SearchByQuery(string query) { var requestString = RequestFactory.CreateRequestUrl(new DataTypes.RequestParameters(DataTypes.ApiOperation.ItemSearch) { Keywords = query, SearchIndex = "All" }); var requestUrl = this.Helper.Sign(requestString); var xmlLoader = new XmlLoader(); var itemSearchResponse = xmlLoader.GetXml<ItemSearchResponse>(requestUrl); return itemSearchResponse; }
public ItemLookupResponse ItemLookup(string itemId) { var requestString = RequestFactory.CreateRequestUrl(new DataTypes.RequestParameters(DataTypes.ApiOperation.ItemLookup) { ItemId = itemId, ResponseGroup = ResponseGroup.Large }); var requestUrl = this.Helper.Sign(requestString); var xmlLoader = new XmlLoader(); var itemLookupResponse = xmlLoader.GetXml<ItemLookupResponse>(requestUrl); return itemLookupResponse; }
protected override void PerformLoad(IDesignerSerializationManager serializationManager) { XmlLoader loader = new XmlLoader(); loader.ObjectCreator = this; loader.CreateObjectFromXmlDefinition(this.generator.ViewContent.DesignerCodeFileContent); }
// Loads the XML document from the specified XmlReader. public virtual void Load(XmlReader reader) { try { IsLoading = true; _actualLoadingStatus = true; RemoveAll(); fEntRefNodesPresent = false; fCDataNodesPresent = false; XmlLoader loader = new XmlLoader(); loader.Load(this, reader, _preserveWhitespace); } finally { IsLoading = false; _actualLoadingStatus = false; } }
// Creates an XmlNode object based on the information in the XmlReader. // The reader must be positioned on a node or attribute. public virtual XmlNode ReadNode(XmlReader reader) { XmlNode node = null; try { IsLoading = true; XmlLoader loader = new XmlLoader(); node = loader.ReadCurrentNode(this, reader); } finally { IsLoading = false; } return node; }
// Loads the XML document from the specified XmlReader. public virtual void Load( XmlReader reader ) { try { IsLoading = true; actualLoadingStatus = true; RemoveAll(); fEntRefNodesPresent = false; fCDataNodesPresent = false; reportValidity = true; XmlLoader loader = new XmlLoader(); loader.Load( this, reader, preserveWhitespace ); } finally { IsLoading = false; actualLoadingStatus = false; // Ensure the bit is still on after loading a dtd reportValidity = true; } }
internal override void SetParent(XmlNode node) { base.SetParent(node); if (LastNode == null && node != null && node != OwnerDocument) { //first time insert the entity reference into the tree, we should expand its children now XmlLoader loader = new XmlLoader(); loader.ExpandEntityReference(this); } }
/// <include file='doc\XmlDocument.uex' path='docs/doc[@for="XmlDocument.XmlDocument2"]/*' /> protected internal XmlDocument( XmlImplementation imp ): base() { this.implementation = imp; idTable = new XmlIdentityTable( this ); // force the following string instances to be default in the nametable XmlNameTable nt = this.NameTable; nt.Add( string.Empty ); nt.Add( strDocumentName ); nt.Add( strDocumentFragmentName ); nt.Add( strCommentName ); nt.Add( strTextName ); nt.Add( strCDataSectionName ); nt.Add( strEntityName ); nt.Add( strID ); nt.Add( strNonSignificantWhitespaceName ); nt.Add( strSignificantWhitespaceName ); nt.Add( strXmlns ); nt.Add( strXml ); nt.Add( strSpace ); nt.Add( strLang ); nt.Add( strReservedXmlns ); nt.Add( strEmpty ); nullNode = new XmlDocumentFragment( this ); eleIds = new XmlElementIdMap(this); loader = new XmlLoader(); _schemaInfo = null; isLoading = false; fEntRefNodesPresent = false; fIsEdited = false; fCDataNodesPresent = false; bSetResolver = false; resolver = null; this.objLock = new object(); }
public static void Register(XmlLoader loader) { loader.RegisterCustomWidget(XmlNodeName, Create); }