In: Computer Science
you will develop a small XML.
XML is used for storing and exchanging information. XML is the most commonly used file format for e-business. It is important to have a grasp of XML.
In XML, you can choose your own tag names. For example, for representing name of a product, you can use <pname>, <prodName> or <productname> as you like. XML has to follow certain syntax rules. Gentle Introduction to XML (External Link) provides more information about XML. Do the following:
Below is a sample XML file to start with:
<?xml version="1.0"?>
<crmDB>
<customer>
<customerName>John Doe</customerName>
<phoneNumber>3092980000</phoneNumber>
</customer>
</crmDB>
Obviously, you can choose whatever tag names you like and the information you choose to add for effective customer relationship management will be different as well.
XML File
<?xml version="1.0"?>
<crmDB>
<customer>
<customerName>John Doe</customerName>
<phoneNumber>3092980000</phoneNumber>
<email>[email protected]</email>
<productName>TV</productName>
<productPrice>10,000</productPrice>
<paymentMethod>Cash</paymentMethod>
</customer>
<customer>
<customerName>Alex Fayer</customerName>
<phoneNumber>12453532</phoneNumber>
<email>[email protected]</email>
<productName>Fridge</productName>
<productPrice>15,000</productPrice>
<paymentMethod>Card</paymentMethod>
</customer>
<customer>
<customerName>John Snow</customerName>
<phoneNumber>132485302</phoneNumber>
<email>[email protected]</email>
<productName>Laptop</productName>
<productPrice>50,000</productPrice>
<paymentMethod>Cash</paymentMethod>
</customer>
</crmDB>
Validation done by XML Validator