I'm making a java applet for a project. I'm trying to get access to a database and receive information. I cannot and will not use jdbc for various reasons. So I'm trying to use xml parsing to receive information.
I'm xml parsing with DOM. I have php codes so I can get data from my mysql database.
This is my php codes: http://prntscr.com/p0hul
What the xml should look like:
<XML>
<char>
<id>
1
</id>
<name>
Bob
</name>
</char>
</XML>
What my Java code looks like: http://prntscr.com/p0igl
So right now I'm really confused. It looks like my java code is reading what the php code has, not the xml.
Can someone point me to the right direction? Thanks in advance
phpfile, you have directly given the file to parser. PHP file should be on some server with its response type astext/xml. You can see how to execute php scripts here tuxradar.com/practicalphp/2/5/0