xml


Parse XML into HTML table


I've been looking for a solution to this for some time now, but without success
I have an xml from an external source that holds information regarding thousands of products
XML sample:
<rss version="2.0" xmlns:g="http://base.google.com/ns/1.0">
<channel>
<title>Teste</title>
<link>http://www.teste.com.br</link>
<description>Com mais de 500.000...</description>
<item>
<title><![CDATA[Kit Teste Tamanho M]]></title>
<link><![CDATA[http://www.teste.com.br/kit-teste-tamanho-m]]></link>
<description><![CDATA[DESCRIÇÃO ​teste...]]></description>
<g:image_link>https://teste.com.br/800x800/123/12345/produto/12345/teste.jpg</g:image_link>
<g:price>99.99 BRL</g:price>
<g:sale_price>94.99 BRL</g:sale_price>
<g:condition>new</g:condition>
<g:availability><![CDATA[in stock]]></g:availability>
<g:id><![CDATA[SHAA-001]]></g:id>
<g:installment>
<g:months>10</g:months>
<g:amount>9.99 BRL</g:amount>
</g:installment>
<g:brand><![CDATA[Teste]]></g:brand>
<g:product_type><![CDATA[Teste > Teste]]></g:product_type>
<g:product_type><![CDATA[Teste > Teste > Teste]]></g:product_type>
<g:mpn><![CDATA[Teste]]></g:mpn>
<g:gtin><![CDATA[1234567891011]]></g:gtin>
<g:online_only>y</g:online_only>
</item>
</channel>
</rss>
And I need to show this information on a simple page.
HTML sample:
<table>
<tbody>
<tr>
<th>ID</th>
<th>GTIN</th>
<th>Title</th>
<th>Link</th>
<th>Price</th>
<th>Availability</th>
</tr>
<tr>
<td id="g:id"></td>
<td id="g:gtin"></td>
<td id="title"></td>
<td id="link"></td>
<td id="g:price"></td>
<td id="g:availability"></td>
</tr>
</tbody>
</table>
As I said, I have tried some ways to do this, but without success
Thanks in advance for any help.

Related Links

Visual Basic & XML file & Combobox --> How to set variables
Android: XML can't find other views by id
XSLT xsl:normalize-space() function not working
XSLT copy-of not retaining whitespace
XSLT: XML-XML (No XML Tags in the transformed file)
Create DTD for node with inner xml node and text
namespace schema for urn:uuid:C2F41010-65B3-11d1-A29F-00AA00C14882
XPATH find a node if no other node has a sertin value
REST API in Camel - POST not working (XML parsing error)
Cannot extract correct data from XML in GO
Watch xml sent to jasper report
XSLT Prevent or Remove multiple References
XML schema and instance wrong
Cannot view XML after applying XSL Transform
What to use XML or JSON for?
XSLT 2.0 - change namespace without discarding existing prefix bindings

Categories

HOME
shell
algorithm
asp.net-web-api
time-complexity
ng-idle
youtube-data-api-v3
pascal
yahoo-finance
saml-2.0
solver
access
bitbucket-api
aws-cli
boto3
bing-maps
fabric.io
little-proxy
mel
ycsb
supervisor
intercom
heat
do-while
dimensional-modeling
html5-appcache
imessage
gulp-watch
epsilon
google-cloud-print
amazon-quicksight
has-and-belongs-to-many
ms-access-2003
fractions
8051
tizen-tv
winpe
testcomplete
kodi
card.io
dsx-desktop
gojs
sendbird
html-encode
mnist
apiary.io
jpad
node-mssql
loading
p4merge
c9.io
unordered-map
magento-1.9.3
subclipse
rfc3339
yii2-api
x-ray
oracleclient
gets
autosar
webjars
drawstring
hclust
pre-build-event
google-query-language
spreadjs
maybe
tfs-workitem
gocql
sapscript
eoferror
linked-tables
public-html
rapidsvn
nsmenu
mobility
cuba
clickbank
mt4j
oocss
tree-balancing
qtconcurrent
wcf-configuration
listitem
objectquery
appjs
fsevents
winmain
collectionviewsource
cac
luajava
delimited-text
silent
interprocess
isapi-extension
opml
sifr
glui
wordprocessingml

Resources

Encrypt Message