Skip to Main Content

Application Development Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Parse an xml file using <cm> tag

user11311969Sep 10 2009 — edited Sep 12 2009
I have question about Content Management and weblogic portal 9.2

In VCR directory, I will have xml file with bellow structure

Test Repository
--->Test
----Test.xml

Test.xml File will be like

<main_content>
<content>
<Subject>Subject</Subject>
<grade><p>This is grade Data</p></grade>
<mark><p>This is mark Data</p><mark>
<content>
<main_content>

I have used below code to retrieve the above

<cm:getNode path="/Test Repository/Test/Test.xml" id="headernode" />
<cm:getProperty id="node" name="_content" />

Above code will show all the content on Jsp. i,e Subject This is grade Data This is mark Data

But I only want to retrieve the data of <grade> tag then how can I do this? Please help

How <cm> tag will help me here ?

Please provide sample code if have. Your help is highly appreciated.

Edited by: user11311969 on Sep 10, 2009 2:52 AM

Edited by: user11311969 on Sep 10, 2009 2:53 AM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 10 2009
Added on Sep 10 2009
6 comments
1,176 views