Skip to Content
avatar image
Former Member

Help needed with domparsers for accessing TextNode value

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 .It is a type String and Category is element.In my java code i need to take this content of into a String.

Thanks in advance,

Bhargav

Message was edited by:

bhargav gundabolu

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Sep 17, 2007 at 04:37 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 18, 2007 at 05:54 AM

    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

    Add comment
    10|10000 characters needed characters exceeded