[Solved]Keep Getting Error Message Xml Code Page Contains Following Errors Error Line 1 Column 15 Q37149908
I keep on getting this error message with this xml code
This page contains the following errors:
error on line 1 at column 15: String not started expecting ‘ or”
Below is a rendering of the page up to the first error.
I can’t find the error. The XML and XSL files are below.
Thanks for the help.
<?xml version=“1.0”?>
<?xml-stylesheet type=“text/xsl” href=“CAFE.xsl”?>
<CAFES>
<CAFE CAFE_TYPE=“Primarily Take-Out”>
<CAFE_NAME>New Mexico</CAFE_NAME>
<FOOD_QUALITY>Average</FOOD_QUALITY>
<ENVIRON>Great!</ENVIRON>
<COST_RATING>$3.50 per meal</COST_RATING>
<COMMENTS>Should order well in time.</COMMENTS>
</CAFE>
<CAFE CAFE_TYPE=“Brunch”>
<CAFE_NAME>Moscow</CAFE_NAME>
<FOOD_QUALITY>Outstanding</FOOD_QUALITY>
<ENVIRON>Average</ENVIRON>
<COST_RATING>$8 per person</COST_RATING>
<COMMENTS>A good place for weekendbrunch.</COMMENTS>
</CAFE>
<CAFE CAFE_TYPE=“FormalDinner”>
<CAFE_NAME>Spring in Paris</CAFE_NAME>
<FOOD_QUALITY>Excellent</FOOD_QUALITY>
<ENVIRON>Fantastic</ENVIRON>
<COST_RATING>$19 per plate</COST_RATING>
<COMMENTS>Got to be rich to go there.</COMMENTS>
</CAFE>
<CAFE CAFE_TYPE=“Asian Grill”>
<CAFE_NAME>Big Saigon</CAFE_NAME>
<FOOD_QUALITY>Good</FOOD_QUALITY>
<ENVIRON>OK</ENVIRON>
<COST_RATING>$7 per plate</COST_RATING>
<COMMENTS>Good for quick lunch.</COMMENTS>
</CAFE>
<CAFE CAFE_TYPE=“Take-Out”>
<CAFE_NAME>Aby’s Diner</CAFE_NAME>
<FOOD_QUALITY>Fantastic</FOOD_QUALITY>
<ENVIRON>Splendid</ENVIRON>
<COST_RATING>$7 per plate</COST_RATING>
<COMMENTS>Always eat out at Aby’sDiner.</COMMENTS>
</CAFE>
</CAFES>
<?xml version=“1.0”?>
<!– XML Declaration by Stephanie Anderson –>
<xsl:stylesheetxmlns:xsl=“http://www.w3.org/1999/XSL/Transform”version=”1.0″>
<!– Declaration that the document is a stylesheet –>
<xsl:template match=“/“>
<!– Apply template from the root node –>
<HTML>
<BODY>
<P><B>This is an XMLDocument on View! </B></P>
<P><EM>It uses XSLSheet </EM></P>
<P>These XML documents havebeen produced </P>
<P>using only TextEdit andSafari 12.1 </P>
<TABLE border=“1”>
<! — Set up the first, that is, the header row –>
<TR>
<TD><B>CafeType</B></TD>
<TD><B>CafeName</B></TD>
<TD><B>Food</B></TD>
<TD><B>Environment</B></TD>
<TD><B>MealCost</B></TD>
<TD><B>Comments</B></TD>
</TR>
<xsl:for-eachselect=“CAFES/CAFE”>
<!– Set up a loop where for each occurrence of the form definedin the “select”, execute the following steps –>
<TR>
<TD><xsl:value-ofselect=“@CAFE_TYPE”/></TD>
<!– use the @ symbol to pull values of attributes –>
<TD><xsl:value-ofselect=“CAFE_NAME”/></TD>
<!– “value-of” pulls the value of the contents specified in the“select” attribute –>
<TD><xsl:value-ofselect=“FOOD_QUALITY”/></TD>
<TD><xsl:value-ofselect=“ENVIRON”/></TD>
<TD><xsl:value-ofselect=“COST_RATING”/></TD>
<TD><xsl:value-ofselect=“COMMENTS”/></TD>
</TR>
</xsl:for-each>
<!– close for-each loop –>
</TABLE>
</BODY>
</HTML>
</xsl:template>
<!– close template tag –>
</xsl:stylesheet>
<– close stylesheet tag –>
Expert Answer
Answer to I keep on getting this error message with this xml code This page contains the following errors: error on line 1 at colu… . . .
OR

