cancel
Showing results for 
Search instead for 
Did you mean: 

how to access the value of a nodes in java mapping

Former Member
0 Kudos

Hi,

Can anyone provide me with data how to access the values of a node while working with java mapping.

Thanks,

Bhargav

Accepted Solutions (0)

Answers (1)

Answers (1)

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

try with DOM

BTW

if you don't know java why do you use java mapping?

try graphical mapping or xslt

Regards,

michal

-


<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

Former Member
0 Kudos

Hey Michal,

What i wanted to say is i have to write a java code in which the input has many nodes.i have to divide them further based on the value of the node.What value the user enters for it.i can get the nodename using by .getNodeName .What about the value it contains.

Thanks,

Bhargav

Former Member
0 Kudos

Hi ,

Refer to following blogs .

Using SAX Parser in Java Program

http://www.javacommerce.com/displaypage.jsp?name=saxparser1.sql&id=18232

DOM Parser

http://www.javacommerce.com/displaypage.jsp?name=domparser1.sql&id=18232

There are three XML parsers.

1. Document Object Model (DOM)

http://www.w3schools.com/dom/dom_parser.asp

2. Simple API for XML (SAX)

http://java.sun.com/j2se/1.4.2/docs/api/javax/xml/parsers/SAXParser.html : API

http://www.saxproject.org/

3. Stream API for XML (StAX)

This parser is more advantageous than SAX. It uses a pull based approach and it can work with multiple XSD's.

http://www.xml.com/pub/a/2003/09/17/stax.html

http://java.sun.com/webservices/docs/1.6/tutorial/doc/SJSXP2.htm

/people/amjad-ali.khoja/blog/2006/02/07/using-dom4j-in-xi--a-more-sophisticated-option-for-xml-processing-than-sap-xml-toolkit

Thanks ,

Suvarna

Former Member