Question

I am having an issue with XML code as it says "error on line 86 at...

I am having an issue with XML code as it says

"error on line 86 at column 10: Opening and ending tag mismatch: name line 0 and phone"

<?xml version="1.0" encoding="utf-8"?>

<catalog>

<product category="Mobile Phone">

<mfg>Nokia</mfg>

<model>8890</model>

<description>

Intended for EGSM 900 and GSM 1900 networks..

</description>

<batterypower>3000</batterypower>

</product>

<product category="Mobile Phone">

<mfg>Micromax</mfg>

<model>canvas</model>

<description>

Inteneded for EGSM 900 and GSM 850 networks..

</description>

<batterypower>2900</batterypower>

</product>

<product category="Mobile Phone">

<mfg>Intex</mfg>

<model>aqua</model>

<description>

Intended for EGSM 2100 and GSM 1500 networks..

</description>

<batterypower>2300</batterypower>

</product>

<product category="Mobile Phone">

<mfg>Samsung</mfg>

<model>Galaxy</model>

<description>

Intended for EGSM 1200 and GSM 2000 networks..

</description>

<batterypower>2500</batterypower>

</product>

<product category="Mobile Phone">

<mfg>Moto</mfg>

<model>E5 plus</model>

<description>

Intended for EGSM 1000 and GSM 2000 networks..

</description>

<batterypower>2100</batterypower>

</product>

<phone>

<name>phone 1</name>

<price>$5.95</price>

<description>

The customer accessories

</description>

<calories>650</calories>

</phone>

<phone>

<name>ear plug</name>

<price>$7.95</price>

<description>

The customer accessories

</description>

<calories>900</calories>

</phone>

<phone>

<name>charger accessories</name>

<price>$8.95</price>

<description>

The customer accessories

</description>

<calories>900</calories>

</phone>

<phone>

<name> USB</name>

<price>$4.50</price>

<description>

The customer accessories

</description>

<calories>600</calories>

</phone>

<phone>

<name>model<name>

<price>$6.95</price>

<description>

The customer accessories

</description>

<calories>950</calories>

</phone>

</catalog>

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Error is mainly due to the opening and closing tags of the nodes.

In the last Node of Phone, Ending Name tag should be closed with '/'

It should be like <name>model</name>

Add a comment
Know the answer?
Add Answer to:
I am having an issue with XML code as it says "error on line 86 at...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • I need help. Valley Vineyard Conceptual Model Case Read the case then create an entity-relationship diagram...

    I need help. Valley Vineyard Conceptual Model Case Read the case then create an entity-relationship diagram that captures the essence of the problem domain. Identify the entities (diagrammed in a rectangle box) Establish and label the relationships (diagrammed in a diamond) Determine the cardinalities Add the attributes, if you diagram is too busy the attributes can be on a separate page. Be sure to note any assumptions you have made. CASE: Valley Vineyard’s customers are mainly restaurants and wine shops...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT