2.Well-formed and Valid Document.
CODING:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE bookdb[
<!ELEMENT bookdb (author)>
<!ELEMENT author (title,fname,lname)>
<!ELEMENT title (#PCDATA)>
<!ELEMENT fname (#PCDATA)>
<!ELEMENT lname (#PCDATA)>
]>
<!-- Well formed and Valid -->
<bookdb>
<author>
<title>Mr.</title>
<fname>Tony</fname>
<lname>Stark</lname>
</author>
</bookdb>
CODING:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE bookdb[
<!ELEMENT bookdb (author)>
<!ELEMENT author (title,fname,lname)>
<!ELEMENT title (#PCDATA)>
<!ELEMENT fname (#PCDATA)>
<!ELEMENT lname (#PCDATA)>
]>
<!-- Well formed and Valid -->
<bookdb>
<author>
<title>Mr.</title>
<fname>Tony</fname>
<lname>Stark</lname>
</author>
</bookdb>
Comments
Post a Comment