Esempio n. 1
0
 /// <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;
     }
 }
Esempio n. 2
0
 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;
     }
 }
Esempio n. 3
0
        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;
        }
Esempio n. 4
0
        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);
		}
Esempio n. 6
0
        // 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;
            }
        }
Esempio n. 7
0
 // 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;
            }
        }
Esempio n. 9
0
 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);
     }
 }
Esempio n. 10
0
        /// <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();
        }
Esempio n. 11
0
 public static void Register(XmlLoader loader)
 {
     loader.RegisterCustomWidget(XmlNodeName, Create);
 }