Document Type Definition
. It characterizes the lawful building pieces of a XML report. It is utilized to characterize report structure with a rundown of legitimate components and properties.
XML schema
is a dialect which is utilized for communicating requirement about XML records. There are such a large number of diagram dialects which are utilized now a days for instance XSD (XML schema definition).Following is an example for the schema file.
student.xsd
[xml]
<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://www.splesson.com"
xmlns="http://www.splesson.com"
elementFormDefault="qualified">
<xs:element name="student">
<xs:complexType>
<xs:sequence>
<xs:element name="firstname" type="xs:string"/>
<xs:element name="lastname" type="xs:string"/>
<xs:element name="email" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
[/xml]
Methods | Description |
---|---|
getParameter(String name) | It gives back the estimation of parameter of client ask for sort on the content record and the arrival sort is String. |
getParameterValues(String name) | It gives back a variety of string which contains all parameter names. It is essentially utilized for the drop down box and it returns String. |
getParameterNames() | It returns an enumeration. |
getContentLength() | It returns size of data content and return type is int. |
getServerPort() | It returns port number and the return type is int. |
getServerName() | It returns host name of server and the return type is string. |
getCharacterEncoding() | It returns the set encoding request otherwise it shows null and return type is String. |
getCharacterQueryString() | It returns the request URL path and the return type is String. |
getInputStream() | It gets the information stream of the subprocess. The stream gets information from the standard output stream and the return type is ServletInputStream. |