cancel
Showing results for 
Search instead for 
Did you mean: 

Creating SAX output for Java mapping

DG
Active Contributor
0 Kudos

Hi,

I have created a SAX parser for parsing my document, which is fairly easy.

I would like to create a document in may mapping using the SAX document creation. I'm just unable to find any documentation on how the SAX document can be created.

Can you help with how I can construct the SAX document in Java.

Regards

Daniel Graversen

[Figaf|http://figaf.com]

Accepted Solutions (1)

Accepted Solutions (1)

former_member537867
Active Contributor
0 Kudos

Hi Daniel,

This is a very good blog where u can have an idea of how Java Mapping is done using SAX parser.

http://www.riyaz.net/blog/xipi-java-mapping-demystified/

Some more stuff for Java Mapping-DOM and SAX:

/people/thorsten.nordholmsbirk/blog/2006/08/10/using-jaxp-to-both-parse-and-emit-xml-in-xi-java-mapping-programs

/people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-i

/people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-ii

/people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-iii

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

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

Regards,

Vinod.

DG
Active Contributor
0 Kudos

I found Thorstens blog very helpful, it containe the information needed to create a document using SAX

Answers (2)

Answers (2)

rajasekhar_reddy14
Active Contributor
0 Kudos

He Daniel,

What do you mean by constructing SAX Dcoument??SAX Parcer parse the document ,if you want define output required format you need write a java mapping such a way.

Regards,

Raj

former_member187339
Active Contributor
0 Kudos

Hi Daniel,

You need to create a java mapping for this. Check the blog of Stefan on how to write the code for fetching the complete payload.

/people/stefan.grube/blog/2006/10/23/testing-and-debugging-java-mapping-in-developer-studio

Then you can use your SAX parser(which you have developed). Make sure you have com.sap.xpi.ib.mapping.lib.jar added to the project folder when you create the java mapping

Regards

Suraj