File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes Can you find the bug in <div> I do NOT get sample xml data[bookrss.xml]... RSS Client/Server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Can you find the bug in <div> I do NOT get sample xml data[bookrss.xml]... RSS Client/Server" Watch "Can you find the bug in <div> I do NOT get sample xml data[bookrss.xml]... RSS Client/Server" New topic
Author

Can you find the bug in <div> I do NOT get sample xml data[bookrss.xml]... RSS Client/Server

Leonidas Savvides
Ranch Hand

Joined: Jan 31, 2010
Posts: 403
Can you find the bug in <div> I do NOT get sample xml data[bookrss.xml]... RSS Client/Server?
I get
xhrequest.readyState == 4 && xhrequest.status == 200 ... 4 & 200 , but no data (local host run)
is this correct
1)var titles = xhrequest.responseXML.getElementsByTagName('title');
titles[0].firstChild.nodeValue+"</h1>";
2)xml file same folder as .java file in NETBEANS
client

server

bookrss.xml

<rss version="0.91">
<channel>
<title>hT</title>
<link>hL</link>
<description>hD</description>
<item>
<title>hT1</title>
<link>hL1</link>
<description>hD1</description>
</item>
<item>
<title>hT2</title>
<link>hL2</link>
<description>hD2</description>
</item>
<item>
<title>hT3</title>
<link>hL3</link>
<description>hD3</description>
</item>
</channel>
</rss>
Leonidas Savvides
Ranch Hand

Joined: Jan 31, 2010
Posts: 403
is it correct the server side script for provide the xml file?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Can you find the bug in <div> I do NOT get sample xml data[bookrss.xml]... RSS Client/Server