cancel
Showing results for 
Search instead for 
Did you mean: 

Read XML inside Web Dynpro

Former Member
0 Kudos

Hi experts,

I'm looking for an example on how to read the content from an XML file inside Web Dynpro. For example with SAX.

Why? I want to read a 'portal news' xml file (form based publishing) to Web Dynpro.

Did anybody do this before?

Thanks for your help,

Edwin van der Palen

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Thanks for you answer.

I already thought it's not that difficult and I found some example code on the internet, but the problem is I'm not able to get it to run properly, unfortunately.

I was hoping that someone could provide me some working example code. That would make it much easier.

Former Member
0 Kudos

Maybe it's simpler to use a DOM parser instead of SAX. Or if you want to read RSS feeds, you might have a look at the Rome project (https://rome.dev.java.net/).

Sample code may be found at <a href="http://www.exampledepot.com/egs/javax.xml.parsers/BasicDom.html">http://www.exampledepot.com/egs/javax.xml.parsers/BasicDom.html</a>

Armin

Answers (1)

Answers (1)

Former Member
0 Kudos

There is nothing special to do in Web Dynpro. Just use the XML parser as you would do in a "normal" Java application. To display the content in a view, you have to fill a context node and bind a suitable UI element against this node, e.g. a RowRepeater.

Armin