mySpace blog on Homepage

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • amiri.arash@gmail.com

    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_fil e("http://blog.myspace.co m/blog/rss.cfm?friendI D=70463944");
    $xsl = domxml_xslt_sty lesheet_file("b logMySpace.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('&n bsp;',' ') doesnt work.
    a translate function in the xsl does not work as well....

    anybody got an idea?

    please help...

  • dawnerd

    #2
    Re: mySpace blog on Homepage


    amiri.arash@gma il.com wrote:
    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_fil e("http://blog.myspace.co m/blog/rss.cfm?friendI D=70463944");
    $xsl = domxml_xslt_sty lesheet_file("b logMySpace.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('&n bsp;',' ') 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.

    Comment

    Working...