on 11-30-2007 12:14 PM
HI,
do i need a special import to use this code and is it enough to fill it in the UDF import line ?
I think it´s important to store this java class somewhere in the XI server ?
code:
DOMParser parser = new DOMParser();
For DOM parser I have following imports in my Java program:
import javax.xml.parsers.*;
import javax.xml.transform.*;
import javax.xml.transform.dom.DOMSource;
import javax.xml.transform.stream.StreamResult;
import org.w3c.dom.*;
Hope that helps
Stefan
Message was edited by:
Stefan Grube
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
it´s still not working even with Stefan´s imports.
/X.../j2ee/cluster/server0/./temp/classpath_resolver/Mapbf2f25109f4511dca2cd000b5dabc425/
source/com/sap/xi/tf/_MM_RFC_LOOKUP_.java:129: cannot resolve symbol symbol :
class DOMParser location: class com.sap.xi.tf._MM_RFC_LOOKUP_
DOMParser parser = new DOMParser();
^
In my code there is nothing like DOM parser.
I have something like this:
...
Document document;
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
try {
// create DOM structure from input XML
DocumentBuilder builder = factory.newDocumentBuilder();
document = builder.parse(in);
...
But this is part of a Java mapping, so I am not sure how you can use this inside an UDF.
Regards
Stefan
Hi Borden
to learn about how to use java in XI for DOm parser You can use follow link. It
Provides the interfaces for the Document Object Model (DOM) which is a component API of the Java API for XML Processing.
http://java.sun.com/javase/6/docs/api/org/w3c/dom/package-summary.html
hope this may solve your problem
thanks
sandeep sharma
PS: if helpful please reward points
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
No. You dont need any spl imports. DOM is parser is a part of java.lang package.
You can use the piece of code by Stefan in the other post.
Regards,
Jai Shankar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.