on 12-17-2007 9:51 PM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.