cancel
Showing results for 
Search instead for 
Did you mean: 

Help needed with domparsers for accessing TextNode value

Former Member
0 Kudos

Hi,

My input appears like this.

<header>

-


<Data>bhargav</Data>

<header>

i need to write a java mapping code where i need to access the value of <Data>.It is a type String and Category is element.In my java code i need to take this content of <Data> into a String.

Thanks in advance,

Bhargav

Message was edited by:

bhargav gundabolu

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Im using this java mapping to solve the level-2 hierarchical issue that occures with content conversion.I have written my java mapping using domparsers and StreamTransformation. and the output is coming fine.But in one case i need to access the value of the <Data> node and make some changes to it.But im unable to do it as <Data> here is a text node.

Thanks,

Bhargav

Former Member
0 Kudos

Hi,

The content will be passed via the InputStream in the java mapping program, which you can either use an XML parser or write your own code using the String class to extract the value for <Data>.

But, in any case, why are you using java mapping?

Regards,

Bill