|
| United States Patent | 7165239 |
| Hejlsberg , ; et al. | January 16, 2007 |
|
Application program interface for network software platform
|
|
| Abstract | |
|
| An application program interface (API) provides a set of functions that make available support for processing XML documents for application developers who build Web applications on Microsoft Corporation's .NET.TM. platform. |
|
| Inventors: | Hejlsberg; Anders (Seattle, WA), Dedu-Constantin; Daniel (Redmond, WA), Christensen; Erik B. (Seattle, WA), Ballinger; Keith W. (North Bend, WA), Fussell; Mark W. (Sammamish, WA), Rajpal; Neetu (Redmond, WA), Sampathkumar; Nithyalakshmi (Bellevue, WA), Gazitt; Omri (Redmond, WA), Pharies; Stefan H. (Seattle, WA), Adams; William A. (Bellevue, WA), Leshinsky; Yan (Bellevue, WA), Chen; Chia-Hsun (Redmond, WA), Lovett; Christopher J. (Woodinville, WA) |
| Assignee: | Microsoft Corporation (Redmond, WA) |
| Appl. No.: | 09/902,810 |
| Filed: | July 10, 2001 |
| PCT Pub Date: | January 23, 2007 |
|
|
| Current U.S. Class: | | | 717/114 717/116 717/117 717/118 717/140 |
| Current International Class: | | | G06F 9/44 (20060101) G06F 9/45 (20060101) |
| Field of Search: | | | 717/114-118,177,100,140-161 705/1,26 719/310,316 707/104.1,103R,100,10 709/218,246,315 715/513,526 |
|
| [References Cited] - [Referenced By] | |
|
|
|
| U.S. Patent Documents | |
| 20020073236 | June 2002 | Helgeson et al. | |
| 20020092004 | July 2002 | Lee et al. | |
| 20020099687 | July 2002 | Krishnaprasad et al. | |
| 20020112078 | August 2002 | Yach | |
| 20020152244 | October 2002 | Dean et al. | |
| 20020169679 | November 2002 | Neumayer | |
| 20020184401 | December 2002 | Kadel et al. | |
| 20030028685 | February 2003 | Smith et al. | |
| 20030051236 | March 2003 | Pace et al. | |
| 20030074206 | April 2003 | Hoffman et al. | |
| 20030084120 | May 2003 | Egli | |
| 20030120665 | June 2003 | Fox et al. | |
| 20030149934 | August 2003 | Worden | |
| 20030167277 | September 2003 | Hejlsberg et al. | |
| 20030167355 | September 2003 | Smith et al. | |
| 20030167356 | September 2003 | Smith et al. | |
| 20030172196 | September 2003 | Hejlsberg et al. | |
| 20030177282 | September 2003 | Hejlsberg et al. | |
| 20040083463 | April 2004 | Hawley | |
| 20040117759 | June 2004 | Rippert et al. | |
| 20040205694 | October 2004 | James et al. | |
| 5218699 | June 1993 | Brandle et al. | |
| 5430876 | July 1995 | Schreiber et al. | |
| 5689700 | November 1997 | Miller et al. | |
| 5748962 | May 1998 | Brechtel et al. | |
| 5761494 | June 1998 | Smedley et al. | |
| 5822580 | October 1998 | Leung | |
| 5903753 | May 1999 | Bramnick et al. | |
| 5937406 | August 1999 | Balabine et al. | |
| 5943424 | August 1999 | Berger et al. | |
| 5956509 | September 1999 | Kevner | |
| 6061743 | May 2000 | Thatcher et al. | |
| 6175878 | January 2001 | Seaman et al. | |
| 6209124 | March 2001 | Vermeire et al. | |
| 6256678 | July 2001 | Traughber et al. | |
| 6275871 | August 2001 | Reinfelder et al. | |
| 6282581 | August 2001 | Moore et al. | |
| 6298354 | October 2001 | Saulpaugh et al. | |
| 6349343 | February 2002 | Foody et al. | |
| 6353830 | March 2002 | Yee et al. | |
| 6360230 | March 2002 | Chan et al. | |
| 6360266 | March 2002 | Pettus | |
| 6381632 | April 2002 | Lowell | |
| 6418448 | July 2002 | Sarkar | |
| 6430593 | August 2002 | Lindsley | |
| 6442548 | August 2002 | Balabine et al. | |
| 6446253 | September 2002 | Mellmer | |
| 6446256 | September 2002 | Hyman et al. | |
| 6473794 | October 2002 | Guheen et al. | |
| 6480865 | November 2002 | Lee et al. | |
| 6507856 | January 2003 | Chen et al. | |
| 6519571 | February 2003 | Guheen et al. | |
| 6536037 | March 2003 | Guheen et al. | |
| 6615166 | September 2003 | Guheen et al. | |
| 6643652 | November 2003 | Helgeson et al. | |
| 6721713 | April 2004 | Guheen et al. | |
| 6968503 | November 2005 | Chang et al. | |
|
|
| Other References | |
Cheng et al., XML and DB2, IEEE, Data Engineering, 2000. Proceedings. 16th International Conference on , Feb. 29-Mar. 3, 2000, pp. 569-573. cited by examiner .
Meyer, .NET is coming [Microsoft Web services platform], IEEE, Computer , vol. 34 , Issue: 8 , Aug. 2001, pp. 92-97. cited by examiner .
Lam et al., .NET Framework Essnetials, Jun. 2001, O'Reilly, pp. 1-320. cit- ed by examiner .
http://www.w3.org/TR/1999/REC-xpath-19991116.html, W3C, Nov. 1999, pp. 1-32. cited by examiner .
http://www.w3.org/TR/1998/NOTE-XML-data-0105, W3C, Jan. 1998, pp. 1-34. cited by examiner .
http://www.w3.org/TR/xslt, W3C, Nov. 1999, pp. 1-90. cited by examiner .
Sneed, Wrapping legacy COBOL programs behind an XML-interface, IEEE, Oct. 2001 pp. 189-197. cited by examiner .
Jingyu et al., Object-oriented representation for XML data, IEEE, Apr. 2001 pp. 40-49. cited by examiner .
Ensel et al., Managing application service dependencies with XML and the resource description framework, IEEE, May 2001 pp. 661-674. cited by exam- iner .
Tim O'Reilly, The Network Really Is the Computer, The O'Reilly Network at (http://www.oreilyynet.com) Jun. 8, 2000, pp. 1-11. cited by other .
The Java tm 2 Enterprise Edition Developer's Guide, v1.2.1, May 2000, Sun Microsystems, Palo Alto Ca. U.S.A., chapter 1; pp. 1-10 & pp. 152-155. cited by other .
Bill Shannon, Java tm 2 Platform Enterprise Edition Specification, v1.2, Sun Microsystems, Palo Alto , Ca. U.S.A., Dec. 17, 1999, pp. 2-1 thru 2-7 & 6-1. cited by other .
Java tm Platform, Standard Edition, v1.2.2 API Specification, 1993-1999 Sun Microsystems, Inc. in the U.S.A. and other countries, Palo Alto, Ca. U.S.A, pp. 1-4. cited by other .
Deitel & Deitel, Java.TM. How to Program book, Prentice Hall, Third edition, 1999 (pp. 7-29, 698-699, 714-717, 876-878, 936-977, 980-998, 1002-1046). cited by other .
Shannon; "Java 2 Platform Enterpise Edition Specification" v1.2 Dec. 17, 1999, pp. 2-8 thru 2-11 and 6-2 thru 6-6. cited by other .
Flanagan; "Java in a Nutshell" O'Reilly & Associates 1996 pp. 193-200, 237-253 267-270 339-342. cited by other .
Flanagan; "Java foundation classes in a Nutshell" O'Reilly 9-1000 Chapters 1-2. cited by other .
Gould; "Develop n-tier applications using J2EE" Java World Dec. 2000 pp. 1-10. cited by other .
H. Carr, et al, "Compiling Distributed C++", IEEE, 1993, pp. 496-503. cite- d by other .
Deitel & Deitel; Java.TM. How to Program Book, Prentice Hall, Third Edition, 1999 (pp. 214-226, 817-838). cited by other .
Arulanthu, et al. "The Design and Performance of A Scalable ORB Architecture for CORBA Asynchronous Messaging." Middleware 2000, Springer-Verlag, 2000,pp. 208-228. cited by other .
Hanson, "Differences between J2SE and J2EE", Sep. 8, 2003, SearchTechTarget.com. cited by other .
Ben, A comparative Overview of C#, Genomics, Jul. 31, 2000. cited by other .
Cohn, Web programming with Visual J++, Sams.net, 1997, chapters 5-6, 17-19. cited by other .
Flynn, Visual J++ Java programming, New Riders Publishing, 1996, pp. 133-143. cited by other .
Microsoft, Delegates in Visual J++ 6.0, Mar. 11, 1998, pp. 1-6. cited by other.~
|
|
|
| Primary Examiner: | Zhen; Wei
|
| Assistant Examiner: | Rampuria; Satish S.
|
| Attorney, Agent or Firm: | Lee & Hayes, PLLC
|
|
|
| Claims | |
|
The invention claimed is:
1. A software architecture for a distributed computing system implemented at least in part by a computing device, the software architecture comprising: an application configured to handle requests submitted by remote devices over a network; and an application program interface to present functions used by the application to access network and computing resources of the distributed computing system, wherein the application program interface comprises a set of classes that make available standards-based support for processing XML documents, wherein the set of classes are grouped in the application program interface into a plurality of namespaces, and wherein a first of the plurality of namespaces contains classes and enumerations to support XSLT (Extensible Stylesheet Language Transformations) and a second of the plurality of namespaces contains an XPath parser and evaluation engine, wherein the set of classes comprises: an XmlReader class that enables non-cached forward only access to XML data; an XPathNavigator class that enables read-only random access to a data store; an XslTransform class that enables transforming of XML data using an XSLT stylesheet; a plurality of Xml Schema classes that enable constructing and editing of schemas; an XmlResolver class that enables resolving of external XML resources named by a Uniform Resource Identifier (URI); an XmlDataDocument class that enables structured data to be stored, retrieved, and manipulated though a relational dataset; and an XmlWriter class that enables a non-cached forward only way of generating streams and files containing XML data.
2. A software architecture as recited in claim 1, wherein the set of classes further comprises: an XmlValidatingReader class that enables DTD, XDR and XSD schema validation.
3. An XmlReader class of an application program interface, embodied on one or more computer readable media that enables non-cached forward only access to XML data, the XmlReader class comprising: an XmlReader constructor that enables initialization of a new instance of the XmlReader class; and a Read method that enables reading of nodes of the XML data via the XmlReader class instance.
4. An XmlReader class of an application program interface as recited in claim 3, wherein the XmlReader class further comprises: a BaseURI property that identifies a base URI of a current node of the XML data; and a NodeType property that identifies the type of the current node.
5. An XmlResolver class of an application program interface, embodied on one or more computer storage media, that enables resolving of external XML resources named by a Uniform Resource Identifier (URI), the XmlResolver class comprising: a ResolveURI method that enables resolving the absolute URI from a base URI and a relative URI; and a GetEntity method that enables mapping of the resolved URI to an object containing identified resource.
6. An XmlDataDocument class of an application program interface, embodied on one or more computer storage media, that enables structured data to be stored, retrieved, and manipulated though a relational dataset, the XmlDataDocument class comprising: a DataSet property that enables obtaining of a dataset that provides a relational representation of the data in a document; a Load method that enables loading of the document using a specified data source and synchronizing the dataset with the loaded data.
7. A distributed computer software architecture implemented at least in part by a computing device, comprising: one or more applications configured to be executed on one or more computing devices, the applications handling requests submitted from remote computing devices; a networking platform to support the one or more applications; and an application programming interface to interface the one or more applications with the networking platform, wherein the application program interface comprises a set of classes that make available standards-based support for processing documents written in a markup language, wherein the set of classes are grouped in the application programming interface into a plurality of namespaces, and wherein a first of the plurality of namespaces contains classes and enumerations to support XSLT (Extensible Stylesheet Language Transformations), a second of the plurality of namespaces contains an XPath parser and evaluation engine, and a third of the plurality of namespaces contains classes used to serialize objects into XML format documents or streams, wherein the set of classes comprises: an XmlReader class that enables non-cached forward only access to XML data; an XPathNavigator class that enables read-only random access to a data store; an XslTransform class that enables transforming of XML data using an XSLT stylesheet; a plurality of Xml Schema classes that enable constructing and editing of schemas; an XmlResolver class that enables resolving of external XML resources named by a Uniform Resource Identifier (URI); an XmlDataDocument class that enables structured data to be stored, retrieved, and manipulated though a relational dataset; and an XmlWriter class that enables a non-cached forward only way of generating streams and files containing XML data.
8. A software architecture as recited in claim 7, wherein the set of classes further comprises: an XmlValidatingReader class that enables DTD, XDR and XSD schema validation.
9. A method comprising: receiving one or more calls from one or more remote devices over a network, wherein the one or more calls are to one or more functions that make available support for processing XML documents, the one or more functions being grouped into a plurality of namespaces with a first namespace containing an XPath parser and evaluation engine and a second namespace containing classes used to serialize objects into XML format documents or streams, wherein the one or more functions comprises: an XmlReader function that enables non-cached forward only access to XML data; an XPathNavigator function that enables read-only random access to a data store; an XslTransform function that enables transforming of XML data using an XSLT stylesheet; a plurality of Xml Schema functions that enable constructing and editing of schemas; an XmlResolver function that enables resolving of external XML resources named by a Uniform Resource Identifier (URI); an XmlDataDocument function that enables structured data to be stored, retrieved, and manipulated through a relational dataset; and an XmlWriter function that enables a non-cached forward only way of generating streams and files containing XML data; and performing the requested XML document processing.
10. A method as recited in claim 9, wherein the one or more functions further comprises: an XmlValidatingReader function that enables DTD, XDR and XSD schema validation.
11. A method comprising: calling, to one or more remote devices over a network, one or more functions that make available support for processing XML documents, the one or more functions being grouped into a plurality of namespaces with a first namespace containing classes and enumerations to support XSLT (Extensible Stylesheet Language Transformations) and a second namespace containing classes used to serialize objects into XML format documents or streams, wherein the one or more functions comprises: an XmlReader function that enables non-cached forward only access to XML data; an XPathNavigator function that enables read-only random access to a data store; an XslTransform function that enables transforming of XML data using an XSLT stylesheet; a plurality of Xml Schema functions that enable constructing and editing of schemas; an XmlResolver function that enables resolving of external XML resources named by a Uniform Resource Identifier (URI); an XmlDataDocument function that enables structured data to be stored, retrieved, and manipulated through a relational dataset; and an XmlWriter function that enables a non-cached forward only way of generating streams and files containing XML data; receiving, from the one or more remote devices, a response to the calling.
12. A method as recited in claim 11, wherein the one or more functions further comprises: an XmlValidatingReader function that enables DTD, XDR and XSD schema validation.
|
|
|
| Description | |
|
TECHNICAL FIELD
This invention relates to network software, such as Web applications, and to computer software development of such network software. More particularly, this invention relates to an application program interface (API) that facilitates use of a network software platform by application programs and computer hardware.
BACKGROUND
Very early on, computer software came to be categorized as "operating system" software or "application" software. Broadly speaking, an application is software meant to perform a specific task for the computer user such as solving a mathematical equation or supporting word processing. The operating system is the software that manages and controls the computer hardware. The goal of the operating system is to make the computer resources available to the application programmer while at the same time, hiding the complexity necessary to actually control the hardware.
The operating system makes the resources available via functions that are collectively known as the Application Program Interface or API. The term API is also used in reference to a single one of these functions. The functions are often grouped in terms of what resource or service they provide to the application programmer. Application software requests resources by calling individual API functions. API functions also serve as the means by which messages and information provided by the operating system are relayed back to the application software.
In addition to changes in hardware, another factor driving the evolution of operating system software has been the desire to simplify and speed application software development. Application software development can be a daunting task, sometimes requiring years of developer time to create a sophisticated program with millions of lines of code. For a popular operating system such as Microsoft Windows.RTM., application software developers write thousands of different applications each year that utilize the operating system. A coherent and usable operating system base is required to support so many diverse application developers.
Often, development of application software can be made simpler by making the operating system more complex. That is, if a function may be useful to several different application programs, it may be better to write it once for inclusion in the operating system, than requiring dozens of software developers to write it dozens of times for inclusion in dozens of different applications. In this manner, if the operating system supports a wide range of common functionality required by a number of applications, significant savings in applications software development costs and time can be achieved.
Regardless of where the line between operating system and application software is drawn, it is clear that for a useful operating system, the API between the operating system and the computer hardware and application software is as important as efficient internal operation of the operating system itself.
Over the past few years, the universal adoption of the Internet, and networking technology in general, has changed the landscape for computer software developers. Traditionally, software developers focused on single-site software applications for standalone desktop computers, or LAN-based computers that were connected to a limited number of other computers via a local area network (LAN). Such software applications were typically referred to as "shrink wrapped" products because the software was marketed and sold in a shrink-wrapped package. The applications utilized well-defined APIs to access the underlying operating system of the computer.
As the Internet evolved and gained widespread acceptance, the industry began to recognize the power of hosting applications at various sites on the World Wide Web (or simply the "Web"). In the networked world, clients from anywhere could submit requests to server-based applications hosted at diverse locations and receive responses back in fractions of a second. These Web applications, however, were typically developed using the same operating system platform that was originally developed for standalone computing machines or locally networked computers. Unfortunately, in some instances, these applications do not adequately transfer to the distributed computing regime. The underlying platform was simply not constructed with the idea of supporting limitless numbers of interconnected computers.
To accommodate the shift to the distributed computing environment being ushered in by the Internet, Microsoft Corporation is developing a network software platform known as the ".NET" platform (read as "Dot Net"). The platform allows developers to create Web services that will execute over the Internet. Such a dynamic shift requires a new ground-up design of an entirely new API.
In response to this challenge, the inventors developed a unique set of API functions for Microsoft's .NET.TM. platform.
SUMMARY
An application program interface (API) provides a set of functions that make available support for processing XML documents for application developers who build Web applications on a network platform, such as Microsoft Corporation's .NET.TM. platform.
BRIEF DESCRIPTION OF THE DRAWINGS
The same numbers are used throughout the drawings to reference like features.
FIG. 1 illustrates a network architecture in which clients access Web services over the Internet using conventional protocols.
FIG. 2 is a block diagram of a software architecture for Microsoft's .NET.TM. platform, which includes an application program interface (API).
FIG. 3 is a block diagram of unique namespaces supported by the API, as well as function classes of the various API functions.
FIG. 4 is a block diagram of an exemplary computer that may execute all or part of the software architecture.
BRIEF DESCRIPTION OF ACCOMPANYING COMPACT DISC
Accompanying this specification is a compact disc that stores a compiled HTML help file identifying the API (application program interface) for Microsoft's .NET.TM. network platform. The file is named "cpref.chm" and was created on Jun. 8, 2001. It is 30.81 Mbytes in size. The file can be executed on a Windows.RTM.-based computing device (e.g., IBM-PC, or equivalent) that executes a Windows.RTM.-brand operating system (e.g., Windows.RTM. NT, Windows.RTM. 98, Windows.RTM. 2000, etc.). The compiled HTML help file stored on the compact disk is hereby incorporated by reference.
Additionally, the APIs contained in the compiled HTML help file are also provided in approximately 100 separate text files named "NamespaceName.txt". The text files comply with the ASCII format.
The compact disc itself is a CD-ROM, and conforms to the ISO 9660 standard.
DETAILED DESCRIPTION
This disclosure addresses an application program interface (API) for a network platform upon which developers can build Web applications and services. More particularly, an exemplary API is described for the .NET.TM. platform created by Microsoft Corporation. The .NET.TM. platform is a software platform for Web services and Web applications implemented in the distributed computing environment. It represents the next generation of Internet computing, using open communication standards to communicate among loosely coupled Web services that are collaborating to perform a particular task.
In the described implementation, the .NET.TM. platform utilizes XML (extensible markup language), an open standard for describing data. XML is managed by the World Wide Web Consortium (W3C). XML is used for defining data elements on a Web page and business-to-business documents. XML uses a similar tag structure as HTML; however, whereas HTML defines how elements are displayed, XML defines what those elements contain. HTML uses predefined tags, but XML allows tags to be defined by the developer of the page. Thus, virtually any data items can be identified, allowing Web pages to function like database records. Through the use of XML and other open protocols, such as Simple Object Access Protocol (SOAP), the .NET.TM. platform allows integration of a wide range of services that can be tailored to the needs of the user. Although the embodiments described herein are described in conjunction with XML and other open standards, such are not required for the operation of the claimed invention. Other equally viable technologies will suffice to implement the inventions described herein.
Exemplary Network Environment
FIG. 1 shows a network environment 100 in which a network platform, such as the .NET.TM. platform, may be implemented. The network environment 100 includes representative Web services 102(1), . . . , 102(N), which provide services that can be accessed over a network 104 (e.g., Internet). The Web services, referenced generally as number 102, are programmable application components that are reusable and interact programmatically over the network 104, typically through industry standard Web protocols, such as XML, SOAP, WAP (wireless application protocol), HTTP (hypertext transport protocol), and SMTP (simple mail transfer protocol) although other means of interacting with the Web services over the network may also be used, such as Remote Procedure Call (RPC) or object broker type technology. A Web service can be self-describing and is often defined in terms of formats and ordering of messages.
Web services 102 are accessible directly by other services (as represented by communication link 106) or a software application, such as Web application 110 (as represented by communication links 112 and 114). Each Web service 102 is illustrated as including one or more servers that execute software to handle requests for particular services. Such services often maintain databases that store information to be served back to requesters. Web services may be configured to perform any one of a variety of different services. Examples of Web services include login verification, notification, database storage, stock quoting, location directories, mapping, music, electronic wallet, calendar/scheduler, telephone listings, news and information, games, ticketing, and so on. The Web services can be combined with each other and with other applications to build intelligent interactive experiences.
The network environment 100 also includes representative client devices 120(1), 120(2), 120(3), 120(4), . . . , 120(M) that utilize the Web services 102 (as represented by communication link 122) and/or the Web application 110 (as represented by communication links 124, 126, and 128). The clients may communicate with one another using standard protocols as well, as represented by an exemplary XML link 130 between clients 120(3) and 120(4).
The client devices, referenced generally as number 120, can be implemented many different ways. Examples of possible client implementations include, without limitation, portable computers, stationary computers, tablet PCs, televisions/set-top boxes, wireless communication devices, personal digital assistants, gaming consoles, printers, photocopiers, and other smart devices.
The Web application 110 is an application designed to run on the network platform and may utilize the Web services 102 when handling and servicing requests from clients 120. The Web application 110 is composed of one or more software applications 130 that run atop a programming framework 132, which are executing on one or more servers 134 or other computer systems. Note that a portion of Web application 110 may actually reside on one or more of clients 120. Alternatively, Web application 110 may coordinate with other software on clients 120 to actually accomplish its tasks.
The programming framework 132 is the structure that supports the applications and services developed by application developers. It permits multi-language development and seamless integration by supporting multiple languages. It supports open protocols, such as SOAP, and encapsulates the underlying operating system and object model services. The framework provides a robust and secure execution environment for the multiple programming languages and offers secure, integrated class libraries.
The framework 132 is a multi-tiered architecture that includes an application program interface (API) layer 142, a common language runtime (CLR) layer 144, and an operating system/services layer 146. This layered architecture allows updates and modifications to various layers without impacting other portions of the framework. A common language specification (CLS) 140 allows designers of various languages to write code that is able to access underlying library functionality. The specification 140 functions as a contract between language designers and library designers. By adhering to the CLS, libraries written in one language can be directly accessible to code modules written in other languages to achieve seamless integration between code modules written in one language and code modules written in another language.
The API layer 142 presents groups of functions that the applications 130 can call to access the resources and services provided by layer 146. By exposing the API functions for a network platform, application developers can create Web applications for distributed computing systems that make full use of the network resources and other Web services, without needing to understand the complex interworkings of how those network resources actually operate or are made available. Moreover, the Web applications can be written in any number of programming languages, and translated into an intermediate language supported by the common language runtime 144 and included as part of the common language specification 140. . In this way, the API layer 142 can provide methods for a wide and diverse variety of applications.
Additionally, the framework 132 can be configured to support API calls placed by remote applications executing remotely from the servers 134 that host the framework. Representative applications 148(1) and 148(2) residing on clients 120(3) and 120(M), respectively, can use the API functions by making calls directly, or indirectly, to the API layer 142 over the network 104.
The framework may also be implemented at the clients. Client 120(3) represents the situation where a framework 150 is implemented at the client. This framework may be identical to server-based framework 132, or modified for client purposes. Alternatively, the client-based framework may be condensed in the event that the client is a limited or dedicated function device, such as a cellular phone, personal digital assistant, handheld computer, or other communication/computing device.
Developers's Programming Framework
FIG. 2 shows the programming framework 132 in more detail. The common language specification (CLS) layer 140 supports applications written in a variety of languages 130(1), 130(2), 130(3), 130(4), . . . , 130(K). Such application languages include Visual Basic, C++, C#, COBOL, Jscript, Perl, Eiffel, Python, and so on. The common language specification 140 specifies a subset of features or rules about features that, if followed, allow the various languages to communicate. For example, some languages do not support a given type (e.g., an "int[]" type) that might otherwise be supported by the common language runtime 144. In this case, the common language specification 140 does not include the type. On the other hand, types that are supported by all or most languages (e.g., the "int[ ]" type) is included in common language specification 140 so library developers are free to use it and are assured that the languages can handle it. This ability to communicate results in seamless integration between code modules written in one language and code modules written in another language. Since different languages are particularly well suited to particular tasks, the seamless integration between languages allows a developer to select a particular language for a particular code module with the ability to use that code module with modules written in different languages. The common language runtime 144 allow seamless multi-language development, with cross language inheritance, and provide a robust and secure execution environment for the multiple programming languages. For more information on the common language specification 140 and the common language runtime 144, the reader is directed to co-pending applications entitled "Method and System for Compiling Multiple Languages", filed Jun. 21, 2000 (Ser. No. 09/598,105) and "Unified Data Type System and Method" filed Jul. 10, 2000 (Ser. No. 09/613,289), which are incorporated by reference.
The framework 132 encapsulates the operating system 146(1) (e.g., Windows.RTM.-brand operating systems) and object model services 146(2) (e.g., Component Object Model (COM) or Distributed COM). The operating system 146(1) provides conventional functions, such as file management, notification, event handling, user interfaces (e.g., windowing, menus, dialogs, etc.), security, authentication, verification, processes and threads, memory management, and so on. The object model services 146(2) provide interfacing with other objects to perform various tasks. Calls made to the API layer 142 are handed to the common language runtime layer 144 for local execution by the operating system 146(1) and/or object model services 146(2).
The API 142 groups API functions into multiple namespaces. Namespaces essentially define a collection of classes, interfaces, delegates, enumerations, and structures, which are collectively called "types", that provide a specific set of related functionality. A class represents managed heap allocated data that has reference assignment semantics. A delegate is an object oriented function pointer. An enumeration is a special kind of value type that represents named constants. A structure represents static allocated data that has value assignment semantics. An interface defines a contract that other types can implement.
By using namespaces, a designer can organize a set of types into a hierarchical namespace. The designer is able to create multiple groups from the set of types, with each group containing at least one type that exposes logically related functionality. In the exemplary implementation, the API 142 is organized into four root namespaces: a first namespace 200 for Web applications, a second namespace 202 for client applications, a third namespace 204 for data and XML, and a fourth namespace 206 for base class libraries (BCLs). Each group can then be assigned a name. For instance, types in the Web applications namespace 200 are assigned the name "Web", and types in the data and XML namespace 204 can be assigned names "Data" and "XML" respectively. The named groups can be organized under a single "global root" namespace for system level APIs, such as an overall System namespace. By selecting and prefixing a top level identifier, the types in each group can be easily referenced by a hierarchical name that includes the selected top level identifier prefixed to the name of the group containing the type. For instance, types in the Web applications namespace 200 can be referenced using the hierarchical name "System.Web". In this way, the individual namespaces 200, 202, 204, and 206 become major branches off of the System namespace and can carry a designation where the individual namespaces are prefixed with a designator, such as a "System." prefix.
The Web applications namespace 200 pertains to Web based functionality, such as dynamically generated Web pages (e.g., Microsoft's Active Server Pages (ASP)). It supplies types that enable browser/server communication. The client applications namespace 202 pertains to drawing and client side UI functionality. It supplies types that enable drawing of two-dimensional (2D) and three-dimensional (3D) drawings, imaging, and printing, as well as the ability to construct window forms, menus, boxes, and so on.
The data and XML namespace 204 relates to connectivity to data sources and XML functionality. It supplies classes, interfaces, delegates, and enumerations that enable security, specify data types, and serialize objects into XML format documents or streams. The base class libraries (BCL) namespace 206 pertains to basic system and runtime functionality. It contains the fundamental types and base classes that define commonly-used value and reference data types, events and event handlers, interfaces, attributes, and processing exceptions.
In addition to the framework 132, programming tools 210 are provided to assist the developer in building Web services and/or applications. One example of the programming tools 200 is Visual Studio.TM., a multi-language suite of programming tools offered by Microsoft Corporation.
Root API Namespaces
FIG. 3 shows the API 142 and its four root namespaces in more detail. In one embodiment, the namespaces are identified according to a hierarchical naming convention in which strings of names are concatenated with periods. For instance, the Web applications namespace 200 is identified by the root name "System.Web". Within the "Sytem.Web" namespace is another namespace for Web services, identified as "System.Web.Services", which further identifies another namespace for a description known as "System.Web.Services.Description". With this naming convention in mind, the following provides a general overview of selected namespaces of the API 142, although other naming conventions could be used with equal effect.
The Web applications namespace 200 ("System.Web") defines additional namespaces, including: A services namespace 300 ("System.Web.Services") containing classes that enable a developer to build and use Web services. The services namespace 300 defines additional namespaces, including a description namespace 302 ("System.Web.Services.Description") containing classes that enable a developer to publicly describe a Web service via a service description language (such as WSDL, a specification available from the W3C), a discovery namespace 304 ("System.Web.Services.Discovery") containing classes that allow Web service consumers to locate available Web Services on a Web server, and a protocols namespace 306 ("System.Web.Services.Protocols") containing classes that define the protocols used to transmit data across a network during communication between Web service clients and the Web service itself. A caching namespace 308 ("System.Web.Caching") containing classes that enable developers to decrease Web application response time through temporarily caching frequently used resources on the server. This includes ASP.NET pages, web services, and user controls. (ASP.NET is the updated version of Microsoft's ASP technology.) Additionally, a cache dictionary is available for developers to store frequently used resources, such as hash tables and other data structures. A configuration namespace 310 ("System.Web.Configuration") containing classes that are used to read configuration data in for an application. A UI namespace 312 ("System.Web.UI") containing types that allow developers to create controls and pages that will appear in Web applications as user interfaces on a Web page. This namespace includes the control class, which provides all web based controls, whether those encapsulating HTML elements, higher level Web controls, or even custom User controls, with a common set of functionality. Also provided are classes which provide the web forms server controls data binding functionality, the ability to save the view state of a given control or page, as well as parsing functionality for both programmable and literal controls. Within the UI namespace 312 are two additional namespaces: an HTML controls namespace 314 ("System.Web.UI.HtmlControls") containing classes that permit developers to interact with types that encapsulates html 3.2 elemtents create HTML controls, and a Web controls namespace 316 ("System.Web.UI.WeblControls") containing classes that allow developers to create higher level Web controls. A security namespace 318 ("System.Web.Security") containing classes used to implement security in web server applications, such as basic authentication, challenge response authentication, and role based authentication. A session state namespace 320 ("System.Web.SessionState") containing classes used to access session state values (i.e., data that lives across requests for the lifetime of the session) as well as session-level settings and lifetime management methods.
The client applications namespace 202 is composed of two namespaces: A windows forms namespace 322 ("System.Windows.Forms") containing classes for creating Windows.RTM.-based client applications that take full advantage of the rich user interface features available in the Microsoft Windows.RTM. operating system, such as the ability to drag and drop screen elements. Such classes may include wrapped APIs available in the Microsoft Windows.RTM. operating system that are used in a windowing UI environment. Within this namespace are a design namespace 324 ("System.Windows.Forms.Design") that contains classes to extend design-time support for Windows forms and a component model namespace 326 ("System.Windows.Forms.ComponentModel") that contains the windows form implementation of the general component model defined in System.ComponentModel. This namespace contains designer tools, such as Visual Studio, which offer a rich experience for developers at design time. A drawing namespace 328 ("System.Drawing") containing classes for graphics functionality. The drawing namespace 328 includes a 2D drawing namespace 330 ("System.Drawing.Drawing2D") that contains classes and enumerations to provide advanced 2-dimmensional and vector graphics functionality, an imaging namespace 332 ("System.Drawing.Imaging") that contains classes for advanced imaging functionality, a printing namespace 334 ("System.Drawing.Printing") that contains classes to permit developers to customize printing, and a text namespace 336 ("System.Drawing.Text") that contains classes for advanced typography functionality.
The data and XML namespace 204 is composed of two namespaces: A data namespace 340 ("System.Data") containing classes that enable developers to build components that efficiently manage data from multiple data sources. It implements an architecture that, in a disconnected scenario (such as the Internet), provides tools to request, update, and reconcile data in multiple tier systems. The data namespace 340 includes a common namespace 342 that contains types shared by data providers. A data provider describes a collection of types used to access a data source, such as a database, in the managed space. The data namespace 340 also includes an OLE DB namespace 344 that contains types pertaining to data used in object-oriented databases (e.g., Microsoft's SQL Server), and a SQL client namespace 346 that contains types pertaining to data used by SQL clients. The data namespace also includes a SQL types namespace 348 ("System.Data.SqlTypes") that contains classes for native data types within Microsoft's SQL Server. The classes provide a safer, faster alternative to other data types. Using the objects within this namespace helps prevent type conversion errors caused in situations where loss of precision could occur. Because other data types are converted to and from SQL types behind the scenes, explicitly creating and using objects within this namespace results in faster code as well. An XML namespace 350 ("System.XML") containing classes that provide standards-based support for processing XML. The supported standards include XML (e.g., version 1.0), XML Namespaces (both stream level and DOM), XML Schemas, XPath expressions, XSL/T transformations, DOM Level 2 Core, and SOAP (e.g., version 1.1). The XML namespace 350 includes an XSLT namespace 352 ("System.XML.Xsl") that contains classes and enumerations to support XSLT (Extensible Stylesheet Language Transformations), an Xpath namespace 354 ("System.XML.Xpath") that contains an XPath parser and evaluation engine, and a serialization namespace 356 ("System.XML.Serialization") that contains classes used to serialize objects into XML format documents or streams.
The base class library namespace 206 ("System") includes the following namespaces: A collections namespace 360 ("System.Collections") containing interfaces and classes that define various collections of objects, such as lists, queues, arrays, hash tables and dictionaries. A configuration namespace 362 ("System.Configuration") containing classes and interfaces that allow developers to programmatically access configuration settings and handle errors in configuration files. A diagnostics namespace 364 ("System.Diagnostics") containing classes that are used to debug applications and to trace code execution. The namespace allows developers to start system processes, read and write to event logs, and monitor system performance using performance counters. A globalization namespace 366 ("System.Globalization") containing classes that define culture-related information, including the language, the country/region, the calendars in use, the format patterns for dates, currency and numbers, and the sort order for strings. An I/O namespace 368 ("System.IO") containing the infrastructure pieces to operate with the intput/output of data streams, files, and directories. This namespace includes a model for working with streams of bytes, higher level readers and writers which consume those bytes, various constructions or implementations of the streams (e.g., FileStream and MemoryStream) and, a set of utility classes for working with files and directories. A net namespace 370 ("System.Net") providing an extensive set of classes for building network-enabled application, referred to as the Net Class Libraries (NCL). One element to the design of the Net Class Libraries is an extensible, layered approach to exposing networking functionality. The NCL stack contains three basic layers. A base layer (System.Net.Socket) provides access to an interface to TCP/IP, the communications protocol of UNIX networks and the Internet. One example of such an interface is the "WinSock API" from Microsoft Corporation. The next layer is the Transport Protocol classes, which support such transport protocols as TCP and UDP. Developers may write their own protocol classes to provide support for protocols such as IGMP and ICMP. The third layer is the Web request, which provides an abstract factory pattern for the creation of other protocol classes. The NCL provides implementations for Hyper Text Transport Protocol (HTTP). A reflection namespace ("System.Reflection") 372 containing types that provide a managed view of loaded types, methods, and fields, with the ability to dynamically create and invoke types. A resources namespace 374 ("System.Resources") containing classes and interfaces that allow developers to create, store and manage various culture-specific resources used in an application. A security namespace 376 ("System.Security") supporting the underlying structure of the security system, including interfaces, attributes, exceptions, and base classes for permissions. A service process namespace 378 ("System.ServiceProcess") containing classes that allow developers to install and run services. Services are long-running executables that run without a user interface. They can be installed to run under a system account that enables them to be started at computer reboot. Services whose implementation is derived from processing in one class can define specific behavior for start, stop, pause, and continue commands, as well as behavior to take when the system shuts down. A text namespace 380 ("System.Text") containing classes representing various types of encodings (e.g., ASCII, Unicode, UTF-7, and UTF-8), abstract base classes for converting blocks of characters to and from blocks of bytes, and a helper class that manipulates and formats string objects without creating intermediate instances. A threading namespace 382 ("System.Threading") containing classes and interfaces that enable multi-threaded programming. The threading namespace includes a ThreadPool class that manages groups of threads, a Timer class that enables a delegate to be called after a specified amount of time, and a Mutex class for synchronizing mutually-exclusive threads. This namespace also provides classes for thread scheduling, wait notification, and deadlock resolution. A runtime namespace 384 ("System.Runtime") containing multiple namespaces concerning runtime features, including an interoperation services namespace 386 ("System.Runtime.InteropServices") that contains a collection of classes useful for accessing COM objects. The types in the InteropServices namespace fall into the following areas of functionality: attributes, exceptions, managed definitions of COM types, wrappers, type converters, and the Marshal class. The runtime namespace 384 further includes a remoting namespace 388 ("System.Runtime.Remoting") that contains classes and interfaces allowing developers to create and configure distributed applications. Another namespace within the runtime namespace 384 is a serialization namespace 390 ("System.Runtime.Serialization") that contains classes used for serializing and deserializing objects. Serialization is the process of converting an object or a graph of objects into a linear sequence of bytes for either storage or transmission to another location.
Portions of the XML namespace 350 ("System.XML") are discussed in additional detail below.
System.XML Namespace
This is the overall namespace for the XML classes that provide standards-based support for processing XML. Various functionality for processing XML documents can be invoked via the XML namespace, such as non-cached forward only access to XML data, read-only random access to a data store, transforming of XML data using an XSLT stylesheet, constructing and editing of schemas, resolving of external XML resources named by a Uniform Resource Identifier (URI), storage and retrieval (as well as manipulation) of structured data through a relational dataset, non-cached forward only generation of streams and files containing XML data, DTD and XDR (as well as XSD) schema validation, and so forth. In one exemplary implementation, the standards supported by the namespace are: XML 1.0-"www" followed by ".w3.org/TR/1998/REC-xml-19980210"-including DTD support (XmlTextReader); XML Namespaces--"www" followed by ".w3.org/TR/REC-xml-names/"-both stream level and DOM; XML Schemas-"www" followed by ".w3.org/TR/xmlschema-1/"-supported for schema mapping and serialization. (see also XmlSchemaCollection which provides XDR schema validation); XPath expressions-"www" followed by ".w3 .org/TR/xpath" (XmlNavigator); XSL/T transformations-"www" followed by ".w3 .org/TR/xslt"(XslTransform); DOM Level 2 Core-"www" followed by ".w3.org/TRIDOM-Level-2/"-for (XmlDocurnent); SOAP 1.1-msdn.microsoft.comIxml/general/soapspec.asp (including the Soap Contract Language and Soap Discovery) used in XML object serialization.
The System.Xml namespace also includes a System.Xml.Schema namespace that contains XML classes that provide standards-based support for XML schemas. In one exemplary implementation, the supported standards are: XML Schemas for Structures-"www" followed by ".w3.org/TR/xmlschema-1/"-supports for schema mapping and for validation. (see also XmlSchemaCollection which provides XSD and XDR schema validation); and XML Schemas for Data Types-"www" followed by ".w3.org/TR/xmlschema-2/"-supports data types for XML schema definitions. (see also XmlSchemaCollection which provides XSD and XDR schema validation).
The following is a more detailed description of the System.Xml namespace, identifying various classes, interfaces, enumerations, and so forth contained in the System.Xml namespace (as well as the System.Xml.Schema, System.Xml.Serialization, System.Xml.Xpath, and System.Xml.Xsl namespaces contained therein).
System.Xml
This is the overall namespace for the XML classes that provide standards-based support for processing XML. The supported standards are: XML 1.0 -"www" followed by ".w3.org/TR/1998/ REC-xml-19980210"-including DTD support (XmlTextReader) XML Namespaces--"www" followed by ".w3.org/TR/REC-xml-names/"--both stream level and DOM.
Description
This is the overall namespace for the XML classes that provide standards-based support for processing XML. The supported standards are: XML 1.0 -"www" followed by ".w3.org/TR/1998/REC-xml-19980210"-including DTD support (XmlTextReader)XML Namespaces--"www" followed by ".w3.org/TR/REC-xml-names/"--both stream level and DOM.
XmlDataDocument class (System.Xml)
Description
Allows structured data to be stored, retrieved, and manipulated through a relational System.Data.DataSet
This class extends System.Xml.XmlDocument. It enables you to load either relational data or XML data and manipulate that data using the W3C Document Object Model (DOM). The DOM presents data as a hierarchy of node objects. Because XmlDataDocument implements the System.Xml.XPath.IXPathNavigable interface it can also be used as the source document for the System.Xml.Xsl.XslTransform class.
Constructors:
XmlDataDocument
Example Syntax: [C#] public XmlDataDocument( ); [C++] public: XmlDataDocument( ); [VB] Public Sub New( ) [JScript] public function XmlDataDocument( ); Initializes a new instance of the XmlDataDocument class. Description
Initializes a new instance of the XmlDataDocument class.
The first time the System.Xml.XmlDataDocument.DataSet property is used, a new DataSet is created an associated with the XmlDataDocument.
XmlDataDocument
Example Syntax: [C#] public XmlDataDocument(DataSet dataset); [C++] public: XmlDataDocument(DataSet* dataset); [VB] Public Sub New(ByVal dataset As DataSet) [JScript] public function XmlDataDocument(dataset : DataSet); Description
Initializes a new instance of the XmlDataDocument class with the specified System.Data.DataSet.
The XmlDataDocument is synchronized with the specified DataSet. Any data in the DataSet is immediately available through the XmlDataDocument. Any changes in the DataSet are propogated in the XmlDataDocument. Any changes made in the XmlDataDocument, provided they match the DataSet schema, are propogated in the DataSet. The DataSet to load into the XmlDataDocument.
Properties:
Attributes
BaseURI
ChildNodes
DataSet
Description
Gets a System.Data.DataSet that provides a relational representation of the data in the XmlDataDocument.
The DataSet enables you to access the data in the XmlDataDocument using a relational model. This means that you can handle the data as tables and views, rows and columns, relations, and so on.
DocumentElement
DocumentType
FirstChild
HasChildNodes
Implementation
InnerText
InnerXml
IsReadOnly
Item
Item
LastChild
LocalName
Name
NamespaceURI
NameTable
NextSibling
NodeType
OuterXml
OwnerDocument
ParentNode
Prefix
PreserveWhitespace
PreviousSibling
Value
XmlResolver
Methods:
CloneNode [C#] public override XmlNode CloneNode(bool deep); [C++] public: XmlNode* CloneNode(bool deep); [VB] Overrides Public Function CloneNode(ByVal deep As Boolean) As XmlNode [JScript] public override function CloneNode(deep : Boolean) : XmlNode; Description
Creates a duplicate of the current node.
Return Value: The cloned node.
Cloning the XmlDataDocument also clones the System.Data.DataSet schema. true to recursively clone the subtree under the specified node; false to clone only the node itself.
CreateElement [C#] public override XmlElement CreateElement(string prefix, string localName, string namespaceURI); [C++] public: XmlElement* CreateElement(String* prefix, String* localName, String* namespaceURI); [VB] Overrides Public Function CreateElement(ByVal prefix As String, ByVal localName As String, ByVal namespaceURI As String) As XmlElement [JScript] public override function CreateElement(prefix : String, localName : String, namespaceURI : String) : XmlElement; Creates an System.Xml.XmlElement. Description
Creates an element with the specified System.Xml.XmlNode.Prefix, System.Xml.XmlDocument.LocalName, and System.Xml.XmlNode.NamespaceURI.
Return Value: A new System.Xml.XmlElement.
Notes to Inheritors If you overload this function, it should not be used for extensibility. Instead, you should return an element created by the base class, XmlDataDocument in this case. See the following example. The prefix of the new element; if String.Empty or null there is no prefix. The local name of the new element. The namespace URI of the new element; if String.Empty or null there is no namespaceURI.
CreateEntityReference [C#] public override XmlEntityReference CreateEntityReference(string name); [C++] public: XmlEntityReference* CreateEntityReference(String* name); [VB] Overrides Public Function CreateEntityReference(ByVal name As String) As XmlEntityReference [JScript] public override function CreateEntityReference(name : String) : XmlEntityReference; Description
Creates an System.Xml.XmlEntityReference with the specified name. Name of the entity reference.
CreateNavigator [C#] protected override XPathNavigator CreateNavigator(XmlNode node); [C++] protected: XPathNavigator* CreateNavigator(XmlNode* node); [VB] Overrides Protected Function CreateNavigator(ByVal node As XmlNode) As XPathNavigator [JScript] protected override function CreateNavigator(node : XmlNode) : XPathNavigator; Creates a new System.Xml.XPath.XPathNavigator object for navigating this document. Description
Creates a new System.Xml.XPath.XPathNavigator object for navigating this document.
Return Value: An XPathNavigator.
The XPathNavigator provides read-only, random access to data. Because it is optimized for XSLT transformations, it provides performance benefits when used as an input mechanism to the System.Xml.Xsl.XslTransform.Transform(System.Xml.XPath.IXPathNaviga ble,System.Xml.Xsl.XsltArgumentList) method. The System.Xml.XmlNode you want to navigate.
GetElementById [C#] public override XmlElement GetElementById(string elemId); [C++] public: XmlElement* GetElementById(String* elemId); [VB] Overrides Public Function GetElementById(ByVal elemId As String) As XmlElement [JScript] public override function GetElementById(elemId : String) : XmlElement; Description
Gets the System.Xml.XmlElement with the specified ID. The attribute ID to match.
GetElementFromRow [C#] public XmlElement GetElementFromRow(DataRow r); [C++] public: XmlElement* GetElementFromRow(DataRow* r); [VB] Public Function GetElementFromRow(ByVal r As DataRow) As XmlElement [JScript] public function GetElementFromRow(r : DataRow) : XmlElement; Description
Retrieves the System.Xml.XmlElement associated with the specified System.Data.DataRow.
Return Value: The XmlElement containing a representation of the specified DataRow. The DataRow whose associated XmlElement you wish to retrieve.
GetRowFromElement [C#] public DataRow GetRowFromElement(XmlElement e); [C++] public: DataRow* GetRowFromElement(XmlElement* e); [VB] Public Function GetRowFromElement(ByVal e As XmlElement) As DataRow [JScript] public function GetRowFromElement(e : XmlElement) : DataRow; Description
Retrieves the System.Data.DataRow associated with the specified System.Xml.XmlElement.
Return Value: The DataRow containing a representation of the XmlElement. The XmlElement whose associated DataRow you wish to retrieve.
Load [C#] public override void Load(XmlReader reader); [C++] public: void Load(XmlReader* reader); [VB] Overrides Public Sub Load(ByVal reader As XmlReader) [JScript] public override function Load(reader : XmlReader); Loads the XmlDataDocument using the specified data source and synchronizes the System.Data.DataSet with the loaded data. Description
Loads the XmlDataDocument from the specified System.Xml.XmlReader.
System.Xml.XmlWhitespace nodes are not created unless System.Xml.XmlDocument.PreserveWhitespace is set to true. Also, if the reader has been configured to not return whitespace, then no whitespace nodes will be created. In other words Load does not change the whitespace handling of the given reader. XmlReader containing the XML document to load.
WriteTo [C#] public override void WriteTo(XmlWriter writer); [C++] public: void WriteTo(XmlWriter* writer); [VB] Overrides Public Sub WriteTo(ByVal writer As XmlWriter) [JScript] public override function WriteTo(writer : XmlWriter); Description
Saves the current node to the specified System.Xml.XmlWriter. The XmlWriter to which you want to save.
EntityHandling enumeration (System.Xml)
WriteTo
Description
Specifies how entities are handled.
WriteTo [C#] public const EntityHandling ExpandCharEntities; [C++] public: const EntityHandling ExpandCharEntities; [VB] Public Const ExpandCharEntities As EntityHandling [JScript] public var ExpandCharEntities : EntityHandling; Description
Expands character entities and returns general entities as nodes (System.Xml.XmlValidatingReader.NodeType=XmlNodeType.EntityReference, System.Xml.XmlValidatingReader.Name=the name of the entity, System.Xml.XmlValidatingReader.HasValue=false).
WriteTo [C#] public const EntityHandling ExpandEntities; [C++] public: const EntityHandling ExpandEntities; [VB] Public Const ExpandEntities As EntityHandling [JScript] public var ExpandEntities : EntityHandling; Description
Expands all entities. This is the default.
Formatting enumeration (System.Xml)
ToString
Description
Specifies formatting options for the System.Xml.XmlTextWriter.
ToString [C#] public const Formatting Indented; [C++] public: const Formatting Indented; [VB] Public Const Indented As Formatting [JScript] public var Indented : Formatting; Description
Causes child elements to be indented according to the System.Xml.XmlTextWriter.Indentation and System.Xml.XmlTextWriter.IndentChar settings. This option indents element content only; mixed content is not affected. For the XML 1.0 definitions of these terms, see the W3C documentation (http://www.w3.org/TR/1998/REC-xml-19980210#sec-element-content and http://www.w3.org/TR/1998/REC-xml-19980210#sec-mixed-content).
ToString [C#] public const Formatting None; [C++] public: const Formatting None; [VB] Public Const None As Formatting [JScript] public var None : Formatting; Description
No special formatting is applied. This is the default.
IHasXmlNode interface (System.Xml)
ToString
Description
Enables a class to return an System.Xml.XmlNode from the current context or position.
This interface is implemented by classes which operate over classes that have System.Xml.XmlNode nodes. For example, if an System.Xml.XPath.XPathNavigator is implemented over an System.Xml.XmlDocument you can use the System.Xml.IHasXmlNode.GetNode method to access the node representing the current position of the navigator.
GetNode [C#] XmlNode GetNode( ); [C++] XmlNode* GetNode( ); [VB] Function GetNode( ) As XmlNode [JScript] function GetNode( ) : XmlNode; Description
Returns the System.Xml.XmlNode for the current position.
Return Value: The XmlNode for the current position.
The following C# code uses GetNode to access a node the System.Xml.XPath.XPathNavigator is currently positioned on.
IXmlLineInfo interface (System.Xml)
GetNode
Description
Provides an interface to enable a class to return line and position information.
LineNumber
GetNode [C#] int LineNumber {get;} [C++] int get_LineNumber( ); [VB] ReadOnly Property LineNumber As Integer [JScript] abstract function get LineNumber( ) : int; Description
Gets the current line number.
This property is used primarily for error reporting, but can be called at any time. The starting value is b 1. Combined with System.Xml.IXmlLineInfo.LinePosition, a value of 1,1 indicates the start of a document.
LinePosition
GetNode [C#] int LinePosition {get;} [C++] int get_LinePosition( ); [VB] ReadOnly Property LinePosition As Integer [JScript] abstract function get LinePosition( ) : int; Description
Gets the current line position.
This property is used primarily for error reporting, but can be called at any time. The starting value is 1. Combined with System.Xml.IXmlLineInfo.LineNumber, a value of 1,1 indicates the start of a document.
HasLineInfo [C#] bool HasLineInfo( ); [C++] bool HasLineInfo( ); [VB] Function HasLineInfo( ) As Boolean [JScript] function HasLineInfo( ) : Boolean; Description
Gets a value indicating whether the class can return line information.
Return Value: true if System.Xml.IXmlLineInfo.LineNumber and System.Xml.IXmlLineInfo.LinePosition can be provided; otherwise, false.
NameTable class (System.Xml)
HasLineInfo
Description
Implements a single-threaded System.Xml.XmlNameTable.
Several classes, such as System.Xml.XmlDocument and System.Xml.XmlReader use the NameTable class internally, to store attribute and element names. When an element or attribute name occurs multiple times in an XML document it is stored only once in the NameTable. This allows you to do object comparisons on these strings rather than a more expensive string comparison.
NameTable
Example Syntax:
HasLineInfo [C#] public NameTable( ); [C++] public: NameTable( ); [VB] Public Sub New( ) [JScript] public function NameTable( ); Description
Initializes a new instance of the NameTable class.
Constructs an empty NameTable.
Add [C#] public override string Add(string key); [C++] public: String* Add(String* key); [VB] Overrides Public Function Add(ByVal key As String) As String [JScript] public override function Add(key : String) : String; Atomizes the specified string and adds it to the NameTable. Description
Atomizes the specified string and adds it to the NameTable.
Return Value: The atomized string or the existing string if it already exists in the NameTable. The string to add.
Add [C#] public override string Add(char[ ] key, int start, int len); [C++] public: String* Add(_wchar_t key_gc[ ], int start, int len); [VB] Overrides Public Function Add(ByVal key( ) As Char, ByVal start As Integer, ByVal len As Integer) As String [JScript] public override function Add(key : Char[ ], start : int, len : int) : String; Description
Atomizes the specified string and adds it to the NameTable.
Return Value: The atomized string or the existing atom if one already exists in the NameTable. If len is zero, String.Empty is returned. The character array containing the string to add. The zero-based index into the array specifying the first character of the string. The number of characters in the string.
Get [C#] public override string Get(string value); [C++] public: String* Get(String* value); [VB] Overrides Public Function Get(ByVal value As String) As String [JScript] public override function Get(value : String) : String; Gets the atomized string object. Description
Gets the atomized string object with the specified value.
Return Value: The atomized string object or null if the string has not already been atomized. The name to find.
Get [C#] public override string Get(char[ ] key, int start, int len); [C++] public: String* Get(_wchar_t key_gc[ ], int start, int len); [VB] Overrides Public Function Get(ByVal key( ) As Char, ByVal start As Integer, ByVal len As Integer) As String [JScript] public override function Get(key : Char[ ], start : int, len : int) : String; Description
Gets the atomized String object containing the same characters as the specified range of characters in the given array.
Return Value: The atomized string or null if the string has not already been atomized. If len is zero, String.Empty is returned. The character array containing the name to find. The zero-based index into the array specifying the first character of the name. The number of characters in the name.
ReadState enumeration (System.Xml)
ToString
Description
Specifies the state of the reader.
ToString [C#] public const ReadState Closed; [C++] public: const ReadState Closed; [VB] Public Const Closed As ReadState [JScript] public var Closed : ReadState; Description
The System.Xml.XmlReader.Close method has been called.
ToString [C#] public const ReadState EndOfFile; [C++] public: const ReadState EndOfFile; [VB] Public Const EndOfFile As ReadState [JScript] public var EndOfFile : ReadState; Description
The end of the file has been reached successfully.
ToString [C#] public const ReadState Error; [C++] public: const ReadState Error; [VB] Public Const Error As ReadState [JScript] public var Error : ReadState; Description
An error occurred that prevents the read operation from continuing.
ToString [C#] public const ReadState Initial; [C++] public: const ReadState Initial; [VB] Public Const Initial As ReadState [JScript] public var Initial : ReadState; Description
The Read method has not been called.
ToString [C#] public const ReadState Interactive; [C++] public: coust ReadState Interactive; [VB] Public Const Interactive As ReadState [JScript] public var Interactive : ReadState; Description
The Read method has been called. Additional methods may be called on the reader.
ValidationType enumeration (System.Xml)
ToString
Description
Specifies the type of validation to perform.
The validation model has three characteristics, strict, informative, and status. Strict, does not allow the mixing of validation types, informative provides a warning if the schema or DTD cannot be found, and status provides warnings if validation cannot be performed for elements and attributes from schemas.
ToString [C#] public const ValidationType Auto; [C++] public: const ValidationType Auto; [VB] Public Const Auto As ValidationType [JScript] public var Auto : ValidationType; Description
System.Xml.XmlValidatingReader validates if DTD or schema information is found.
ToString [C#] public const ValidationType DTD; [C++] public: const ValidationType DTD; [VB] Public Const DTD As ValidationType [JScript] public var DTD : ValidationType; Description
Validates according to the DTD.
ToString [C#] public const ValidationType None; [C++] public: const ValidationType None; [VB] Public Const None As ValidationType [JScript] public var None : ValidationType; Description
Creates an XML 1.0 compliant non-validating parser. Default attributes are reported and general entities can be resolved by calling System.Xml.XmlValidatingReader.ResolveEntity. The DOCTYPE is not used for validation purposes.
ToString [C#] public const ValidationType Schema; [C++] public: const ValidationType Schema; [VB] Public Const Schema As ValidationType [JScript] public var Schema : ValidationType; Description
Validate according to XSD schemas; including inline schemas. XSD schemas are associated with namespace URIs either by using the schemaLocation attribute or the provided System.Xml.XmlValidatingReader.Schemas property.
ToString [C#] public const ValidationType XDR; [C++] public: const ValidationType XDR; [VB] Public Const XDR As ValidationType [JScript] public var XDR : ValidationType; Description
Validate according to XDR schemas; including inline schemas. XDR schemas are recognized using the x-schema namespace prefix or the System.Xml.XmlValidatingReader.Schemas property.
WhitespaceHandling enumeration (System.Xml)
ToString
Description
Specifies how whitespace is handled.
ToString [C#] public const WhitespaceHandling All; [C++] public: const WhitespaceHandling All; [VB] Public Const All As WhitespaceHandling [JScript] public var All : WhitespaceHandling; Description
Return Whitespace and SignificantWhitespace nodes. This is the default.
ToString [C#] public const WhitespaceHandling None; [C++] public: const WhitespaceHandling None; [VB] Public Const None As WhitespaceHandling [JScript] public var None : WhitespaceHandling; Description
Return no Whitespace and no SignificantWhitespace nodes.
ToString [C#] public const WhitespaceHandling Significant; [C++] public: const WhitespaceHandling Significant; [VB] Public Const Significant As WhitespaceHandling [JScript] public var Significant : WhitespaceHandling; Description
Return SignificantWhitespace nodes only.
WriteState enumeration (System.Xml)
ToString
Description
Specifies the state of the System.Xml.XmlWriter.
ToString [C#] public const WriteState Attribute; [C++] public: const WriteState Attribute; [VB] Public Const Attribute As WriteState [JScript] public var Attribute : WriteState; Description
An attribute value is being written.
ToString [C#] public const WriteState Closed; [C++] public: const WriteState Closed; [VB] Public Const Closed As WriteState [JScript] public var Closed : WriteState; Description
The System.Xml.XmlWriter.Close method has been called.
ToString [C#] public const WriteState Content; [C++] public: const WriteState Content; [VB] Public Const Content As WriteState [JScript] public var Content : WriteState; Description
The element content is being written.
ToString [C#] public const WriteState Element; [C++] public: const WriteState Element; [VB] Public Const Element As WriteState [JScript] public var Element : WriteState; Description
An element start tag is being written.
ToString [C#] public const WriteState Prolog; [C++] public: const WriteState Prolog; [VB] Public Const Prolog As WriteState [JScript] public var Prolog : WriteState; Description
The prolog is being written.
ToString [C#] public const WriteState Start; [C++] public: const WriteState Start; [VB] Public Const Start As WriteState [JScript] public var Start : WriteState; Description
A Write method has not been called.
XmlAttribute class (System.Xml)
ToString
Description
Represents an attribute. Valid and default values for the attribute are defined in a DTD or schema.
XmlAttribute
Example Syntax:
ToString [C#] protected internal XmlAttribute(string prefix, string localName, string namespaceURI, XmlDocument doc); [C++] internal: XmlAttribute(String* prefix, String* localName, String* namespaceURI, XmlDocument* doc); [VB] Protected Friend Sub New(ByVal prefix As String, ByVal localName As String, ByVal namespaceURI As String, ByVal doc As XmlDocument) [JScript] package function XmlAttribute(prefix : String, localName : String, namespaceURI : String, doc : XmlDocument); Description
Attributes
BaseURI
ToString
Description
Gets the base URI of the node.
A networked XML document is comprised of chunks of data aggregated using various W3C standard inclusion mechanisms and therefore contains nodes that come from different places. The BaseURI tells you where these nodes came from.
ChildNodes
FirstChild
HasChildNodes
InnerText
ToString
Description
Gets or sets the concatenated values of the node and all its children.
Setting this property replaces all the children with the parsed contents of the given string.
InnerXml
ToString [C#] public override string InnerXml {get; set;} [C++] public: _property virtual String* get_InnerXml( );public: _property virtual void set_InnerXml(String*); [VB] Overrides Public Property InnerXml As String [JScript] public function get InnerXml( ) : String;public function set InnerXml(String); Description
Gets or sets the markup representing just the children of this node.
This is also settable which replaces the children of the node with the parsed contents of the given string. The parsing is done in the current namespace context.
IsReadOnly
Item
Item
LastChild
LocalName
ToString
Description
Gets the local name of the node.
If the node does not have a prefix, LocalName is the same as System.Xml.XmlAttribute.Name.
Name
ToString [C#] public override string Name {get;} [C++] public: _property virtual String* get_Name( ); [VB] Overrides Public ReadOnly Property Name As String [JScript] public function get Name( ) : String; Description
Gets the qualified name of the node.
NamespaceURI
ToString [C#] public override string NamespaceURI {get;} [C++] public: _property virtual String* get_NamespaceURI( ); [VB] Overrides Public ReadOnly Property NamespaceURI As String [JScript] public function get NamespaceURI( ) : String; Description
Gets the namespace URI of this node.
An attribute does not inherit its namespace from the element it is attached to. If an at | | |