Help required about php Dom xml

Messages
92
Reaction score
1
Points
8
Hi,
I am trying to generate a xml by php do like below
Code:
<university name="Oxford" Place ="UK">
<colleges>
<colleges detail/>
<College name ="a" place"xyx">
</college>
</college detail>
</university>
some thing like that.

But I am so much new for dom and xml can any one help me to do this. Tried but getting lots of errors.
 

denzil

New Member
Messages
134
Reaction score
3
Points
0
If you feel you still need to patch up your DOM XML skills I'd recommend that you take a look at w3schools/. I find their tutorials very helpful. If you still haven't sorted out your problem come back with some details on the problem you are having.
 

callumacrae

not alex mac
Community Support
Messages
5,257
Reaction score
97
Points
48
If you feel you still need to patch up your DOM XML skills I'd recommend that you take a look at w3schools/. I find their tutorials very helpful. If you still haven't sorted out your problem come back with some details on the problem you are having.

w3schools is rubbish. It took me a day or two to read w3schools, a month or two to repair the damage it caused.

~Callum
 

denzil

New Member
Messages
134
Reaction score
3
Points
0
w3schools is rubbish. It took me a day or two to read w3schools, a month or two to repair the damage it caused.

~Callum

I suppose you're right. I've never actually relied solely on w3schools. I always use some e-book or web tutorial as well. Just find them helpful to get a basic idea of things.

Well anyway. I'm in the process of learning DOM XML amongst other things so hopefully I can be more helpful in a few hours :)
*****
I did some checking out and I'd like to point out that your xml is scattered with errors (at least 4 by looking at it quickly, I suspect even more). Do some more reading up before you try again. I just checked w3schools for their xml and it should be good enough as a starting point.
 
Last edited:
Top