Forum Moderators: phranque

Message Too Old, No Replies

Getting rid of some XML tags with XSLT...

         

irock

5:09 pm on Jun 7, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi, I am not sure if this is the right forum, but I still hope someone can help me out...

I just received a XML datafeed that only has a couple fields (or nodes) that I need to display. I need to remove or filter out some nodes so I can display the stuff I want. I have succeeded in displaying the stuff I want, but I still see the unwanted content (under the unwanted nodes). How do I tackle this problem?

Here's the layout of the XML file...

<dsp>
<result>
...
</result>
<phrase>
...
</phrase>
<domain>
<title>...</title>
<url>...</url>
<offer>

<store>
... {some more nodes here}
</store>
<store>
... {some more nodes here}
</store>
<store>
... {some more nodes here}
</store>

</offer>
</domain>
</dsp>

The 'store' nodes are the only ones that I would like to list on my page.

Could anyone offer help?

Thanks much!

jatar_k

6:55 pm on Jun 9, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



hey irock,

Did you figure this out yet? Not much expertise with XSLT myself, anyone want to lend a hand?

</bump>;)

irock

7:20 am on Jun 10, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I figured out already... actually the solution is pretty easy...

wanna to see the codes? Displaying the images and hyperlinks via XSL is such a chore, FYI. A simple line would have to be broken down into different parts...