XML错误格式(PHP)

时间:2011-09-06 20:08:44

标签: php xml

Xml有关于属性长度的任何问题吗?

当我在php中创建这个xml总是得到格式错误时,这是​​正确的吗?

<feed xmlns="http://74.53.32.202/~ltashiro/public/Servidor/" xml:lang="en-US">
<Row Id="1" Name="Any" Under="1016" Description="Pancetta beef ribs capicola ribeye, shankle leberkäse chicken fatback jerky shank ground round turkey turducken. Salami andouille chuck, pancetta tenderloin meatball frankfurter biltong. Jowl venison tri-tip pancetta meatloaf, swine frankfurter ball tip filet mignon salami tail boudin tenderloin kielbasa chuck. Tri-tip tail andouille, tongue chicken flank shankle corned beef salami t-bone meatloaf sausage meatball frankfurter. Prosciutto ham meatloaf, shoulder corned beef tenderloin rump venison ribeye kielbasa drumstick brisket pork chop pork loin. Short loin sirloin pastrami bresaola, pork chop pork belly turducken strip steak t-bone prosciutto meatloaf. Bresaola leberkäse short ribs, shankle frankfurter hamburger tongue." />
</feed>

1 个答案:

答案 0 :(得分:0)

尝试将所有非ASCII字符转换为数字HTML实体 例如。 “ä”进入“&amp;#228;”