XML formatting help
HI All,
I have a question. I have written a sample java program that will create an xml file. The program works properly, but the generated xml is not formatted. How can i format the xml file.
The java program code is
package com.spi.xml;
import java.io.File;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.transform.Result;
import javax.xml.transform.Source;
import javax.xml.transform.Transformer;
import javax.xml.transform.TransformerFactory;
import javax.xml.transform.dom.DOMSource;
import javax.xml.transform.stream.StreamResult;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
public class WriteXML {
static Document document;
public static void buildDOM() {
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
try {
DocumentBuilder builder = factory.newDocumentBuilder();
document = builder.newDocument();
Element root = (Element) document.createElement("GUI");
document.appendChild(root);
Element curElement = document.createElement("Button");
curElement.appendChild(document.createTextNode("Submit"));
root.appendChild(curElement);
curElement = document.createElement("Button");
curElement.appendChild(document.createTextNode("Cancel"));
root.appendChild(curElement);
// Save the document to the disk file
TransformerFactory tranFactory = TransformerFactory.newInstance();
Transformer aTransformer = tranFactory.newTransformer();
Source src = new DOMSource(document);
Result dest = new StreamResult(new File("C:\\xmlFileName.xml"));
aTransformer.transform(src, dest);
} catch (Exception pce) {
pce.printStackTrace();
public static void main(String[] args) {
buildDOM();
}The output (XML file)
<?xml version="1.0" encoding="UTF-8"?>
<GUI><Button>Submit</Button><Button>Cancel</Button></GUI>How can i format the xml file for multiple lines?
If you are using XML Schemas, you should check out
XML Beans -- you'll never (?) think about low-level
APIs again:
http://xmlbeans.apache.org/If you are not using XML Schemas, why not?We will be using the XML Schemas later. This is just a sample to write an xml file. The xml should be built dynamically.
Similar Messages
-
Hi Everyone,
I'm new to XML and hoping someone can help me. XML seems pretty straightforward, so I'm not sure why I can't get my head around this.
Here's what I need.
I'm building a webpage in Dreamweaver using Spry that will have a list of all 50 U.S. states. When you click on a state, it will populate a side area with 2 or 3 cities from that particular state along with a phone number for each city.
Can anyone give me a small sample of how the formating would be for this?
I'd really appreciate any help you can give.
Thanks,
Moon71Your question has nothing to do with Java. Locking this thread.
-
Any java experts pls help me in converting attribute to XML formats
Pls help me oh my god i am a newbie here and i am given this project.
I had just written a XML doc. which looks like this
<ConsumerTransfer>
<TransactionId>
123:123
</TransactionId>
<Billingoption>
cash
</Billingoption>
</ConsumerTransfer>
I need to make this to attributes like
private String TransactionId()
private String BillingOption()
and so on.....
I need to convert this attributes to XML format
can any show me an example or the source codes for this
Really, I appreciate it.
JimmyKnotFor such node level operations I think that DOM would be a good idea. So here you go. Look for some nice tutorial for DOM and you got it.
salut -
Help on Trasnfering .wsdl/xml format files using FTP Adapter
Hi,
I am new to Oracle BPEL and JDeveloper....
I created some processes to transfer .txt files from one location to another location using FTP Adapter..
Know I have some files on .wsdl/xml format... using bpel process can we transfer these files from one location to another location using FTP Adapter (Is it possible for .wsdl/xml files)
can any one help me on this plz
Thanks
VenkatThanks Guys .. I am able to transfer .WSDL files also
Thanks
venkat -
Help with Labview for Linux applicatio​n - datalog to XML format
Hi,
I am working on an application that makes use of a PDA for instrument control and data acquisition, and all our code has been written with the use Labview PDA 8.2. The instrument data is returned wirelessly to a remote server, and one of the specifications we set early in the project was the data would be returned in XML format in line with Labview's inbuilt XML schema.
Unfortunately, this XML funtion is not available on Labview PDA! We have made a change to return the data in Labview's 'Datalog' format, and then we now intend to run an additional application on the server to convert this information to XML before passing the data to our customer's software.
We have successfully done this with Labview for windows, but our customer's server is Linux based.
Is anyone aware of someone (or a company) who would be able to take our existing 'datalog-to-XML' vi and compile it for Linux? The program is really simple, and I would hope that all the functionality we use is supported in Labview for Linux.
Thanks,
MarkHi Mark
LabVIEW VIs that are developed in a Windows environment can be used in a Linux version of LabVIEW. As long as the VIs have not got Windows specific features such as ActiveX or Windows dll call you can run the VI in Linux. Also there maybe some specific drivers that are not supported under the Linux environment (see link). The VI will simply be recompiled in Linux. The Linux user must have a copy of the Linux LabVIEW Development System installed though.
http://digital.ni.com/public.nsf/websearch/35D2B5E483A001A18625716B005BE464?OpenDocument
Kindest Regards
YatinM
NIUK & Ireland -
How to generate Campaign details in XML format for sending to downstream sy
Dear gurus,
we have a requirement to send the Campaign details from CRM to some Downstream system in the XML format through PI interfaces. We want to include the following campaign details in the structure.
<SAPTOAL DATE="03-MAR-2011" TIME="13:25pm">
<CAMPAIGN>
<ID></ID>
<NAME></NAME>
<RUNDATE></RUNDATE>
<RUNTIME></RUNTIME>
<STARTDATE></STARTDATE>
<ENDDATE></ENDDATE>
<RECORDCOUNT></RECORDCOUNT>
</CAMPAIGN>
<TARGETGROUP>
<ID></ID>
<NAME></NAME>
</TARGETGROUP>
<BUSINESSPARTNERS>
<BUSINESSPARTNER>
<ID>001</ID>
<TARGETGROUPID></TARGETGROUPID>
<FIRSTNAME></FIRSTNAME>
<LASTNAME></LASTNAME>
<TITLE></TITLE>
<SUFFIX></SUFFIX>
<EMAIL></EMAIL>
<REPFIRSTNAME></REPFIRSTNAME>
<REPLASTNAME></REPLASTNAME>
<REPPHONE></REPPHONE>
<REPSIGNATUREURL></REPSIGNATUREURL>
<REPPICTUREURL></REPPICTUREURL>
<REPEMAIL></REPEMAIL>
</BUSINESSPARTNER>
<BUSINESSPARTNER>
<ID>002</ID>
<TARGETGROUPID></TARGETGROUPID>
<FIRSTNAME></FIRSTNAME>
<LASTNAME></LASTNAME>
<TITLE></TITLE>
<SUFFIX></SUFFIX>
<EMAIL></EMAIL>
<REPFIRSTNAME></REPFIRSTNAME>
<REPLASTNAME></REPLASTNAME>
<REPPHONE></REPPHONE>
<REPSIGNATUREURL></REPSIGNATUREURL>
<REPPICTUREURL></REPPICTUREURL>
<REPEMAIL></REPEMAIL>
</BUSINESSPARTNER>
</BUSINESSPARTNERS>
</SAPTOAL>
We have already tried the following things in SPRO.
CRM --> Marketing --> Marketing Planning and Campaign Management --> Campaign Execution --> Define File Export Variants
But with this we were not able to get the full XML structure, as required above. We got only this much.
<?xml version="1.0" encoding="utf-8" ?>
<DATA>
<ITEM>
<Field_1>Test Email.</Field_1>
<Field_2>Test Email.</Field_2>
<Field_3>ABC Company.</Field_31>
</ITEM>
</DATA>
Any pointers or help on this will he greatly appreciated.rgrds,
Randhir SoniHi Prabhu,
The program SAPFPAYM generates the payment Medium on the basis of your configuration and background settings, this program does not bydefault give the output in the XML.
Varient creation for the PMW in T. Code OBPM4, use the same program, which i already done it, even without this it is not be possible to create any payment Medium.
Regards,
Rony -
Data is not converting in XML format in output while download in report
Hi All, While downloading the report in XML format value '&' is not changing its XML format '&', but showing in debug mode and sam thing while download its not showing in output. showing in debug like; MS NA - DCS Tooling & Automation but in output showing the data like: MS NA - DCS Tooling & Automation because of this getting issue. Please help me out . Thanks and Regards Sankil
In that case, it is correct.
Try replacing & with & before downloading xml in case you want & to appear as & in web browser view. -
Customization of DAC to send emails in XML format
Hi,
We need to customize DAC to send emails in XML format to the support team whenever there is a failure of the ETL load.
We use the HPSC ticketing system.
Any help to achieve this functionality is much appreciated.
we have tried to customize the existing email template of DAC, but it is not serving the purpose to generate the ticket in HPSC.
To generate the HPSC ticket, we have a XML format. We need to customize DAC to use this format.
This is the version of Oracle BI application we are using:
Build: 10.1.3.2.1.070411.1900
Release Version: Oracle Business Intelligence 10.1.3.2.1
Package: 070411.1900
Build: 7.9.1.032307.0900
Release Version: Oracle Business Intelligence Applications 7.9.1
Package: 032307.0900
Regards,Hi,
We have raised a SR with Oracle support and are in touch with Engineering also today onwards. However, would like to try out options while waiting for a solution/workaround for this issue.
Regards, -
Oracle reports in xml format end with stat_low = 6 stat_high = 0
hi
i have a problem with my reports
i have oracle application 11.5.10.2 on linux 32 redhat 4 update 5
after apply the RUP 6
my character_set is :American_America.AR8MSWIN1256
base lang American
install lang ARABIC
when i generate the reports in xml format i get:
Inventory: Version : 11.5.0
Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
ZMCINVTRREG1 module: ZMC Transaction Register Report
Current system time is 04-AUG-2009 14:32:30
+-----------------------------
| Starting concurrent program execution...
+-----------------------------
Arguments
P_BREAK_ID='1'
P_RPT_UOM='2'
P_ORG='223'
P_QTY_PRECISION='3'
P_GLCC_STRUCT_NUM='50289'
P_TXN_DATE_LO='2009/08/04 00:00:00'
P_TXN_DATE_HI='2009/08/04 00:00:00'
P_AUDIT_DETAIL='2'
P_REASON_DETAIL='2'
P_LOC_DETAIL='2'
P_CATEGORY_DETAIL='2'
P_SERIAL_DETAIL='2'
P_LOT_DETAIL='2'
P_CATG_SET_ID='1'
P_CATG_STRUCT_NUM='101'
-- Start of Reports Command --
ar60runb
P_CONC_REQUEST_ID=373985
P_BREAK_ID='1'
P_RPT_UOM='2'
P_ORG='223'
P_QTY_PRECISION='3'
P_GLCC_STRUCT_NUM='50289'
P_TXN_DATE_LO='2009/08/04 00:00:00'
P_TXN_DATE_HI='2009/08/04 00:00:00'
P_AUDIT_DETAIL='2'
P_REASON_DETAIL='2'
P_LOC_DETAIL='2'
P_CATEGORY_DETAIL='2'
P_SERIAL_DETAIL='2'
P_LOT_DETAIL='2'
P_CATG_SET_ID='1'
P_CATG_STRUCT_NUM='101'
report=/oraapp/prodappl/inv/11.5.0/reports/US/INVTRREG.rdf
batch=yes
destype=file
desname=/oraapp/prodcomn/admin/out/PROD_apps/o373985.out
desformat=XML
-- End of Reports Command --
Request language is :
AMERICAN
Request territory is :
AMERICA
XML_REPORTS_XENVIRONMENT is set to:
/oraapp/prodora/8.0.6/guicommon6/tk60/admin/Tk2Motif_UTF8.rgb
Enabling XML_REPORTS_ENVIRONMENT based environment switching
The Character-Set of the System is:
AR8MSWIN1256
Environment will now switch to UTF-8 code-set.
Parts of this log file may not display correctly
as a result. This is an expected behavior.
Converting parameters to UTF-8
-- Start of Reports Command Converted to UTF-8 --
ar60runb
P_CONC_REQUEST_ID=373985
P_BREAK_ID='1'
P_RPT_UOM='2'
P_ORG='223'
P_QTY_PRECISION='3'
P_GLCC_STRUCT_NUM='50289'
P_TXN_DATE_LO='2009/08/04 00:00:00'
P_TXN_DATE_HI='2009/08/04 00:00:00'
P_AUDIT_DETAIL='2'
P_REASON_DETAIL='2'
P_LOC_DETAIL='2'
P_CATEGORY_DETAIL='2'
P_SERIAL_DETAIL='2'
P_LOT_DETAIL='2'
P_CATG_SET_ID='1'
P_CATG_STRUCT_NUM='101'
report=/oraapp/prodappl/inv/11.5.0/reports/US/INVTRREG.rdf
batch=yes
destype=file
desname=/oraapp/prodcomn/admin/out/PROD_apps/o373985.out
desformat=XML
-- End of Reports Command --
XML_REPORTS_XENVIRONMENT is :
/oraapp/prodora/8.0.6/guicommon6/tk60/admin/Tk2Motif_UTF8.rgb
XENVIRONMENT is set to /oraapp/prodora/8.0.6/guicommon6/tk60/admin/Tk2Motif_UTF8.rgb
Previous NLS_LANG Environment Variable was :
American_America.AR8MSWIN1256
Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
American_America.UTF8
stat_low = 6
stat_high = 0
emsg:was terminated by signal 6
*** glibc detected *** double free or corruption (!prev): 0x08bf6a78 ***
Report Builder: Release 6.0.8.25.0 - Production on Tue Aug 4 14:32:30 2009
(c) Copyright 1999 Oracle Corporation. All rights reserved.
Enter Username:
Reset original NLS_LANG in environment as :
American_America.AR8MSWIN1256
Program was terminated by signal 6
Concurrent Manager encountered an error while running Oracle*Report for your concurrent request 373985.
Review your concurrent request log and/or report output file for more detailed information.
Executing request completion options...
------------- 1) PUBLISH -------------
Beginning post-processing of request 373985 on node APPS at 04-AUG-2009 14:32:37.
Post-processing of request 373985 completed at 04-AUG-2009 14:32:38.
Finished executing request completion options.
Concurrent request completed
Current system time is 04-AUG-2009 14:32:38
can any one help me with it????hi,,,
it seems OS package version conflict
Please check glibc and openmotif version (its responsible for reports)
and
Set the environment variable MALLOC_CHECK_=0 and bounce the Concurrent Managers
MALLOC_CHECK_ can be changed in two places :-
1. Add this to the $APPL_TOP/custom<TWO_TASK>_<HOSTNAME>.env
MALLOC_CHECK_=0
Then restart the concurrent managers and retest
2. Change it in the adovars.env file
Again bounce the concurrent managers and retest
THANKS (ZzZ)
Edited by: zzz on Aug 5, 2009 8:59 AM
Edited by: ZzZ on Aug 5, 2009 9:00 AM -
Convert PDF to XML Format . Can´t get it working :(
Hi everybody,
I am a Rocky in Acrobat Scriptingand I need some helpd to convert a PDF file into an XML format using the build in javascript console.
The only thing I got so far is:
this.saveAs("/e/test.xml","com.adobe.acrobat.xml-1-00")
I got this information from the refrence guide, but I did not find an accurate example. Can you lend me a hand ? If you find a solution can you also explain me the different sections of the code because I still want to learn something besides using the copy and paste option.
Thank you very much:
RolandBernd Alheit wrote:
What happens when you try it?
The problem is I tried it several times, but nothing happens at all. The reference guide mentioned a second file with the ending *.xls will be created but nothing happens at all. Can you help me out ? -
Sample XML format that can be used to write a SELECT query
Hello,
I want to use and XML file in the scenario FILE to JDBC where i use the operation as SELECT in which i want to embbed an sql statemnet which is equivalent to
SELECT EMPNO, NAME FROM EMPLOYEE WHERE EMPNO>1
as in the form of XML format like,
<?xml version="1.0" encoding="UTF-8"?>
<ns0:MT_JDBC_SELECT_JDBC_REQ xmlns:ns0="http://JDBC_SELECT">
<STATEMENT>
<TABLENAME ACTION="SELECT">
<TABLE>EMPTEST</TABLE>
<ACCESS>
<EMPNO></EMPNO>
<NAME></NAME>
</ACCESS>
<KEY>
<EMPNO compareOperation="GT">1</EMPNO>
</KEY>
</TABLENAME>
</STATEMENT>
</ns0:MT_JDBC_SELECT_JDBC_REQ>
Can i do like this?
PLease help me out in using various conditions in the XML file formats like the above.
Thanks,
Soorya.Hello raj,
I would like to write the query in that format where i mentioned as,
<?xml version="1.0" encoding="UTF-8"?>
<ns0:MT_JDBC_SELECT_JDBC_REQ xmlns:ns0="http://JDBC_SELECT">
<STATEMENT>
<TABLENAME ACTION="SELECT">
<TABLE>EMPTEST</TABLE>
<ACCESS>
<EMPNO></EMPNO>
<NAME></NAME>
</ACCESS>
<KEY>
<EMPNO compareOperation="GT">1</EMPNO>
</KEY>
</TABLENAME>
</STATEMENT>
</ns0:MT_JDBC_SELECT_JDBC_REQ>
without giving clear SQL statement as you mentioned here like,
<ns0:MT_JDBC_SELECT_JDBC_REQ xmlns:ns0="http://JDBC_SELECT">
<STATEMENT>
<TABLENAME ACTION="SQL_QUERY">
<ACCESS>SELECT EMPNO, NAME FROM EMPLOYEE WHERE EMPNO > '$EMPNO$</ACCESS>
<KEY>
<EMPNO>1</EMPNO>
</KEY>
</TABLENAME>
</STATEMENT>
</ns0:MT_JDBC_SELECT_JDBC_REQ>
Thanks,
Soorya -
Error in outputting xml formatted data
Hello,
I'm trying to output xml formatted data using apex.
At about 70% into the formatted output I get this in the browser:
<descript>punct= & > < /,() &</descript>
</row>
- <row The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
Only one top level element is allowed in an XML document. Error processing resource 'http://apex.oracle.com/pls/otn/f?p=158...
<script language="JavaScript1.1" type="text/javascript">
-^
m">>
<DIVI have a 600 row table (dml below) with identical string in each row of the descript column. (I put in some special characters just to push it through the escape function for html. It is displaying the text correctly.)
The page has one report region (plsql below).
The page template is stripped down.
My local results are identical to the otn hosted workspace.
I did dump the table in xml format and displayed the dump file in browser without a problem, so I'm missing something in the code.
Thank you.
Albert
On OTN webspace, go to http://apex.oracle.com/pls/otn/f?p=15866:1:1291425545573680200:::::
plsql
declare
xdescript varchar2(4000);
begin
-- xml preface is in the page template
-- htp.p('<?xml version="1.0"?>');
htp.p('<rowset>');
begin
for item in
(select descript,cid from receipts order by cid)
loop
htp.p ('<row>');
xdescript := htf.escape_sc(item.descript);
htp.p('<cid>' || item.cid || '</cid>');
htp.p('<descript>'|| xdescript || '</descript>');
htp.p('</row>');
end loop;
end;
htp.p ('</rowset>');
end;
dml
CREATE TABLE "RECEIPTS"
( "CID" NUMBER,
"AMOUNT" NUMBER NOT NULL ENABLE,
"CLEARED" DATE,
"DESCRIPT" VARCHAR2(80),
"DATEENTERED" DATE DEFAULT SYSTIMESTAMP,
"CHECKNBR" NUMBER,
"CLEARSEQ" NUMBER DEFAULT 0,
CONSTRAINT "RECEIPTS_PK" PRIMARY KEY ("CID") ENABLE
CREATE SEQUENCE "RECEIPTS_SEQ" MINVALUE 1 MAXVALUE 999999999999999999999999999
INCREMENT BY 1 START WITH 4319 CACHE 20 NOORDER NOCYCLE
CREATE OR REPLACE TRIGGER "BI_RECEIPTS"
BEFORE INSERT ON "RECEIPTS"
FOR EACH ROW
BEGIN
SELECT "RECEIPTS_SEQ".NEXTVAL INTO :NEW.CID FROM DUAL;
END;
ALTER TRIGGER "BI_RECEIPTS" ENABLE
/May be it helps you. I use SQL/XML and APEX Application Process to generate XML succesfully
Here is the result:
http://htmldb.oracle.com/pls/otn/f?p=9774:101:0:APPLICATION_PROCESS=RSSNEWEVENTS
and here is the Process Text source:
declare
a clob;
begin
owa_util.mime_header( ccontent_type => 'text/xml', bclose_header => TRUE, ccharset => 'utf-8');
htp.prn('<?xml version="1.0" encoding="UTF-8"?>');
select
XMLTYPE.getStringVal(
XMLElement("rss",
XMLAttributes('2.0' as version),
XMLElement("channel",
XMLConcat(
XMLElement("title",'iActiveLife - novinky'),
XMLElement("link",'http://www.iactivelife.cz/'),
XMLElement("description",'iActiveLife - Zajímavý ivot snadněji'),
XMLElement("language",'cs'),
XMLElement("pubdate",''),
XMLAgg(
XMLElement("item",
XMLConcat(
XMLElement("title",event_name),
XMLElement("link",'http://htmldb.oracle.com/pls/otn/f?p=' || v('APP_ID') || ':37:' || v('SESSION') || '::NO::P37_EVENT_ID:' || event_id),
XMLElement("description",'')
) into a
from (
select event_id,event_name,issue_date, last_update_order
from (
select events.event_id, events.event_name, events.issue_date, rank () over (order by events.issue_date desc) as last_update_order
from events
where exists ( select * from opportunities where events.event_id=opportunities.event_id and opportunities.user_id is not null)
order by events.issue_date desc)
where last_update_order<=10
htp.prn(a);
end; -
How to write the oracle data as XML format. (.XML file)
create or replace procedure pro(p_number )
is
cursor c1 is select *from emp where empno=p_number;
v_file utl_file.file_type;
begin
v_file := utl_file.fopen('dirc','filename.txt','w');
for i in c1 loop
utl_file.put_line(v_file,i.ename || i.empno ||i.job);
end loop;
closef(v_file);
end;
Now my client want instead of .txt file he need .xml files
File should contains xml tags. can any one help regarding this.. with one example.
How to write the oracle data as XML format. (.XML file)hi,
hope this example will do something....
SQL> select employee_id, first_name, last_name, phone_number
2 from employees where rownum < 6
EMPLOYEE_ID FIRST_NAME LAST_NAME PHONE_NUMBER
100 Steven King 515.123.4567
101 Neena Kochhar 515.123.4568
102 Lex De Haan 515.123.4569
103 Alexander Hunold 590.423.4567
104 Bruce Ernst 590.423.4568
SQL> select dbms_xmlgen.getxml('select employee_id, first_name,
2 last_name, phone_number from employees where rownum < 6') xml
3 from dual;
*<?xml version="1.0"?>*
*<ROWSET>*
*<ROW>*
*<EMPLOYEE_ID>100</EMPLOYEE_ID>*
*<FIRST_NAME>Steven</FIRST_NAME>*
*<LAST_NAME>King</LAST_NAME>*
*<PHONE_NUMBER>515.123.4567</PHONE_NUMBER>*
*</ROW>*
*<ROW>*
*<EMPLOYEE_ID>101</EMPLOYEE_ID>*
*<FIRST_NAME>Neena</FIRST_NAME>*
*<LAST_NAME>Kochhar</LAST_NAME>*
*<PHONE_NUMBER>515.123.4568</PHONE_NUMBER>*
*</ROW>*
*<ROW>*
*<EMPLOYEE_ID>102</EMPLOYEE_ID>*
*<FIRST_NAME>Lex</FIRST_NAME>*
*<LAST_NAME>De Haan</LAST_NAME>*
*<PHONE_NUMBER>515.123.4569</PHONE_NUMBER>*
*</ROW>*
*<ROW>*
*<EMPLOYEE_ID>103</EMPLOYEE_ID>*
*<FIRST_NAME>Alexander</FIRST_NAME>*
*<LAST_NAME>Hunold</LAST_NAME>*
*<PHONE_NUMBER>590.423.4567</PHONE_NUMBER>*
*</ROW>*
*<ROW>*
*<EMPLOYEE_ID>104</EMPLOYEE_ID>*
*<FIRST_NAME>Bruce</FIRST_NAME>*
*<LAST_NAME>Ernst</LAST_NAME>*
*<PHONE_NUMBER>590.423.4568</PHONE_NUMBER>*
*</ROW>*
*</ROWSET>*
ask if you want more assistance.
thanks. -
Converting xml string to valid xml format In biztalk expression shape
<DocumentElement>
<ApplicationStatus>
<ApplicationName>XpathDebatch</ApplicationName>
<Status>Stopped</Status>
<ReceivePorts>RcvRates, </ReceivePorts>
<Sendports>SendRates, </Sendports>
<Orchestration>xpathDebatch.BizTalk_Orchestration1,</Orchestration>
</ApplicationStatus>
</DocumentElement>
<DocumentElement>
<ApplicationStatus>
<ApplicationName>SendingSMTPEmail</ApplicationName>
<Status>Stopped</Status>
<ReceivePorts>SendingSMTPEmail_1.0.0.0_SendingSMTPEmail.Process_SendSMTPEMail_Port_RcvInputMsg_6d1bf831128e1b5e, </ReceivePorts>
<Sendports>SendingSMTPEmail_1.0.0.0_SendingSMTPEmail.Process_SendSMTPEMail_Port_SendSMTPMail_6d1bf831128e1b5e, </Sendports>
<Orchestration>SendingSMTPEmail.Process_SendSMTPEMail,</Orchestration>
<Pipeline>SendingSMTPEmail.SP_SendSMTPEMail</Pipeline>
</ApplicationStatus>
</DocumentElement>
<DocumentElement>
<ApplicationStatus>
<ApplicationName>OracleTest</ApplicationName>
<Status>Stopped</Status>
<ReceivePorts>RcvFromOracle, </ReceivePorts>
<Sendports>SendToFolder, </Sendports>
</ApplicationStatus>
</DocumentElement>
<DocumentElement>
Hello all,
I am getting an string(variable) like I shown above, I want to convert that to Proper Xml Format in
Expression shape itself (<root>Data</root>)
so that I can Load it to xml and send it to Local Folder.
ThanksHi
NILESH_AES,
Based on your title, your case related to BizTalk. I will move your thread to
BizTalk Server > BizTalk Server General
forum for better support.
Best regards,
Kristin
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Hi all,
To post a document to bank i have used digital signature using SSF functions. It is working fine. And my recipient received the data with digital signature.
Now I have a problem, when i use SSF function my input data is converted into binary format, which is not accepatble by the recipient system. They wanted the format to be in XML. How do I convert my binary data to XML format. OR am i doing something wrong.
My program flow is like this,
1. get the data from SAP.
2. using FM SSF_KRN_SIGN.
3. Output of SSF_KRN_SIGN, is passed to SSF_KRN_ADDSIGN.
4. Output of SSF_KRN_ADDSIGN is passed to HTTP_POST to the bank.
When I send data to FM SSF_KRN_SIGN, my input data is plain text format, the return value from this FM is in binary format.
Could any one help me in solving my problem .
Regards,
prabhu rajesh.I believe that the XML and the digital signature are two separate things. When you call SSF_KRN_SIGN it takes whatever input data you have and signs it - producing a binary output table. If your bank wants its dta in XML, you will have to change your input data to the function SSF_KRN_SIGN into XML before passing it to the function. Use the iXML classes or if on 620 the Call Transformation command (Both of which have been discussed on this forum before) to change your data into iXML. Output your XML Stream as a character Table. Feed this Character table into the function modeul SSF_KRN_SIGN. The results of this function module will be your XML stream, digitally signed, and in binary format.
Maybe you are looking for
-
I am using .Net Framework 4 C# web service project. I am connecting with XMLA service (using as web reference) in my C# project. The issue seems to be able to handle the French characters once i am getting response back from the XMLA execute method.
-
Calling an oracle stored procedure with output parameter
Hi, I am trying to execute a procedure with 2 input and 1 output parameters by using SQLQuery. I tried each mode (Command, FixedQuery & FixedQueryWithOutput) with following statements. call cm_test_prod([Param.1],[Param.2],[Param.3]) Error:"missing e
-
Dear All, I am having a doubt regarding the cross company postings. The issue what i am facing is I am having two company codes let it be A & B, now that co.code A had purchased from the vendor V and the payment to vendor V has to be made throug
-
While using F-29 ERROR:-NO SPECIAL GL DEFINED FOR ACCT TYPE D
Dear sap guru's Please help us to sort out this problem as on urgent basis.............we will mostly appreciates your solution. Matter:While using f-29 error:-NO SPECIAL GL DEFINED FOR ACCT TYPE D.IND A RECON ACCNT 160100000
-
Adobe Pro 8.1 Problems updating, and more
I originally installed a new Arobat Pro 8.0, subsequently updated to 8.1. 1. Recently, when i get notices of an update, i run the update. It proeeds, finishes then, with no explanation announces that the pdate failed. 2. For no reason I can spot, a