Completed

Leitor Xml

Published on the February 19, 2015 in IT & Programming

About this project

Open

Olá, preciso ler um arquivo XML com informações sobre Cupons.
Preciso ler o arquivo, sortear 1 para mostrar e imprimir todos os elementos e atributos na tela.
Não é necessário design, ou seja, só preciso que o script imprima na tela cada um dos elementos/atributos.

O servidor é asp, mas funciona php. Prefiro em PHP, se possivel, porque acho mais leve. Especifique se pode fazer em PHP por favor.


Obrigado,
Henrique

Cada bloco de dados do XML tem esse formato:
<coupon id="1417121175938">
<couponName>7 nas compras acima de R$145,00</couponName>
<couponCode>af0s4D</couponCode>
<links>
<link type="offer" url="http://links.lomadee.com/ls/THBPeDtKeEtfXzJRbTsyODY5MjY0MjswOzYwODQ7MDs1NTQ5O0JSOzM7aHR0cCUzQSUyRiUyRnd3dy5kYWZpdGkuY29tLmJyJTJGOzA7MA--.html"/>
</links>
<startOffer>2015-02-12T00:00:00-02:00</startOffer>
<endOffer>2015-03-13T23:59:59-03:00</endOffer>
<seller oneClickBuyValue="0" oneClickBuy="false" advertiserId="5549" pagamentoDigital="false" isTrustedStore="false" id="15">
<sellerName>Dafiti</sellerName>
<thumbnail url="http://br.lomadee.com/programas/BR/5549/logo_185x140.png"/>
<links>
<link type="seller" url="http://www.dafiti.com.br"/>
</links>
</seller>
<category isFinal="true" id="99004">
<thumbnail url=""/>
<name>Moda e Acessórios</name>
</category>
<price>
<discountPercentage>7.0</discountPercentage>
</price>
<outLink>http://www.dafiti.com.br/</outLink>
</coupon>

Category IT & Programming
Subcategory Web development
Is this a project or a position? Project
I currently have I have specifications
Required availability As needed
Experience in this type of projects Yes (I have managed this kind of project before)
Roles needed Developer

Delivery term: February 22, 2015

Skills needed