Unknown Entities and Atom/Rss-Feeds: HowTo?

S

S.T

Hi!

I've spend this weekend trying and coding a php-based atom- and
rss-feed writer. I don't know if this is the right place for my
questions. However, since both feeds are based on xml, maybe someone
can help.

I understand that I have to replace all unknown entities, such as
"ä". I wonder what's the common way to do so. For XML-Documents,
I'd prefer to make use of an external DTD, say, referring to
http://www.w3.org/TR/REC-html40/sgml/entities.html#h-24.2 Having
looked up some typical atom feed on the web, I realized that they DO
NOT include external DTD, and still, they work fine with characters
that are being declared as "unknown entities" in my documents. E.g.
typical german entities in opera's atom feed:
http://my.opera.com/sas1010/xml/atom/album/104384/ actually DO work,
but mine don't :-(((((

I wondered if I am to replace all entities by they corresponding codes
( Ä by Ä ) using my php-code, but this cannot be the
appropiate way, can it?

So what is your experience? Any suggestions?

Thanks

S.T.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,048
Latest member
verona

Latest Threads

Top