Debugging using browser.
HI,
We need to debug the code using the browser.and we are using the external ITS .
For this we have added the parameter rdisp/tpda_for_ext = 1
to the application servers profile.and also Set an external breakpoint.
Go to SE80 Utilities->Settings->ABAP Editor->Debugging.
Checked the following check boxes:
Deactivate IP matching.
Activate external debugger.
But we are facing the error message "This transaction is currently being debugged .You can continue as soon as your debugging is finished."
what we need is the code should be displayed on the browser to debug when it reaches the break point which we set in the backend system.
Please look into this and do the needful.
Regards,
Krishnam
Chrome is my favorite browser and I use it almost exclusively, but when I made it my default browser for Flex 3, I ran into problems. Chrome does not like the debug version of Flash Player.
So I am back to IE for Flex debugging, but intend to try Chrome again in the near future, as they keep updating it.
Carlos
Similar Messages
-
Enable Node Manager debug using WLST
Hi,
I would like to enable debug for node manager using WLST instead of using the Admin console - by selecting the check box for "Debug Enabled" property under Environment > Machine > Configuration > Node Manager in the Admin console.
I could locate the MBean name to 'NodeManagerMBean' and the property to 'DebugEnabled', but I'm not sure how to script it.
Can anybody please guide me?
Thanks in advance
Edited by: vikascv on Apr 29, 2009 9:23 AMHere you go
Enable Node Manager debug using WLST
<a class="jive-link-external" href="http://www.togotutor.com">http://www.togotutor.com</a> (Learn Programming and Administration for Free at Togotutor)
def connection_to_Admin():
try:
connect(username, password, URL)
except wlst.WLSTException, ex:
print "Caught exception while connecting: %s" % ex
else:
print "------- Connected successfully! ---------"
connection_to_Admin() #Calling the connect Function
edit()
startEdit()
cd('/Machines/MS1/NodeManager/Machine_1')
cmo.setDebugEnabled(true)
activate()
Thanks
Togotutor
<b><a class="jive-link-external" href="http://www.togotutor.com">http://www.togotutor.com</a> (Learn Programming and Administration for Free)</b><</td> -
Debugging using Eclipse and non-standalone 10g
Hey - is it possible to perform remote debugging using Eclipse against the non-standalone version of the 10g App Server? I've tried some of the hints listed in this forum (the most promising seemed to be starting oc4j using this command-line command:
java -classic -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=2727 -jar oc4j.jar, then connecting with the Eclipse debugger, which I managed to do - though I had to change one of the parameters because the designated file [a timezone file] could not be found - after the change things seemed to start up correctly. However, when I tried to hit http://localhost:2727 I got a "server not found or DNS error"). I don't know if the debugging works with the non-standalone version of 10g or not... or if I should be using some other startup command so hopefully y'all can help :)
Thanks,
ScottScott, apparently you have fallen pray of one of the most common misunderstandings of oc4j. Oc4j, namely, Oracle Application Server Container for j2ee, is a COMPLETE j2ee server. It supports http and https by itself. It is also an ejb container and a lot more. It can be used as a standalone or, with a different configuration, integrated into Oracle Application Server as its core component.
When you use the command "java -jar oc4j.jar ...", you are starting an instance of "standalone oc4j" or "oc4j standalone" as mentioned above, albeit from an OAS installation. In contrast, you can start one instance of Oracle Application Server by "<ORACLE_HOME>/opmn/bin/opmn startall", which will starts, besides several other components, one or several oc4j processes as its oc4j component. This OAS is an HTTP server that takes initial requests and routs the requests that are for OC4J to OC4J server. It may handle some of the requests by itself, or routs other http requests to other components, like mod_plsql. Finally, what we usually called "farm" is a collection of OAS clusters and instances that share the same OAS Infrastructure.
What I have written is just a tiny mini introduction of the OAS. For starters, oc4j is for use by development and small-medium scale production deployments. Plese take a look at the book "Oracle Application Server Containers for J2EE Standalone User's Guide" and then, "Oracle Application Server Concepts". You can find them by
1. go to http://otn.oracle.com
2. select "documentation" pull-down menu and then "application server"
3. go to the first "view library" or the one suits you.
4. view the "Oracle Application Server Concepts"
5. or go to "List of All Books" and you will see all of them!
Well, the best place to self-teach oc4j is, besides googling with site:oracle.com, the oc4j homepage,
http://www.oracle.com/technology/tech/java/oc4j/index.html
The above is written in case you need more information. Now let me come to your specific questions.
1. how to hit the OC4J instance directly, bypassing an HTTP server entry?Since what you started is an oc4j standalone, it does not make any sense to say "bypassing an HTTP server entry". Oc4j instance itself IS an http server. To access its http service, try
http://<yourHostNameOrIP>:<httpPort>/<yourAppWebContextRoot>
where the httpPort and yourAppWebContextRoot can be found in default-web-site.xml or http-web-site.xml. Which one or other web-site.xmls are effective is determined in <OC4J_HOME>/config/server.xml. Here the OC4J_HOME refers to your "C:/OraHome1/j2ee/home".
2. how to get the HTTP server started via the command-line startup?As said above, you already got an HTTP server running.
What I suggest for you is to play with oc4j standalone. You can come to OAS later:
1. download oc4j standalone distribution, "Oracle Containers for J2EE 10g (10.1.3) Developer Preview 3", from here "http://www.oracle.com/technology/software/products/ias/preview.html"
2. unzip the downloaded file. What you get is basically the same to a part of your existing "C:/OraHome". Go to j2ee/home. Run
java -Xdebug -Xnoagent -Djava.compiler=none -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=3301 -jar oc4j.jar
Make sure you are using java 1.4.2 sdk.
3. "new" your remote debugger from Eclicpse and specify the hostname and port 3301.
4. http://<yourHost>:8888/
A further note: to debug jsp's, you can use Jdeveloper that allows you to set debug points directly in a jsp that is running in its embeded oc4j server. -
Need to select link twice when using Browser back button
I see that my command_link works fine in normal scenarios.
But when I come to that page using browser back button and then select the link within the page.... the first time, looks like its regenerating the page and only when I select the link second time it is calling the action listener associated with the link.
Any clue as to how to fix this problem?
Thanksuse the following lines in your web.xml to avoid this bug of the current jsf-ri version.
<context-param>
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
<param-value>client</param-value>
</context-param>I already tried to report this bug some time ago:
http://forum.java.sun.com/thread.jsp?forum=427&thread=478928&tstart=180&trange=15 -
JRE Setup to Client machine on Intranet by using browser...
Hi everybody,
I have a problem about setting up JRE. If a client on the network wants to execute my client application, if there is no jre on the clent machine, the application try to connect java.sun.com for setting up JRE. If client machine has no internet connection, then the application cannot work. So my aim is to set up jre on the local server. For this, I reserched many times. But I cannot success. Becuase I dont know what is requirements for setting JRE b y using browser.
Thanks for help...Hi
Part II of the [Java Plugin Developers Guide|http://java.sun.com/j2se/1.5.0/docs/guide/plugin/index.html] describes the deployment using IE.
Cheers
/ -
WHERE AND HOW IS DEBUGGING USED ?
WHERE AND HOW IS DEBUGGING USED ? PLEASE GUIDE ME WITH EXAMPLES.
REWARD POITS GUARENTEED !!Hi,
check these...
ABAP DEBUGGING
http://help.sap.com/saphelp_webas620/helpdata/en/c6/617ca9e68c11d2b2ab080009b43351/content.htm
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/9cbb7716-0a01-0010-58b1-a2ddd8361ac0
Debug Program scheduled Background
Re: Debugging Report which is scheduled in background
3 types update,normal and system debugging
check this for update debugging
If you set "Update Debbugging" you can debug the codes which works in update tusk.
SAP std often runs the routine (function or form) to update the database in update tusk mode, these routine start as soon as a commit work is done.
The commit is called at the end of the program, so you can't debug them by "normal debbugging" because it ends as soon as the program ends
or----
All the database updates are performed by the update work processes by calling the functions/subroutines in update tasks.
These tasks are executed after a commit work is reached in the application. By default you cannot debug these functions.
TO debug these u need to explicitly activate update debugging.
for system debugging check the below link
http://help.sap.com/saphelp_nw2004s/helpdata/en/ef/5f0640555ae369e10000000a155106/content.htm
http://help.sap.com/saphelp_47x200/helpdata/en/c6/617ca9e68c11d2b2ab080009b43351/frameset.htm
For debugging tutorial:
http://help.sap.com/saphelp_erp2005vp/helpdata/en/5a/4ed93f130f9215e10000000a155106/frameset.htm
http://www.sapdevelopment.co.uk/tips/debug/debughome.htm
http://www.sap-basis-abap.com/sapab002.htm
System Debugging
If you set this option, the Debugger is also activated for system programs (programs with status S in their program attributes). When you save breakpoints, the System Debugging setting is also saved.
Update Debugging
Update function modules do not run in the same user session as the program that is currently running in the ABAP Debugger. These function modules are therefore not included in debugging. Only if you select the Update Debugging option can you display and debug them after the COMMIT WORK.
Normal Debugging
Normal debugging is the one we do it by the normal dynamic break points or by /H or by using stattic break points.
You can switch to diffferent debuggin modes while processing.
BREAKPOINT
In the source code we set the Break-point there by clicking the stop button, the system will stop there when you execute the program.
Watchpoint
For watchpoints, we need to give some condition and when this condition is satisfied, program will stop
example : if you want to debug only
for matnr value 100 than set watch point
matnr = 100. when value reaches 100 than
program stops at that point.
more at
http://help.sap.com/saphelp_nw04/helpdata/en/c6/617cdce68c11d2b2ab080009b43351/content.htm
check these documents as well
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/abap/abap-runtime-tools/the%20new%20abap%20debugger%20-%20an%20introduction.pdf
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/media/uuid/f720ea47-0801-0010-f7a3-bd37d44fee8d
here r some links for debugging...
Go through these threads for more information on debugging,
1) debugging
2) debugging
3) Debugging
4) Debugging
some more links .....
Introduction: http://www.saplinks.net/index.php?option=com_content&task=view&id=24&Itemid=34
A PDF file to know knowledge about Debugging
Some more links:
http://www.sap-basis-abap.com/sapab002.htm
Debug Background Programs: http://www.sapdevelopment.co.uk/tips/debug/debug_backjob.htm
Debugger: http://help.sap.com/saphelp_nw2004s/helpdata/en/c6/617ca9e68c11d2b2ab080009b43351/content.htm
Cheers
VJ -
After a contents is gatewayed through the portal, 'Cache-Control' value is setted as 'no-store, no-cache' even though it is setted to use cache from the remote server.
We need to use browser caching function, but with the 'Cache-Control' value resetted in the portal while it is gatewayed, we cannot use browser caching function.
Is there anyway to keep 'Cache-Control' value to use browser caching when a content is gatewayed through the portal server?
Thanks,Young-JinThe bug is related to client browser caching, but is rooted in the gateway. As you've noted, the gateway is erroneously adding no cache headers to the response for certain content types, thereby preventing the browser from caching them.
...stephan------- Young-Jin Kim wrote on 4/26/04 1:39 AM -------
Danil,
Is that right you are talking about browser caching?Actually, we want to use client browser caching.The bug that you said is related to client browser caching or gateway caching? -
Column freez using browser based scroll bar
hi all,
i got some solution to freeze columns using scrollbar its really nice,
but i want to freeze columns , i have to use browser based scroll bar instead of report scroll bar, when i scroll mouse then report headers will locked at starting position of page and then only data will vertically scroll without scroll bar in report.
can anybody help me.no, no, that's just a regular finder window. I don't have any finder extensions. That's just a regular finder window that happens to have a folder with the CDFinder application in it.
Here's another example:
BEFORE clicking the last .ffx file in the list:
http://picasaweb.google.com/lh/photo/aP7B8IO6c76v1Y_5w8TxXw?feat=directlink
AFTER the first click:
http://picasaweb.google.com/lh/photo/ahQ4EvvkMzcVhXMppvedOw?feat=directlink
The second click of a double-click gets lost on the horizontal scroll bar.
Are you saying you never get a horizontal scroll bar, or just that whenever a horizontal scroll bar appears it doesn't ever cover a file? -
Previewing/Debug in Browser
Why is it when previewing in browser from DW, the page
displays correctly, but from there when navigating to other pages
using the menu, those pages "styles" are not displaying correctly?
The menu is an include file, is that it?
Thanks
DMYou are being confused by a) not understanding root relative
vs document
relative links, and b) not understanding how DW previews
files.
If I have a document with a link to an image that looks like
this -
<img src="/images/foo.gif"...
That's what's called a root relative link.
If I preview that document in DW, then the browser gets the
document, sees
the leading "/" and reads that as the root of the hard drive,
since the
browser has no idea where the root of the site is. Thus, the
image is
broken in the preview.
If I have temp files enabled, then DW will secretly convert
the file being
previewed into a temporary file, and hand that to the
browser. This temp
file has had all root relative links converted to document
relative links
(as you will see by looking at the code in the browser), and
has had all
include files actually embedded in the page, and has had all
external CSS
and js markup embedded in the page. In other words, DW has
made the
document into a stand-alone page.
If you do not have temp files enabled, all of these links
would be broken on
preview.
Now - if you are using root relative links, AND you have temp
files enabled,
AND you click away from the previewed document, then all of
your links will
be broken, since DW has not made that linked file into a temp
file. This is
what you are seeing.
So - if you want to click away on preview, then you must use
document
relative links for the site -
<img src="../images/foo.gif"... (for example)
These will still work on preview since the browser knows how
to determine
the current file's location and how to follow that path.
GEDDIT?
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"Dad Blame" <[email protected]> wrote in
message
news:[email protected]...
> Why is it when previewing in browser from DW, the page
displays correctly,
> but
> from there when navigating to other pages using the
menu, those pages
> "styles"
> are not displaying correctly?
> The menu is an include file, is that it?
>
> Thanks
>
> DM
> -
How to prevent creation of view object rows when using browser refresh butt
HI i have the following problem:
I have a creation form using a partial submition. The problem is that if i have entered some value by using autosubmit , this value will be setted as attribute in the ViewObject . After that if i click refresh button of the browser then the new Row of the view object will be created and i will have a pending row with setted attribute. So if execute commit then the both rows will be tried to commit. How can i prevent this?
KrasiHi,
If i've understood you have a invokeAction that create a new row, right? If yes put on condition that it invokeAction won't invoke if is a postback.
Let me know if i miss understand your doubt.
Best Regards -
Can no longer access Hotmail using browser after B...
On my N8 after the update, using the default browser just comes up with the message:
Unable to load page
The website is in WML format, which is not supported.
Worked fine before any solution apart from using Opera?@sgv_6618
We would advise you to contact Microsoft on this issue, as it is their server which is force-redirecting the mobile browser to (now unsupported) WML page. However, it is likely that this issue will be resolved in their end as they seem to be updating their email service and encouraging users to switch to Outlook with an increasing push.
Wireless Markup Language is more or less a relic nowadays and seldom used, this is because most mobile browsers support full XHTML and even standard HTML5 + Javascript. For more info on WML, please see here.
Puigchild
If you find this post helpful, a click upon the white star at bottom would always be appreciated.
If it also solves your problem, clicking ACCEPT AS SOLUTION below it will benefit other users! -
(PC and Surface 8.1)bad pool header error: remote debugging using ARM device
Tools used:
Microsoft Visual Studio Professional 2013
Remote Debugger Monitor (Surface RT 8.1)
I have successfully activated the developer license as administrator.
I have attempted to run the test app on remote device but my pc crashes before or when reaching certification.
So far, I have attempted to run an app software for the ARM device; however, ever since I have upgraded the surface to 8.1, I constantly get the bad pool header crash, even after successfully connecting the pc to rt device.
is there any way I can resolve the issue so I can successfully to remote debugging?
any help is appreciated.Hi,
Considering that the issue should be related to Windows RT 8.1, and Since we have limited testing environment, I suggest you submit a new case on Windows RT forum as they will be more professional on your issue:
This is the Windows RT 8.1 forum link.
http://answers.microsoft.com/en-us/windows/forum/windowsrt8_1?sort=lastreplydate&dir=desc&tab=Threads&status=&mod=&modAge=&advFil=&postedAfter=&postedBefore=&threadType=All&tm=1392101458999
The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.
Regards,
Kelvin hsu
TechNet Community Support -
Using browser javascript to copy selected text from a pdf file opened in Air app.
I have posted this question on reader forum as well, but I think it is more suited here...
I am trying to create a note-taking application in air. I want to extract selected text from pdf file as a string object or to the clipboard.
Obviously, all pdfs in my local storage will not be scripted to recieve postMessages and act accordingly, and that is not practical either. So, my problem is, how can I copy the selected text in the pdf file (opened as an object in htmlloader within my Air app) to clipboard or directly in another control by say clicking a button in air application? I suppose, this is possible using javascript, however, I don't know which reader methods are exposed to the wrapper htmlloader control. In short, I want to execute app.execMenuItem("Copy") command through htmlloader javascript. Any alternate solutions are also welcome.
This is similar to passing inbuilt commands/methods/functions (of adobe reader) to pdf-reader plugin embedded in a webpage via javascript. This is possible in IE where the pdf is rendered as activex object, and hence JSObject interface of pdf document/reader is accessible to the browser javascript. I have also read that this same JSObject is accessible to VB as interface for IAC, so as the Air is Adobe's own product, I was wondering if equivalent of JSObject is accessible to htmlloader control as well.
Thanks in advance...
MitsThank you Thom for your reply...
from
http://www.adobe.com/devnet/acrobat/javascript.html
...Through JavaScript extensions, the viewer application and its plug-ins expose much of their functionality to document authors, form designers, and plug-in developers...
As it is explicitly mentioned, that the functionality of adobe reader are exposed for plugin development, I thought someone here might have used external javascript to execute some safe methods in adobe reader. The functionality (i.e. external javascript interface-JSObject) is already available for VB programmers to develop IAC. Further, the Acrobat SDK example called "AcroPDFinHML" shows how one can embed a pdf-reader in a html page and execute some safe methods (like gotonextpage(), zooming etc.) in IE as ActiveX plugin. I have checked it myself for adobe reader 9, and it works perfectly, so there is no security issue as such to implement the same for another browser (like in my case, the htmlloader control in flex/air app).
I intend to create a note taking application in air, where it is very much required that I should be able to copy selected text from various pdf documents, that are open in my app, and subsequently paste/collect/save the collected notes and process them afterwords (offcourse, from the pdfs that allow me copying text). However, it is not happening for me here. As the pdfs are opened through adobe reader plugin, it does not register the copy command executed by my air app. It registers the system level copy command (by keyboard shortcut Ctrl+C), but my air app has no way to execute the system level copy command programmatically. So I am kind of stuck here...
Thanks again for your reply. Having known what am I intend to accomplish, any other (may be alternative) solutions will be appreciated nonetheless...
Mits -
Getting the entire file path using "Browse button"
Hi All,
I searched the forum for the solution, but did not find it there.
I am using JFileChooser to browse and select a file.
then i have to pass this file as and argument to another java program where it reads the file and sends it to the server.
Now what i actually want is, when the file is selected i want to get the file nam along with the path i.e. C:/temp/temp.doc
instead i am getting only temp.doc.
I tried setting the JFileChooser mode as DIRECTORIES_ONLY. But that gives me only C:/temp and not the file name.
If i set it as FILES_AND_DIRECTORIES it again gives me only the file name and not the path.
pls. help me. its urgent.
thanksWhat is wrong with JFileChooser.getSelectedFile()? From the returned File object you can get the canonical name which sounds to be what you want.
-
Java PI7.1 mapping and standalone NWDS debugging using local XML files
>>which can be debugged in standalone NWDS using local files.
yes its possible...u just have to add static void main (as sugested in the blog) ..
Note: i dont have a system as of now..so i guess there can be some sysntax errors. Please check.
create input xml file with name "input.xml" and place it under "D" drive (it can be any location)
package prasad.NewAPI;
import java.io.IOException;
import java.io.InputStream;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import org.w3c.dom.Document;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
import com.sap.aii.mapping.api.AbstractTransformation;
import com.sap.aii.mapping.api.StreamTransformationException;
import com.sap.aii.mapping.api.TransformationInput;
import com.sap.aii.mapping.api.TransformationOutput;
* @author Prasad Nemalikanti
public class NewAPIJavaMapping extends AbstractTransformation {
public static void main(String[] args) {
try{
NewAPIJavaMapping javaMapping =new NewAPIJavaMapping();
FileInputStream in=new FileInputStream("D:\\input.xml");
FileOutputStream out=new FileOutputStream("D:\\output.xml");
javaMapping.execute(in,out);
catch(Exception e)
e.printStackTrace();
String result="";
/* The transform method which must be implemented */
public void transform(TransformationInput in,TransformationOutput out) throws StreamTransformationException
InputStream instream = in.getInputPayload().getInputStream();
// String for constructing target message structure
String fresult="<?xml version=\"1.0\" encoding=\"UTF-8\"?>";
fresult = fresult.concat("<ns0:MT_Customer xmlns:ns0=\"urn:newapi-javamapping\">");
try{
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
DocumentBuilder builder = factory.newDocumentBuilder();
Document doc = builder.parse(instream);
traversingXML(doc);
catch(Exception e){}
fresult = fresult.concat(result);
fresult = fresult.concat("</ns0:MT_Customer>");
try{
out.getOutputPayload().getOutputStream().write(fresult.getBytes());
/* assigning the created target message to "TransformationOutput"*/
catch(IOException e1){}
/*DOM Parser */
public void traversingXML(Node node)
NodeList children = node.getChildNodes();
for(int i=0;i<children.getLength();i++)
Node child = children.item(i);
short childType = child.getNodeType();
if(childType==Node.ELEMENT_NODE)
String nodeName=child.getNodeName();
String targetNodeName=null;
if(nodeName.equals("Users"))
targetNodeName="Customers";
else if(nodeName.equals("ID"))
targetNodeName="CustomerID";
else if(nodeName.equals("UserName"))
targetNodeName="Name";
else if(nodeName.equals("City"))
targetNodeName="City";
else if(nodeName.equals("State"))
targetNodeName="State";
else if(nodeName.equals("Country"))
targetNodeName="Country";
if(targetNodeName!=null)
result=result.concat("<"+targetNodeName+">");
traversingXML(child);
if(targetNodeName!=null)
result=result.concat("</"+targetNodeName+">");
else if(childType==Node.TEXT_NODE)
String nodeValue = child.getNodeValue();
result = result.concat(nodeValue);I have tested this and it is working..please chk the same
package com.test;
import java.io.IOException;
import java.io.*;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import org.w3c.dom.Document;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
import com.sap.aii.mapping.api.AbstractTransformation;
import com.sap.aii.mapping.api.StreamTransformationException;
import com.sap.aii.mapping.api.TransformationInput;
import com.sap.aii.mapping.api.TransformationOutput;
public class JavaMapping extends AbstractTransformation {
/* The transform method which must be implemented */
public void transform(TransformationInput in,TransformationOutput out) throws StreamTransformationException
this.execute(in.getInputPayload().getInputStream(),
out.getOutputPayload().getOutputStream());
String result="";
public void execute(InputStream in1, OutputStream out1)
throws StreamTransformationException {
// String for constructing target message structure
String fresult="<?xml version=\"1.0\" encoding=\"UTF-8\"?>";
fresult = fresult.concat("<ns0:MT_Customer xmlns:ns0=\"urn:newapi-javamapping\">");
try{
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
DocumentBuilder builder = factory.newDocumentBuilder();
Document doc = builder.parse(in1);
traversingXML(doc);
catch(Exception e){}
fresult = fresult.concat(result);
fresult = fresult.concat("</ns0:MT_Customer>");
try{
out1.write(fresult.getBytes());
/* assigning the created target message to "TransformationOutput"*/
catch(IOException e1){}
/*DOM Parser */
public void traversingXML(Node node)
NodeList children = node.getChildNodes();
for(int i=0;i<children.getLength();i++)
Node child = children.item(i);
short childType = child.getNodeType();
if(childType==Node.ELEMENT_NODE)
String nodeName=child.getNodeName();
String targetNodeName=null;
if(nodeName.equals("Users"))
targetNodeName="Customers";
else if(nodeName.equals("ID"))
targetNodeName="CustomerID";
else if(nodeName.equals("UserName"))
targetNodeName="Name";
else if(nodeName.equals("City"))
targetNodeName="City";
else if(nodeName.equals("State"))
targetNodeName="State";
else if(nodeName.equals("Country"))
targetNodeName="Country";
if(targetNodeName!=null)
result=result.concat("<"+targetNodeName+">");
traversingXML(child);
if(targetNodeName!=null)
result=result.concat("</"+targetNodeName+">");
else if(childType==Node.TEXT_NODE)
String nodeValue = child.getNodeValue();
result = result.concat(nodeValue);
public static void main(String[] args) {
try{
JavaMapping javaMapping =new JavaMapping();
FileInputStream in=new FileInputStream("D:\\Input.xml");
FileOutputStream out=new FileOutputStream("D:\\output.xml");
javaMapping.execute(in,out);
catch(Exception e)
e.printStackTrace();
AM
Maybe you are looking for
-
Can you restore an iPhone from a backup that was done from a different iPhone?
Here's the scenario. I've been backing up my iPhone 5 on iTunes so there's a backup file there but that iPhone is damaged and might not be recoverable. If I get a replacement phone, can I still use that backup file to restore the new phone despite
-
How do you burn a photo story from iphoto
I am trying to burn a photo story I created in iphoto to a disk. When I burned it this morning, all it did was burn the pictures onto the disk. What do I need to do to burn the story, in order, with the music into an actual show? Do I use a different
-
Third party filters such as Topaz Labs not showing up after upgrade to CC 2014
Has anyone noticed if their third party filters have been missing since upgrading to Photoshop CC 2014. I have lost all mine :-(
-
TS3367 i can't see my caller names in my iphone4s
i can't see my caller names when they call me only number is displaying so its difficalt to identify who is calling me
-
I can't delete my photos since I updated to iOS 6.