•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the RSS, Web Services and SOAP section within the Web Development category of DaniWeb, a massive community of 374,023 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,829 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our RSS, Web Services and SOAP advertiser:
Views: 2323 | Replies: 1
![]() |
•
•
Join Date: Oct 2004
Location: Romania
Posts: 48
Reputation:
Rep Power: 4
Solved Threads: 0
Hello,
I try to read a xml file with this schema:
- <item>
<title>some text</title>
<link>link</link>
- <description>
text ok
<br />
I can't see this text </description>
<imedia:thumbURL>link</imedia:thumbURL>
</item>
When I write:
echo $rss_channel["ITEMS"][$i]["DESCRIPTION"];
I can see text ok, but from <br /> I can't see nothing.
I tried to use somethink like eregi_replace("<br />", "\n", $var); but with no effect. Could you help me ?
And for <imedia:thumbURL> what channel shoud I use ?
$rss_channel["ITEMS"][$i]["imedia:thumbURL"]; or $rss_channel["ITEMS"][$i]["thumbURL"]; are not working.
Thank you!
I try to read a xml file with this schema:
- <item>
<title>some text</title>
<link>link</link>
- <description>
text ok
<br />
I can't see this text </description>
<imedia:thumbURL>link</imedia:thumbURL>
</item>
When I write:
echo $rss_channel["ITEMS"][$i]["DESCRIPTION"];
I can see text ok, but from <br /> I can't see nothing.
I tried to use somethink like eregi_replace("<br />", "\n", $var); but with no effect. Could you help me ?
And for <imedia:thumbURL> what channel shoud I use ?
$rss_channel["ITEMS"][$i]["imedia:thumbURL"]; or $rss_channel["ITEMS"][$i]["thumbURL"]; are not working.
Thank you!
•
•
Join Date: Nov 2004
Location: Netherlands
Posts: 5,588
Reputation:
Rep Power: 18
Solved Threads: 187
That's because the XML is corrupt.
If you want html tags contained inside an XML tag's content you should turn that entire content into a CDATA section.
If you want html tags contained inside an XML tag's content you should turn that entire content into a CDATA section.
42 Private messages asking for help will be ignored
In the frozen land of Nador they were forced to eat Steve's iMinstrels, and there was much rejoicing.
In the frozen land of Nador they were forced to eat Steve's iMinstrels, and there was much rejoicing.
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb RSS, Web Services and SOAP Marketplace
- xml remove <br /> tag - how ? (PHP)
- Bold (HTML and CSS)
- Please help me in connecting JSP to MySql (JSP)
- How to render a formatted output using HTML? (HTML and CSS)
- What exactly is xml? (RSS, Web Services and SOAP)
- How can show/view Infopath dynamic files(xml) without infopath in a computer (XML, XSLT and XPATH)
- Java newbie (Java)
Other Threads in the RSS, Web Services and SOAP Forum
- Previous Thread: XML syntax error "){"
- Next Thread: Can we Recorded Mail Transaction



Linear Mode