professional asp net 1.0 xml with csharp

390 280 0
professional asp net 1.0 xml with csharp

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

[...]... Try Professional ASP. NET 1.0, Special Edition (Wrox Press, 1-86100-703-5) if that is what you need Here, we'll focus on the XML and Web Services features of ASP. NET 26 Introduction to XML Technologies The Role of XML in ASP. NET The NET Framework itself makes use of XML internally in many situations, and thus it allows XML to be easily used from our applications In short, XML pervades the entire NET. .. method: XmlDocument xmlDOMDoc = new XmlDocument(); xmlDOMDoc.PreserveWhitespace = true; xmlDOMDoc.Load("c:\\test .xml" ); Now whitespace will be preserved, even without the xml: space attribute in the XML file 30 Introduction to XML Technologies Likely Changes in XML 1.1 On April 25, 2002, the W3C announced the last call working draft of XML 1.1 (codenamed Blueberry), at http://www.w3.org/TR /xml1 1/ The XML. .. first class member of the NET Framework, ASP. NET allows any Framework language to be used for web development, be it Visual Basic NET or C# NET or JScript NET ASP. NET makes web programming very similar to standard Windows application development in NET In ASP. NET, the separation of presentation from the program logic is achieved via the concept of codebehind files, where the main ASPX page has a corresponding... using System .Xml; namespace ConsoleApplication1 { class Class1 { [STAThread] static void Main(string[] args) { XmlDocument xmlDOMDoc = new XmlDocument(); xmlDOMDoc.Load("c:\\test .xml" ); xmlDOMDoc.Save(Console.Out); } } } There are two ways we could preserve the whitespace The first is to add the xml: space attribute to the XML document Change the c:\test .xml file as shown below: ... mix the presentation with the logic, causing code to become less maintainable and harder to understand Traditional ASP does not natively support XML MSXML can be used from within ASP pages to process the XML documents In addition, every time the ASP page is called, the engine interprets the page ASP. NET changes all this It runs in a compiled environment, such that the first time an aspx page is called... in Chapter 8 SQLXML Managed Classes Although not part of the core NET Framework, the SQLXML managed classes are available as a separate download from http://www.microsoft.com/sql/techinfo /xml/ default .asp These classes form part of the Microsoft.Data.SqlXml namespace and allow access to SQL Server 2000's native and extended XML features SQLXML managed classes can be used in our ASP. NET applications... serialized as XML, and conversely it can be populated using data from an XML document The NET data access classes are present in the System.Data namespace and its sub-namespaces Another marked improvement in ADO .NET is the ability to easily bind the data to graphical controls We'll talk more about the role of ADO .NET and the DataSet when dealing with XML in Chapter 6 The config Files With ASP. NET, Microsoft... short, XML pervades the entire NET Framework, and ASP. NET' s XML integration can be used to build highly extensible web sites and Web Services In this section, we'll briefly look at the XML integration in the NET Framework, specifically in ASP. NET The System .Xml Namespace This is the core namespace that contains classes which can: ❑ Create and process XML documents using a pull-based streaming API (Chapter... feature is only available in C#, and none of the other NET languages support it XML 1.0 Syntax The XML 1.0 (Second Edition) W3C recommendation (http://www.w3.org/TR/REC -xml) defines the basic XML syntax As we know, XML documents are text documents that structure data, and bear some similarity to HTML documents However as noted earlier, tags in XML, unlike tags in HTML, are completely user-definable:... whitespace can be ignored 29 Chapter 1 With MSXML 4.0 and the NET XML classes in the System .Xml namespace, we can use the PreserveWhitespace property in the code to indicate if the whitespace should be preserved or not In other words, if we would like to preserve the whitespace for an XML document, we can either use the xml: space attribute with the elements in the XML document or set the PreserveWhitespace . Web Services Case Study - An E-Commerce Business Engine 1 9 49 93 17 7 215 245 267 3 01 325 367 413 Professional ASP. NET XML with C# Chris Knowles Stephen Mohr J Michael Palermo. Index Introduction to XML Technologies XmlReader and XmlWriter XmlDocument XPath Transformations ADO. NET SQL Server 200 0 and SqIXml Managed Classes E-Business and XML XQuery Performance. Development ❑ XML 1. 0 Syntax ❑ Processing XML ❑ XML Data Binding and XML Serialization ❑ Validating XML ❑ Navigating, Transforming, and Formatting XML ❑ Other Standards in the XML Family ❑ XML Security

Ngày đăng: 29/04/2014, 15:15

Tài liệu cùng người dùng

  • Đang cập nhật ...

Tài liệu liên quan