SitePoint Sponsor

User Tag List

Results 1 to 5 of 5

Hybrid View

  1. #1
    SitePoint Zealot
    Join Date
    Dec 2006
    Posts
    134
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    XML Tag Parsing into HTML tags

    I have an set of XML feeds that I want to parse and output onto my page, converting the XML tags to appropciate HTML tags.

    What would be the process to accomplish this? I was looking at some PHP.net tutorials on XML parsing, and with PHP5 there is a neat little function but I canít seem to wrap my head around it.

    Any insight will be greatly appreciated!

  2. #2
    SitePoint Member
    Join Date
    Dec 2008
    Posts
    18
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Simplepie can do it simply.
    You can use Simplepie.inc class by require_once. The Simplepie documentation is easy-to-use. google it.

  3. #3
    ¨.¨ shoooo... silver trophy logic_earth's Avatar
    Join Date
    Oct 2005
    Location
    CA
    Posts
    9,013
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    XSLT is good at turning XML into anything.
    Logic without the fatal effects.
    All code snippets are licensed under WTFPL.


  4. #4
    SitePoint Zealot
    Join Date
    Dec 2006
    Posts
    134
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi guys,

    Thanks for the insight I'll research and try these methods tomorrow and hopefully I won't need to return to this particular thread

    Cheers!

  5. #5
    Twitter: @AnthonySterling silver trophy AnthonySterling's Avatar
    Join Date
    Apr 2008
    Location
    North-East, UK.
    Posts
    6,111
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    As logic_earth previously stated, take a look at XSLT; it's ridiculously powerful yet it's basics are quite easily learnt.

    Try reading this book, it's very interesting.
    @AnthonySterling: I'm a PHP developer, a consultant for oopnorth.com and the organiser of @phpne, a PHP User Group covering the North-East of England.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •