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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

java.net.MalformedURLException: no protocol:

Status
Not open for further replies.

jollyplay

Programmer
Dec 16, 2003
90
0
0
Hello,

I am new to xml and xml parser. when i try to run my
xml parser programe i got the following error

java.net.MalformedURLException: no protocol: priceList.xml.

i am using JAXP DOM parser.

Can u tell me,why i am getting this error. I think it may
be .xml file. The xml file is,

<?xml version=&quot;1.0&quot; ?>
<mySlideShow>
<myImage titled = &quot;Istanbul&quot; description = &quot;Istanbul / Turkey&quot; media = &quot;istanbul.jpg&quot;></myImage>

<myImage titled = &quot;Bodrum&quot; description = &quot;Bodrum / Turkey&quot; media = &quot;bodrum.jpg&quot;></myImage>

<myImage titled = &quot;Antalya&quot; description = &quot;Antalya / Turkey&quot; media = &quot;antalya.jpg&quot;></myImage>

</mySlideShow>

Thanks in advance.


With regards,
balachandar.
 
It could be the way you reference your priceList.xml file. Use url format. Try file:///dirname/priceList.xml and not just priceList.xml

Mike
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top