Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old August 9th, 2006, 04:15 PM
amiri.arash@gmail.com
Guest
 
Posts: n/a
Default mySpace blog on Homepage

Hi!
I want to feed the news section of my band - homepage with the mySpace
blog of our band (in order to keep redundancy low).

The band homepage is written in PHP.

I wrote an xsl-stylesheet that transforms the blog into my wanted
design.

Here is the code:

<?

$doc =
domxml_open_file("http://blog.myspace.com/blog/rss.cfm?friendID=70463944");
$xsl = domxml_xslt_stylesheet_file("blogMySpace.xsl");
$params = array();
$result = $xsl->process($doc,$params,false);

$wholepage = $result->dump_mem();
print $wholepage;
?>


I cant get rid of "&nbsp;" being displayed from the <descriptiontag.

Anybody knows how to get rid of them?

str_replace('&nbsp;',' ') doesnt work.
a translate function in the xsl does not work as well....

anybody got an idea?

please help...

  #2  
Old August 10th, 2006, 07:35 AM
dawnerd
Guest
 
Posts: n/a
Default Re: mySpace blog on Homepage


amiri.arash@gmail.com wrote:
Quote:
Hi!
I want to feed the news section of my band - homepage with the mySpace
blog of our band (in order to keep redundancy low).
>
The band homepage is written in PHP.
>
I wrote an xsl-stylesheet that transforms the blog into my wanted
design.
>
Here is the code:
>
<?
>
$doc =
domxml_open_file("http://blog.myspace.com/blog/rss.cfm?friendID=70463944");
$xsl = domxml_xslt_stylesheet_file("blogMySpace.xsl");
$params = array();
$result = $xsl->process($doc,$params,false);
>
$wholepage = $result->dump_mem();
print $wholepage;
?>
>
>
I cant get rid of "&nbsp;" being displayed from the <descriptiontag.
>
Anybody knows how to get rid of them?
>
str_replace('&nbsp;',' ') doesnt work.
a translate function in the xsl does not work as well....
>
anybody got an idea?
>
please help...
It's probably a problem on MySpace's side. I don't know too much about
xml, so I can't be of too much help.

 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles