By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,890 Members | 1,039 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,890 IT Pros & Developers. It's quick & easy.

UAProf parsing with PHP (WAP)

P: n/a

I want to parse a UAProfile XML file to know the capabilities of the
clients WAP cellular phone. Has anybody already written some PHP code
that does this?

Anyway, I haven't done anything with XML under PHP before and I have
some problems with the XML DOM parser of PHP. In particular I am not
able to access a specific node in the XML document that contains the
screen size, in pixels, of the device. Here is my test code, maybe
someone can show me the problem:


$xmlfile = "";

$dom = domxml_open_file($xmlfile)
or die("Error while parsing the document");

$root = $dom->document_element();
// Any of these dumps should show a valid node...





Thanks in advance,

To reply by e-mail, use following address:
udonews AT
Jul 16 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.