|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
||||
|
||||
|
Accessing XML documents
Okey dokey...
Well, I finally got a good XML template to use for my documents, and a working XSL sylesheet to format it. The only part left for me to figure out is how I'm going to access it. My best thought was to use PHP, and hold it in a database. Then, I'd access it like a normal file. Is there any other/better ways of going about this? |
|
#2
|
|||
|
|||
|
You can do that, but there's no reason you couldn't just store them on the filesystem. The only compelling reason to store them in a database would be to perform queries on the documents. This is complicated by the data being in xml format, but not impossible.
|
|
#3
|
||||
|
||||
|
I wanted to base my site around a template, and then put my include my XML articles within it. Is there a way to call an XML document like that, or would I have to go PHP?
|
|
#4
|
|||
|
|||
|
Have you read the documentation for php's xslt functions? You can get the result of a transformation as a string that can then be echo'd out to your page. xslt_process can take an xml file and an xsl file as arguments, or strings of xml data.
|
|
#5
|
||||
|
||||
|
There we go! This should be the answer to help me out. Thanks!
![]() |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > XML Programming > Accessing XML documents |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|