• XML Document
  • Microsoft Word Applied xml a toolkit for Programmers Wiley doc




    Download 2,96 Mb.
    Pdf ko'rish
    bet55/131
    Sana14.05.2024
    Hajmi2,96 Mb.
    #232039
    1   ...   51   52   53   54   55   56   57   58   ...   131
    Bog'liq
    Ceponkus, Hoodbhoy - Applied XML - Toolkit for Programmers

    Figure 3.1:
    A typical XML system.
    The actual data that an XML system processes comes from an XML document that 
    makes use of a rich description of information using the XML syntax. To ensure that the 
    information is actually expressed in the XML syntax, the document is run through an XML 
    processor called an XML parser that rigorously checks whether that document is 
    syntactically correct and then replicates the structure of the information in memory. This 
    memory representation is then ready for customized processing through an XML 
    application.
    Often, we are interested in information being more than just syntactically correct. 
    Sometimes we want it to possess a certain logical and physical structure. Certainly from 
    a programmer’s perspective, most problems arise from information that though 
    syntactically correct is not necessarily logically or structurally correct (hence the many, 
    many lines of error checking). The way to define the structure of an XML document is to 
    create a Document Type Definition
     
    (DTD). When a DTD is either linked to or embedded 
    in an XML document, the parser performs additional conformance checks of the XML 


    - 50 -
    document to determine its structural conformance. Once cleared for both syntactical 
    correctness and structural integrity, the parser presents the XML application with an in-
    memory representation of the information.
    Let’s take a look at each one of these in more detail.
    XML Document
    As we mentioned earlier, an XML document is based on entities that can consist of 
    content and markup. Content is the actual information, such as the price of melons, a 
    paragraph of an essay, or the headline of a newspaper. Content is also referred to as 
    character data
    .
    Content is encased in markup. If you are familiar with HTML, then you already know that 
    markup in the computer world consists of tags, such as start tags, end tags, and 
    comments. We go into much more detail later on in this chapter.

    Download 2,96 Mb.
    1   ...   51   52   53   54   55   56   57   58   ...   131




    Download 2,96 Mb.
    Pdf ko'rish

    Bosh sahifa
    Aloqalar

        Bosh sahifa



    Microsoft Word Applied xml a toolkit for Programmers Wiley doc

    Download 2,96 Mb.
    Pdf ko'rish