cancel
Showing results for 
Search instead for 
Did you mean: 

how to read an xml file in Webdynpro and display it in a view.

Former Member
0 Kudos

hi,

i want to read an XML file which will be dynamic in nature. i want to do this using webdynpro. After reading, i also want to display the contents of XML file in a view.

Can anyone please halp, its very urgent.

Thanks in advance

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

how to access the DOM using this "doc" object reference as discused in pdf.

Former Member
0 Kudos

Hi,

In the blog, "doc" is of type "<i>org.w3c.dom.Document</i>". <a href="http://java.sun.com/j2se/1.4.2/docs/api/org/w3c/dom/Document.html">Here</a> is the javadoc for this Interface. Go through this to know about the APIs that you can use.

Regards,

Satyajit.

Former Member
0 Kudos

hi, i have XML file as follows..... please tell me the code as to how i can read it and display it in webdynpro using the "doc" of type "org.w3c.dom.Document". .

as stated above. I am still new at this so i need help

<?xml version="1.0" encoding="UTF-8" ?>

- <myManagement>

- <role name="Utkarsh">

- <property name="Access">

<value>a</value>

<value>b</value>

<value>c</value>

<value>d</value>

<value>e</value>

<value>f</value>

</property>

</role>

</myManagement>

Former Member
0 Kudos

please send me your email id .I will send u the sample code to read the xml file using the java application.you can incorporate the same in webdynpro application

Former Member
0 Kudos

Hi satyajit,

i followed all the instruction given in the link provided by you.

there are no errors in Webdynpro, but when i deploy it, i get an error as follows:

java.lang.NoClassDefFoundError:

com/sap/tc/webdynpro/services/sal/datatransport/api/IWDResource

please suggest what needs to be done.

thanks

Former Member
0 Kudos

Hi,

IWDResource is available from 2004s what is the version yourare using?

Regards

Ayyapparaj

Former Member
0 Kudos

Hi,

Go thorugh <a href="/people/community.user/blog/2006/10/18/how-to-parse-xml-file-uploaded-from-client blog. Even if your file is dynamic this will work.

Regards,

Satyajit.

Former Member
0 Kudos

i went through the blog and everything has worked well.

can you please explain me how to access the DOM using this "doc" object reference.

please explain me in brief.

thanks