Tuesday 13 August 2013

IDE

It stands for Integrated Development Environment
·         It is used to development application on faster that is reduced the development time and it guides to write the proper syntax.
·          
·         Ex:  
XML, SPY, STYLUS STUDIO


Procedure to open XML SPY IDE:

1.       Click on start->All Programs->Altova XML SPY (Press Enter)
Procedure to create a DTD Document.

1.       Click on File->New->select DTD : Document Type Defn(press enter)
2.       Click on OK button

3.       Opens a DTD Doc

<!ELEMENT institute (student +)>
<!ELEEMENT student(rollno, name,mobileno*, address?)>
<!ELEMENT rollno(#PCDATA)>
<!ELEMENT name(#PCDATA)>
<!ELEMENT mobileno(#PCDATA)>
<!ELEMENT address(hno,colony, city)>
<!ELEMENT hno(#PCDATA)>
<!ELEMENT colony(#PCDATA)>
<!ELEMENT city(#PCDATA)>
<!ATTLIST student course (xml/html/java/.net)”XML”>
<!ATTLIST student CDATA#IMPLIED >
<!ATTLIST address state CDATA #FIXED “AP”>

Save the above document by rules.DTD(any name)

Procedure for creating XML Document

1.       Click ->file ->new->XML Extensible mark up langue
2.       Click on OK
1.       TO create  XML Document containing External DTD Rules then select a DTD, click on OK
2.       Specify the  location of the DTD document and click on OK
3.       XML Document following Externla DTD rules:
<!DOCTYPE institute SYSTEM “D:\rules.dtd”>
<institute>
 <student course=”html” type=”regular”>
 <rollno>100</rollno>
<name>raj</name>
<mobileno>9849186838</mobileno>
<mobileno>961455660</mobileno>
<address state=”AP”>
<hno>420</hno>
<colony>Wilson</colony>
<city>hyd</city>
</address>
</student>

</institute>



·         We can write the DTD rules internal or external Doc but it is always recommended to write External DTD rules

Rules for Creating an XML Document Storing Products information.
1.       Create an element called market as the root tag
2.       Create an element called product under <market> tag which should be present minimum one time.
Create pid, pname, price, describe as child tags to product tag.
3.       The pid and pname must be present exactly one time.
4.       The price element must be available one (or) more time
5.       The desc element can be present 0(zero) or 1 time
6.       Create an attribute called qualities under product tag which is mandatory
7.       Create an attribute called barcode under product which is optional
<!ELEMENT Market (product +)>
<!ELEMENT product (pid, pname,price+,desc?)>
<!ELEMENT pid(#PCDATA)>
<!ELEMENT PNAME(#PCDATA)>
<!ELEMENT PRICE(#PCDATA)>
<!ELEMENT desc (#PCDATA)>
<!ELEMENT product quantity CDATA #REQUIRED>
<!ATTLIST product quantity CDATA #REQUIRED>
<!ATTLIST product barcode CDATA #IMPLIED>

PROCEDURE TO OPEN XML SPY IDE

No comments:

Post a Comment