DTD and Schema difference constraints constraints

DTD and Schema difference constraints constraints

    

    1 difference: When the xml file specifies a DTD constraints , the only designated a ;

        But if you specify Schema constraint , then because there is a name space, you can specify multiple

 

    The difference between 2: Schema follow xml syntax , and DTD and xml are using their own special syntax

 

    The difference between 3: schema supports more than DTD data types

 

    The difference between 4: DOM and SAX parsing easier way to resolve schema

 

Guess you like

Origin www.cnblogs.com/javaisbest/p/11588030.html