|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
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
|
|||
|
|||
|
Parsing XML
Hi, i'm using the PHP code form melonfire at :
URL My question is : So far, my xml code has been in the form like 1) <title>The Hobbit</title> <Pages>359</pages> and everything seems fine. But i'm wondering if its also possible to have the xml code like 2) <title="The Hobbit" Pages="359" /> Would it be possible to parse XML with php when the XML code is like the second example??if so what would I have to change in the PHP code? thanx |
|
#2
|
|||
|
|||
|
<title="The Hobbit" Pages="359" />
wouldn't/shouldn't be valid, but say <book title="The Hobbit" Pages="359" /> would. As for using this method is php search the docs for whatever xml parser your using for "attributes". Which is what they are. e.g. http://www.devshed.com/Server_Side/...PHP2/page4.html |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > XML Programming > Parsing XML |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|