setattribute name starts with number

93 views Asked by At

I have a php file that outputs xml. It works unless I put lines in where the name starts with a number. I looked around but couldn't find that it was illegal. Is there something I'm missing?

$newnode->setAttribute("20amp", $row["20amp"]);

The server is reporting an error 500. but I haven't tracked down a more specific error yet. Only that if I comment this line out it works. I'd really like to keep my sql field names in the xml name.

0

There are 0 answers