DB Error: 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 2

SELECT * FROM `user` the_table WHERE the_table.userid = DB Error: 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 2

SELECT * FROM `user` the_table WHERE the_table.userid = What's the best way to parse an XML file into HTML? - iTechForums
Login
Search   Moderators Wanted: If you're interested please send your portfolio to info[at]itechforums.com
Welcome to the iTechForums.
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.
To register now click here.
Latest Threads
Advertisements
Forum Statistics
Threads:
Posts: 3
Members:
Number of Users Online:
Welcome to our newest member,
Reply
 
Thread Tools Display Modes
  #1  
Old 03-05-2010, 09:47 PM
tim tim is offline
Junior Member
 
Join Date: May 2008
Posts: 24
Default

What's the best way to parse an XML file into HTML?


What's the best way to parse an XML file into HTML?

I'm attempting to encapsulate the data in my web page from the actual HTML. Normally, I would use something like MySQL/PHP to do this, but for reasons beyond my control, I'm creating a large XML file that will hold information like training events.

I started out using javascript to do this, but the javascript is getting very large and bulky very fast. So I'm thinking about using an XSLT inside of an iFrame to do it instead. I figure the XSLT will be much simpler to maintain and less prone to error. Is this feasible, and it will it be compatible with the major other browsers? Or, is there an even better way to do what I'm trying to accomplish?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #2  
Old 03-05-2010, 09:47 PM
PleaseInsertACoin PleaseInsertACoin is offline
Junior Member
 
Join Date: Oct 2009
Posts: 3
Default

http://www.w3schools.com/xml/xml_to_html.asp

http://www.w3schools.com/xsl/default.asp

I think that should be what you're searching for.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 03-05-2010, 09:47 PM
AnrietteC AnrietteC is offline
Junior Member
 
Join Date: Mar 2010
Posts: 1
Default

Why not stick to PHP? Is this run client-side?

Why is the Javascript getting bulky? Too many for-loops?

I only use PHP, though XSLT would be a solution, I cannot fathom why you would use it.

I also Googled a jQuery XML parser plugin and I found the following: (personally I would look at jQuery - client-side Javascript library if you don't know it)

- http://marcgrabanski.com/article/jquery-makes-parsing-xml-easy
- http://jparse.kylerush.net/
- http://www.switchonthecode.com/tutorials/xml-parsing-with-jquery
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I parse a XML file and create an equvalent HTML file and vice versa? Hameem XML & XUL 0 04-24-2009 01:56 PM
Any knows a premade script (php?) to parse data from xml file to import it on a Chip XML & XUL 0 03-09-2009 12:16 AM
How do I parse this XML File - PHP? savj14 PHP 0 01-06-2009 08:24 PM
In perl how to parse a text file? GabNath74 Perl 0 07-24-2008 05:28 AM
In perl how to parse a text file? broad Perl 0 05-28-2008 06:56 PM

Your Ad Here

All times are GMT. The time now is 03:50 AM.