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".
<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>
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="1.0"?>
<!--document name: ccccc.xml-->
<!--?xml:stylesheet type="text/xsl" href="cccccc.xsl"?-->
<!--DOCTYPE resume SYSTEM "cccccc.dtd"-->
<!--?xml:stylesheet type="text/css" href="rrrrr.css"?-->
<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="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"/>
<e_mail>eeee</e_mail>
<e_mail>vvvvvv</e_mail>
<website>
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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.