XML standard

xiaoxiao2021-03-06  87

There are several standards in the XML world. In addition to basic XML standards, other standards define patterns, style sheets, links, web services, security, and other important projects. This chapter introduces the most popular XML standards and pointed out the reference information for finding other standards. XML specification

This specification (located in w3.org/tr/rec-xml) defines the basic rules of the XML document. All XML document rules discussed earlier in this tutorial are defined in this specification.

In addition to the basic XML standard, the namespace specification is another important part of XML. You can also find namespace standards in W3C: w3.org/tr/rec-xml-names/. XML Schema

The XML Schema language is defined as three parts:

Getting started in W3.ORG/TR/Xmlschema-0, which introduces the XML mode document and its design use; the standard of the document structure is located in w3.org/tr/xmlschema 1, which shows how to define the structure of the XML document; data type The standard is located in w3.org/tr/xmlschema-2, which defines some common data types and creating new types of rules. This tutorial briefly introduces the pattern in defining document content; if you need to know complete details if you have all things you can do with XML mode, then you'd better read "Getting Started".

XSL, XSLT and XPath

Extensible Stylesheet Language (XSL) defines a set of elements (called formatted objects), which describes how to format data. For clarity, this standard is usually referred to as XSL-FO to distinguish between XSLT. Although it is mainly designed to generate high quality printable documents, you can also generate audio files from XML using formatted objects. The XSL-FO standard is located in w3.org/tr/xsl/.

Extensible Stylesheet Language For Transformation (XSLT) is an XML vocabulary that describes how to convert an XML document into a niece. This standard is located in w3.org/tr/xslt (there is no slash symbol).

XPath (XML Path Language, XML Path Language) is a syntax that describes the location in the XML document. You use the XPath in the XSLT style table to describe which part of the XML document you want to convert the XML document. XPath is also used in other XML standards, which is why it is a standard for the XSLT. XPath is defined in w3.org/tr/xpath (there is no slash symbol).

DOM

The document object model defines how to convert an XML document to a tree structure that resides in memory. DOM has definitions in many specifications of W3C:

The core DOM defines the DOM itself, tree structure, and the various nodes and exceptions found when the code is traversed. Complete specification in w3.org/tr/Dom-level-2-core/. Event definitions The events that can occur, and how to handle these events. This specification is attempting to coordinate the difference between the NetScape and the Internet Explorer browser version 4 has been supported. This specification is located in w3.org/tr/dom-level-2-events/. Style Defining Programs Access the XSLT style sheet and CSS style sheet. This specification is located in w3.org/tr/Dom-level-2-Style/. Traversing and scope definitions some interfaces that allow the program traversal tree or define the node range in the tree. You can find a complete specification at w3.org/tr/dom-level-2-traversal-range/. The view is the document itself defines the AbstractView interface. See w3.org/tr/Dom-level-2-views/ for more information. SAX, JDOM and JAXP

Simple API for XML defines some events and interfaces for interaction with the XML parser that conforms to SAX. A complete SAX specification can be found on www.saxproject.org.

Jason Hunter and Brett Mclaughlin created a JDOM project in jdom.org/. At the JDOM site, you can find the code, sample programs, and other tools that can help you get started. (For an article introducing JDOM on developerWorks, see Resources).

An important point on SAX and JDOM is that both are from XML developer communities, not standard organizations. The extensive acceptance of them is to actively participate in the world's XML developers.

You can find all content related to JAXP in java.sun.com/xml/jaxp/.

Link and reference

There are two standards for links and references in the XML world: XLINK and XPoInter:

XLINK (XML Link Language, XML Linking Language) Defines the various methods that links different resources together. You can perform a normal point-to-point link (like an HTML element) or extended link, the latter can include a multipoint link, a rule of the meaning of a third party and the definition of the meaning of a given link. The XLINK standard is located in w3.org/tr/xlink/. XPointer (XML Pointer Language) uses XPath as a method referenced by other resources. It also includes some extensions to XPath. This specification can be found at www.w3.org/tr/xptr/.

safety

There are two important criteria for processing XML document security. One is the XML Digital Signature standard (W3.org/tr/xmldsig-core), which defines the XML document structure for digital signatures. You can create an XML digital signature for any type of data, whether it is an XML document, HTML file, plain text, binary data or other things. You can use a digital signature to verify that a specific file has not been modified since the signature. If the data you want to sign is an XML document, you can embed the XML document into the signature file itself, which makes the data and signature processing very simple.

Another standard is used to encrypt the XML document. We can write XML documents to people to read and understand, although this is good, but if the document falls into the hands of the bad guys, it will cause trouble. The XML encryption standard (W3.org/tr/xmlenc-core defines how to encrypt the part of the XML document.

Use these standards together and you can use the XML document with confidence. I can digitally sign an important XML document to generate a signature containing the XML document itself. Then I can encrypt this document (using my private key and your public key) and send it to you. When you receive a document, you can decrypt this document with your private key and my public key; this can let you know that it is the document I sent. (If you need, you can also prove that I send a document). Once you decrypt the document, you can use this digital signature to determine that the document has not been modified. Web service

Web services are a new important application. The web service is a code that can be discovered, described and accessed by XML. There are many activities in this field, but there are three main XML standards for web services:

SOAP: The Simple Object Access Protocol, SOAP defines an XML document format, which describes how to call a way of remote code. My app creates an XML document describing the method I want to call and passes all the required parameters, and then the application sends the XML document to that code over the network. The code receives the XML document, explains it, calls the method I requested, and then send back the XML document describing the result. SOAP Specification 1.1 is located in w3.org/tr/SOAP/. Please visit w3.org/tr/ to learn all activities related to SOAP in W3C. WSDL: Web Services Description Language is an XML vocabulary that describes Web services. It is possible to write a section to receive the WSDL document and then call the code from the unused web service. The information defined in the WSDL file defines the name of the web service, the name of its method, the parameters of these methods, and other details. You can find the latest WSDL specification at W3.org/tr/wsdl (no slash symbol). UDDI: Unified Description, Discovery, Discovery, Discovery, and Integrations defines the SOAP interface to the Web Service Registry. If you have a piece of code hopes to deploy as a web service, the UDDI specification defines how to add your service description to the registry. If you are looking for a piece of code that provides a certain function, the UDDI specification defines how to query the registry to find the information you want. All data sources on UDDI can be found in uddi.org.

Other standards

There are still many other XML standards, I have not introduced it here. In addition to the scalable vector graphic (www.w3.org/tr/SVG /), SMIL (synchronous multimedia integration language, Synchronized MultiMedia Integration Language) (www.w3.org/tr/smil20/) In addition to the wide application, there are many industry-specific standards. For example, the HR-XML Association has defined many XML standards for human resources; you can find those standards in HR-XML.ORG.

Finally, I want to find an excellent source of information about the XML standard, please visit the XML repository on Xml.org/xml/registry.jsp. The site is characterized by hundreds of standards for all walks of life.


New Post(0)