php not parsing XML into tables correctly, tags incorrect.

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
Dr.Bot
Forum Newbie
Posts: 1
Joined: Wed Feb 01, 2006 8:24 am
Location: Silicon Valley

php not parsing XML into tables correctly, tags incorrect.

Post by Dr.Bot »

:?:

Sorry if this is a know problem. I searched on xml + tags, or xml + tables and couldn't find anything.

I am using php to parse a simple XML file to produce a phone book listing. It works fine if I include source into a html file, but fails when I try to get it into wml. When I examine the source of the error producing code, I noticed the </td> tags were mostly incorrectly rendered as <td> Apparently html is forgiving about this but wml (which is an xml subset) is much less forgiving. any clues? My first thought is that I have a extra <td> someplace, but all the other tags are apparently correct.

I find that in debugging, sometimes trying to explain the problem to someone else often is the first step in solving it.

Links to the pages are at http://federman.best.vwh.net/wap/index.html and index.wml.

I note that the xml.html file produces the same incorrect output(but displayable). I have verified the original xml file as well formed.

PS. the Firefox wml plugin is the easy way to browse wml files.
Post Reply