www.webdeveloper.com
Results 1 to 5 of 5

Thread: Xml into html (php page)

  1. #1
    Join Date
    Apr 2009
    Posts
    1

    Unhappy Xml into html (php page)

    I have an xml file called myxml.xml

    how do i get it to display in my html that has extention of .php, im guessing its in a table format?

    myxml file shown below...

    <?xml version="1.0" encoding="ISO-8859-1"?>
    <VoucherManager>
    <voucher>
    <MerchantName>Klaus Kobec</MerchantName>
    <AffiliateURL>http://www.paidonresults.net/c/00000/1/244/0</AffiliateURL>
    <VoucherCode>EXPPREV</VoucherCode>
    <VoucherDescription>&#163;46 off the entire Klaus Kobec Ice Range!</VoucherDescription>
    <StartDate>15/04/2009</StartDate>
    <ExpiryDate></ExpiryDate>
    </voucher>
    <voucher>
    <MerchantName>Caraselle</MerchantName>
    <AffiliateURL>http://www.paidonresults.net/c/00000/1/368/0</AffiliateURL>
    <VoucherCode>FIVER</VoucherCode>
    <VoucherDescription>Spend &#163;29.99 Or More And Receive &#163;5 Off</VoucherDescription>
    <StartDate>09/04/2009</StartDate>
    <ExpiryDate>31/05/2009</ExpiryDate>
    </voucher>
    <voucher>
    <MerchantName>Stauer</MerchantName>
    <AffiliateURL>http://www.paidonresults.net/c/00000/1/339/0</AffiliateURL>
    <VoucherCode>AWFREE</VoucherCode>
    <VoucherDescription>Free postage and packing</VoucherDescription>
    <StartDate>07/04/2009</StartDate>
    <ExpiryDate>30/04/2009</ExpiryDate>
    </voucher>
    </VoucherManager>
    Last edited by nimrod_king; 04-16-2009 at 06:55 AM.

  2. #2
    Join Date
    Aug 2006
    Posts
    1,918
    I've been using the SimpleXML library in PHP5 for this kind of thing - very easy.

    Dave

  3. #3
    Join Date
    Apr 2009
    Posts
    2

    Red face Xml



  4. #4
    Join Date
    Apr 2009
    Posts
    2

    xml

    hi
    i have one doubt on xml
    how to see xml file into browser plz can be help me

  5. #5
    Join Date
    Nov 2002
    Location
    Baltimore, Maryland
    Posts
    12,270
    Most browsers these days display XML just fine as it is. But if you want to control the look then see http://www.w3schools.com/xsl/ .
    “The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.”
    —Tim Berners-Lee, W3C Director and inventor of the World Wide Web

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

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



Recent Articles