XML Schema-differences between FIXML and SVG

Source: Internet
Author: User
Tags stock prices
FIXMLFIX is one of the data exchange formats among many enterprises. it is used to exchange information during business activities. Such exchange information is usually very important, such as the exchange of transaction payment data, stock prices and business information. The information to be transmitted is sometimes a very small package, and sometimes a large data segment. The traditional format of such information exchange is key-value pairs. this form of information FIXMLFIX is one of the data exchange formats among many enterprises and is used to exchange information during business activities. Such exchange information is usually very important, such as the exchange of transaction payment data, stock prices and business information. The information to be transmitted is sometimes a very small package, and sometimes a large data segment. The traditional format of such information exchange is key/value pairs. FIXML
FIX is one of the data exchange formats among many enterprises. it is used to exchange information during business activities. Such exchange information is usually very important, such as the exchange of transaction payment data, stock prices and business information.
The information to be transmitted is sometimes a very small package, and sometimes a large data segment. The traditional format of this type of information exchange is key/value pairs, which is very inefficient. XML can simplify the transmitted data structure, especially complex data.
In XML-based optimized versions, developers try to compress the size of data files and make the data easier to read. The stock data is compressed to 1/4 of the size of the old format.
In addition to typical commercial applications, FIXML is not suitable for other fields. However, if FIXML is used to improve business efficiency, everyone will benefit from the results. SVG
SVG is an XML standard used to describe plotting. SVG can be used to describe the line, shape, position, and relationship between them. The most attractive thing is that the information can be output to the desired format, including a scalable image and a fixed image.
SVG solves some important problems in the traditional drawing process. It is generally completed using a special drawing program. Sharing information and plotting between different programs is very difficult. Saving as SVG means that any application that supports SVG can read and process these files.
Another problem with plotting is that when outputting it to the most common (especially on the Web) format, it must be translated into a bitmap format (such as JPEG or PNG) before being displayed or combined with other documents ). This traditional method has some problems. First, the original drawing must be clearly (usually manually) exported as a bitmap format.
Secondly, because the bitmap format is based on the pixel-by-pixel representation of the original plot, the size and resolution matching with the output target must be carefully selected to ensure the image quality. For example, the screen resolution requires 72 dpi (or 96 dpi) to match the standard resolution of most monitors. 300 to 2400 DPI is required for output printing. Therefore, the image file generated may be very large compared with the original file.
Although vector-based formats already exist before PostScript and Encapsulated PostScript, they have high CPU requirements and are not suitable for screen display.
Like any other vector image format, SVG also uses a list of shapes to describe the image content, rather than generating pixel representation. For example, you only need to give the upper left corner of the rectangle as the starting point, and add the length of the two sides. The image description is expressed in XML. Labels include straight lines, rectangles, polygon, and circles. you can control the style and format of these elements.
Listing 9 provides an example. A rectangle, a transparent circle, and a triangle are drawn.
Listing 9. simple graphics

  
 
 
  
  
  
 



Figure 1 shows the bitmap of the generated image.
Figure 1. bitmap version of the image


The file describing images in SVG format is only over 500 bytes, and PNG is close to 9 KB.
SVG makes drawing smaller, easier to use, and more compatible with different applications.

The above is a detailed description of the differences between FIXML and SVG in XML mode. For more information, see other related articles in the first PHP community!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.