Question

In: Computer Science

you will develop a small XML. XML is used for storing and exchanging information. XML is...

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:

  • Do some research and find out what information must be obtained from customer for effective customer relationship management. (The information includes customer name, email, phone numbers etc.).   
  • Decide on an XML file structure (also called schema) for storing all your order (products ordered + payment) information. No schema creation or validation is required.
  • Create an XML file including payment data using a text editor like notepad.
  • Syntax check your xml with an online validator (need to check for XML syntax only). XML Validator (External Link).
  • Save your XML into a file and submit before the deadline. (By default, notepad stores files with extension .txt and that is fine. Although XML files usually have the extension .xml, you may want to save the file with .txt extension to upload
  • 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.

Solutions

Expert Solution

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


Related Solutions

This is an XML exercise. Explain why you need LINQ to XML.
This is an XML exercise. Explain why you need LINQ to XML.
A small industrial contractor purchased a warehouse building for storing equipment and materials that are not...
A small industrial contractor purchased a warehouse building for storing equipment and materials that are not immediately needed at construction job sites. The cost of the building was $100,000 and the contractor has just made an agreement with the seller to finance the purchase over a 5-year period. The agreement state that monthly payments will be made based on a 30-year amortization, but the balance owed at the end of year 5 must be paid in a lump-sum "balloon" payment....
What is the purpose of gathering and exchanging information? Discuss in 100–120 words.
What is the purpose of gathering and exchanging information? Discuss in 100–120 words.
Explain the concept of information gain in the Classification Algorithms. How is it used to develop...
Explain the concept of information gain in the Classification Algorithms. How is it used to develop a decision tree?
Write a C++ program for storing information on on a series of balls collected by a...
Write a C++ program for storing information on on a series of balls collected by a person. The balls should have these characteristics: 1. Diameter in mm 2. Color 3. if the texture of the surface is smooth or rough 4. an identification id/number The program should allow the person to enter the values for the balls' attributes as they are entered in a database. The program should then offer the choice to save all new data into a file....
Write a C++ program for storing information on on a series of balls collected by a...
Write a C++ program for storing information on on a series of balls collected by a person. The balls should have these characteristics: 1. Diameter in mm 2. Color 3. if the texture of the surface is smooth or rough 4. an identification id/number The program should allow the person to enter the values for the balls' attributes as they are entered in a database. The program should then offer the choice to save all new data into a file....
How are XML and XBRL used in e-business? Share a specific example of each language and...
How are XML and XBRL used in e-business? Share a specific example of each language and evaluate the advantages and potential concerns for its use.
Analyze the pros and cons of cloud-based technologies which are used for storing data at the...
Analyze the pros and cons of cloud-based technologies which are used for storing data at the personal, corporate, and governmental level.  
Run Length Encoding It is sometimes important to minimise the space used for storing data. This...
Run Length Encoding It is sometimes important to minimise the space used for storing data. This idea of data compression can be implemented in many forms. One of the simpler techniques is known as Run Length Encoding (RLE). RLE takes advantage of the fact that in many cases, data will contain a run of repeated 0s or 1s, and these runs can be represented by a shorter code. RLE is a technique used in some image or sound formats to...
HashMap is a Map based collection class that is used for storing Key & value pairs,...
HashMap is a Map based collection class that is used for storing Key & value pairs, it is denoted as HashMap<Key, Value> or HashMap<K, V>. This class makes no guarantees as to the order of the map. It is similar to the Hashtable class except that it is unsynchronized and permits nulls(null values and null key). 5.Write a Java program to test if a map contains a mapping for the specified key.a.Add values in the Hash mapb.Printthe mapc.Check for a...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT