Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Unterminated string constant.

Status
Not open for further replies.

teky

Programmer
Mar 24, 2000
55
US
I am working on an XML file.
Everything seems to be fine but
when I try to open the XML file
in the browser I get the following
javascript error "Unterminated string
Constant".

Thanks,
Vijay.



 
Hi Dianal,

Here is the code.
I am getting the error at <resume>

<?xml version=&quot;1.0&quot; ?>
<!--document name: ccccc.xml-->
<?xml:stylesheet type=&quot;text/xsl&quot; href=&quot;cccccc.xsl&quot;?>
<!--DOCTYPE resume SYSTEM &quot;cccccc.dtd&quot;-->
<!--?xml:stylesheet type=&quot;text/css&quot; href=&quot;rrrrr.css&quot;?-->

<resume>

<section>
<personal>
<description>This section contains basic contact information - my home contact information (address and telephone numbers) as well as e-mail address and website address.
</description>
<name></name>
<address type='home'>
<street>vvvvvv</street>
<city>xxxxx</city>
<state>ffffff</state>
<zip_code>ttttttt</zip_code>
<country>USA</country>
</address>
<contact>
<home_phone id='homePhone'>dddddd</home_phone>
<cell_phone id='cellPhone'>ddddd</cell_phone>
<fax_phone id='fax'></fax_phone>
<e_mail>eeee</e_mail>
<e_mail>vvvvvv</e_mail>
<website> </contact>
</personal>
</section>
......
<section>
.......
</section>

<section>
........
</section>

</resume>
 
Hello,
I have tested cutted version of your xml.
I commented line with reference to xsl.
There was unnecessary ; in <;/website> - but I guess it is from tek-tips posting form.

And I didn't get any error.

Try also these steps in your code and see where exactly is the error (in which section). I would suggest to remove all sections then adding one by one to your xml. If nothing wrong there, then again test with your xsl file. If the error comes again, check the xsl file.

<?xml version=&quot;1.0&quot;?>
<!--document name: ccccc.xml-->
<!--?xml:stylesheet type=&quot;text/xsl&quot; href=&quot;cccccc.xsl&quot;?-->
<!--DOCTYPE resume SYSTEM &quot;cccccc.dtd&quot;-->
<!--?xml:stylesheet type=&quot;text/css&quot; href=&quot;rrrrr.css&quot;?-->
<resume>
<section>
<personal>
<description>This section contains basic contact information - my home contact information (address and telephone numbers) as well as e-mail address and website address.
</description>
<name/>
<address type=&quot;home&quot;>
<street>vvvvvv</street>
<city>xxxxx</city>
<state>ffffff</state>
<zip_code>ttttttt</zip_code>
<country>USA</country>
</address>
<contact>
<home_phone id=&quot;homePhone&quot;>dddddd</home_phone>
<cell_phone id=&quot;cellPhone&quot;>ddddd</cell_phone>
<fax_phone id=&quot;fax&quot;/>
<e_mail>eeee</e_mail>
<e_mail>vvvvvv</e_mail>
<website> </contact>
</personal>
</section>
</resume>

Wish you success!
D.
 
Thanks Dianal.
One more question I wanted to ask you is about the
XML Validator. I remember seeing one by Microsoft.
Can you tell me if there are any XML Validators I can
use now.

Thanks.
Teky.


 
Hello again,
I forgot the tool I'm using mostly.
I've downloaded evaluation version of XMLspy from
The tool is integrated environment for editing, validation and browsing of xml, xsl, html, asp pages.
D.
 
Hi Dianal,

The code worked when I commented out
the line containing the reference to
the xsl file.

I think I should be checking my xsl file.

Thanks for sending me the validators.

Vijay.


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top