How to generate xml file with multiple nodes using sqlserver as database in SSIS..
Hi ,
I have to generate the xml file using multiple nodes by using ssis and database is sqlserver.
Can some one guide me on to perform this task using script task?
sudha
Why not use T-SQL for generating XML? You can use FOR XML for that
http://visakhm.blogspot.in/2014/05/t-sql-tips-fun-with-for-xml-path.html
http://visakhm.blogspot.in/2013/12/generating-nested-xml-structures-with.html
Please Mark This As Answer if it solved your issue
Please Vote This As Helpful if it helps to solve your issue
Visakh
My Wiki User Page
My MSDN Page
My Personal Blog
My Facebook Page
Similar Messages
-
Hello Guru,
could you please help with my issue with Fiori Installation.
We want to install SAP Fiori Front-End (GW+UI) on the Sandbox system with SAP Netweaver 7.3.1. (SP14)
Gateway component (SAP GW CORE 200 SP10) was installed without any problems.
But I need to install UI-add-on (NW UI Extensions v1.0) and when I try to install it via SAINT, transaction said me that I need to generate xml-file for it (as in General notes for UI add-on mentioned).
But I have Solution Manager 7.0.1 and in MOPZ for this version I do not have option "install Add-on" as it written in Guide for ui add-on installation.
Could you please help me with advice how to generate xml-file for UI add-on installation on SolMan v.7.0.1?
If where is no way, but only to upgrade Solution Manager, maybe somebody could give me xml-file for your system (for NW 731) and I will change it to my needs, I will be very grateful!
Thanks in advance for any help!!!
Bets regards,
Natalia.Hello Guru,
could you please help with my issue with Fiori Installation.
We want to install SAP Fiori Front-End (GW+UI) on the Sandbox system with SAP Netweaver 7.3.1. (SP14)
Gateway component (SAP GW CORE 200 SP10) was installed without any problems.
But I need to install UI-add-on (NW UI Extensions v1.0) and when I try to install it via SAINT, transaction said me that I need to generate xml-file for it (as in General notes for UI add-on mentioned).
But I have Solution Manager 7.0.1 and in MOPZ for this version I do not have option "install Add-on" as it written in Guide for ui add-on installation.
Could you please help me with advice how to generate xml-file for UI add-on installation on SolMan v.7.0.1?
If where is no way, but only to upgrade Solution Manager, maybe somebody could give me xml-file for your system (for NW 731) and I will change it to my needs, I will be very grateful!
Thanks in advance for any help!!!
Bets regards,
Natalia. -
Loading xml file with multiple rows
I am loading data from xml files using xsl for transformation. I have created xsl's and loaded some of the data. In an xml file with multiple row, it's only loading one (the first) row. Any idea how I can get it to read and load all the records in the file???
Could some please help me with the above. I desparately need to move forward.
-
How to generate XML file based on XSD in SSIS
please provide step by step process to create xml based on XSD in SSIS
Hi hemasankar,
In SQL Server Integrated Services, we can generate XML Schema (XSD) file based on a XML file with XML Source Editor. If we want to generate XML file based on a XSD file, we can use Generate Sample XML feature in Visual Studio. For more details, please refer
to the following steps:
Click on "XML Schema Explorer" or 'Use the XML Schema Explorer...' to open XML Schema Explorer in Visual Studio.
If your Schema file is valid and you are having elements, right-click on element and click on "Generate Sample XML", this functionality generates XML file in temp folder and open ups in the XML Editor.
The following two document about how to generate XML file based on a XSD file are for your reference:
http://msdn.microsoft.com/en-us/library/dd489258.aspx
http://www.codeproject.com/Articles/400016/Generate-Sample-XML-from-XSD
If there are any other questions, please feel free to ask.
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support -
How to validate xml file with XSD schema ?? in JDK1.4.2
How to validate xml file with XSD schema ?? in JDK1.4.2
i dont want to use new Xerec Jar ...
Suggest option ...Please do not double-post. http://forum.java.sun.com/thread.jspa?threadID=5134447&tstart=0
Then use Stax (Woodstock) or Saxon.
- Saish -
How to send XML file to https server using POST
Hi, I am having an requirement, that I have to connect to https server and I have to pass an input XML file as a response server will give me output XML file.
The certificate validation part is over, I am using FileInputStream to read the XML file and attaching this to connection.getOutputStream(); but server is throwing me DTD does n't match.
Can any body tell me how to send XML file, I have to use any DOM parser to send the XML file, suggest me and give me sample code.
Thanks,Can anybody give me the solution
-
How to generate XML file from SQL file !
I am new to XML publisher. I known one way to generate XML file is register one report file in concurrent manager.
But I want to generate XML file from sql file.
Could someone show me how to code in sql file, how to register is in concurrent manager.
Thanks !Hi
Phew ... not sure we have the space here. So I can point you in the right direction:
1. XML data generation - there are two packages in the db you can use with a plsql procedure, XMLGEN and SQL XML. You can also use java APIs too. Try checking the db documentation and search for the above methods.
2. Registering the report - the system administrators guide will provide this info. Hooking the program up with XMLP is covered here - http://www.oracle.com/technology/products/applications/publishing/resource/CM%20Whitepaper5.0.pdf
Regards, Tim -
How to parse XML file with namesapce?
Hi,
I am trying to parse an xml file having namespace. But no data is returned.
Sample Code:
public class XMLFileLoader
var xml:XML = new XML();
var myXML:XML = new XML();
var XML_URL:String = "file:///C:/Documents and Settings/Administrator/Desktop/MyData.xml";
var myLoader:URLLoader = null;
public function XMLFileLoader()
var myXMLURL:URLRequest = new URLRequest(XML_URL);
myLoader= new URLLoader(myXMLURL);
myLoader.addEventListener(Event.COMPLETE,download);
public function download(event:Event):void
myXML = XML(myLoader.data);
var ns:Namespace=myXML.namespace("xsi");
for(var prop:String in myXML)
trace(prop);
//Alert.show(myXML..Parameters);
//trace("Data loadedww."+myXML.toString());
//Alert.show(myXML.DocumentInfo.attributes()+"test","Message");
The XML Contains the following format.
<Network xmlns="http://www.test.com/2005/test/omc/conf"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.test.com/2005/test/omc/conf/TestConfigurationEdition3proposal4.xsd">
<TestDomain>
<WAC>
<!--Release Parameter -->
<Parameters ParameterName="ne_release" OutageType="None"
accessRight="CreateOnly" isMandatory="true"
Planned="false"
Reference="true" Working="true">
<DataType>
<StringType/>
</DataType>
<GUIInfo graphicalName="Release"
tabName="All"
description="Describes the release version of the managed object"/>
</Parameters>
</TestDomain>
</Network>
Any sample code how to parse this kind of xml file with namespaces...
Regards,
Purushothami have exactly the same problem with KXml2, but using a j2me-polish netbeans project.
i've tried to work around with similar ways like you, but none of them worked. now i've spent 3 days for solving this problem, i'm a bit disappointed :( what is wrong with setting the downloaded kxml2 jar path in libraries&resources?
screenshot -
How to generate XML file in SAP
Hi,
I have a requirement where i have to genreate the XML file with tags in SAP using classes.
Then i will pass this XML data in IDOC segment in a string and then this will go to XI team.
there are many classes CLXML but i am not sure which class i have to use.
If someone has worked on it, then kindly tell me.
thanks,
Mamta
Moderator message: please search for available information/documentation before asking, a lot about XML can be found in SAP online documentation.
Edited by: Thomas Zloch on Oct 22, 2010 1:17 PMHi Kamen
There are various flavors how you can integrate SAP into SWIFTNet.
We have implemented such solutions for 40+ customes with various SAP blueprints:
- full blown SAP with ECC 6.0, PI/BCM incl. SIPS
- SAP ECC 6.0 with PI but no SIPS
- SAP ECC 6.0 with BCM but no PI and SIPS
- SAP ECC 6.0 direct integration
1) payment format templates (e. g. MT101 or XML PAIN.001 are available in Payment Medium Workbench (PMW) and can be modified with Data Definition Exchange Engine (DDEE) to the bank specific flavor.
2) mapping would be provided by us in the Service Bureau
The longer the more we see the trend, that a corporate only maintains one payment format in SAP and we then map it to to bank or country specific format and flavor. -
i used form2xml in oracle 10 g suit to convert forms 5 .fmb to .xml . using the command:
frmf2xml.bat OVERWRITE=YES myform.fmb
The forms contains arabic character set, but the xml file is generated with character "????????? " , and the xml file is unusable
what can i do to keep arabic characters in the generated xml files.
Edit:
I run form2xml on windows xp SP3 with arabic support (codepage =1256)
The xml file is generated as UTF-8I resolved the problem.
step1: search in the registry for every NLS_Lang key and modify its value to codepage 1256 using regedit
step2: in control panel-Region and Language , I modified language to be Arabic
Now every thing is good -
How to generate XML file using select files manually option in MOPz
Hi Guru's!
Can someone tell me how can I generate XML file not using the calculate automatically option but using select files manually. thanks!Hi Maix,
You may manually add the files into download basket and then approve it.
Use the SCN document below for the steps.
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/10b14f0c-b9af-2e10-ba83-f05ebcfbc3c2?QuickLink=index&…
Hope this helps.
Regards,
Deepak Kori -
Validating generated XML file with DTD
Hello all,
my requirement is to test the XML file with its DTD.
we are creating an XML file, before writing it on the application server , we need to test it with its DTD.
i found one method set_validating in the interface if_ixml_parser , for validating XML file, but not getting an idea how to use it, like how to link the DTD to XML etc.
if i try to use the above method am getting the following error:
Unable to retrieve the external entity 'd:\dtdfile.dtd'.
where 'd:\dtdfile.dtd' is the path of the DTD file included in the Doctype of the XML file.
Please help me to solve this.
Thx in advance.Hello,
Did you find your answer ?
I know how to validate an XML file an internal DTD, but not an external one... If you know, can you pelase advice ?
If you didn't found yet, you need to use method get_reason() to get the description of the error.
best regards,
Gilles. -
How to generate XML file from oracle database query result
Hi dudes,
as stated on the subject, can anyone suggests me how can i achieve the task stated above??
Here is a brief description of my problem:
I need to create a XML file once i query from the oracle database, and the query result returned from the database will be stored in XML file.
I'd searched around the JAXB, DOM, SAXP and the like basic concepts, but i still don't know how to start??
Any suggestions ???Read this:
http://www.cafeconleche.org/books/xmljava/chapters/ch08s05.html
You might have to read more of the book to understand that chapter. -
How to populate a form from an xml file with multiple records
I want to be able to create a single form that will add pages as needed based upon the number of records being imported from an xml file.
I have an IRS form that does this exactly, but I do not know how to re-create it. I entered data into the form, then exported that data to xml. Then I opened that xml file in excel and added more records (this is just an easy way to manage the xml data in a tabular form). Then I import the changed xml file into the IRS form and it adds as many pages as I have records. Perfect! Unfortunately, I cannot edit the form to examine the technique. It does not appear to be relying upon any additional local javascript files. It does use an 'add page' button which may suggest the form is using the template .spawn() technique, but when I try that in my own form, it gives me unique field names for each page which are then not consistent with the xml data. Hopefully someone can help me understand what I am missing.did you want
<record>0
<data>"11.97.23.174/32"
<record>address <data>
<record>address <data>
<record>subnet <data>
<record>ip <data>"10.97.23.174"</data></record>
</data></record>
</data></record>
</data></record>
</data></record>
or
<record>0
<data>"11.97.23.174/32"
<record>address <data>
<record>address <data>
<record>subnet <data>
<record>ip <data>"10.97.23.174"</data></record> -
Generate XML file with Elements and attributes from Oracle table
Hi,
I have the following table structure.
CREATE TABLE COIL
COIL_ID NUMBER(10),
COIL_NUMBER VARCHAR2(40),
COIL_PO_OPERATING_UNIT VARCHAR2(20),
COIL_PO_NUMBER VARCHAR2(40),
MILL_NUMBER VARCHAR2(2),
MILL_COIL_STATUS VARCHAR2(15),
ITEM_NUMBER VARCHAR2(40),
COIL_WEIGHT NUMBER(38),
WEIGHT_UOM VARCHAR2(10),
DOCUMENT_NUMBER VARCHAR2(40),
DOCUMENT_DATE DATE,
DOCUMENT_STATUS VARCHAR2(15),
DOCUMENT_TYPE VARCHAR2(20),
DOCUMENT_SOURCE VARCHAR2(20),
TEST_ID NUMBER(38),
VALUE NUMBER,
TEST_UOM VARCHAR2(20),
TEST_STATUS VARCHAR2(70),
TESTER_LOGIN VARCHAR2(20),
EQUIPMENT_CODE VARCHAR2(50),
DOC_STS_MSG VARCHAR2(600)
For each COILID record, there could be multiple records baased on TEST_ID/VALUE/TEST_UOM etc.
And I would like to prepare xml file in the following format by selecting data from COIL?
<?xml version="1.0"?>
-<Coil xsi:noNamespaceSchemaLocation="www.tempel.com/COIL.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xdb="http://xmlns.oracle.com/xdb">
<CoilId>1419532</CoilId>
<CoilNo>D2221050010A0</CoilNo>
<CoilPOOperatingUnit>Changzhou</CoilPOOperatingUnit>
<CoilPONo>4619</CoilPONo>
<MillNo>86</MillNo>
<MillCoilStatus>Test</MillCoilStatus>
<ItemNo>050FP800 C5</ItemNo>
<Weight>7076</Weight>
<UOM>KILOGRAM</UOM>
<DocumentNo>0</DocumentNo>
<DocumentDate>2013-01-11</DocumentDate>
<DocumentStatus>NonProcessed</DocumentStatus>
<DocumentType>Tests</DocumentType>
<DocumentSource>CHIGMA1</DocumentSource>
<Tests DocStsMsg="0" EquipmentCode="CHIGMA1" TesterLogin="dpkrueger" Value="0.4992" TestUnit="mm" Status="NonProcessed" TestId="135"/>
<Tests DocStsMsg="0" EquipmentCode="CHIGMA1" TesterLogin="dpkrueger" Value="0.0128" TestUnit="mm" Status="NonProcessed" TestId="124"/>
<Tests DocStsMsg="0" EquipmentCode="CHIGMA1" TesterLogin="dpkrueger" Value="12" TestUnit="mm" Status="NonProcessed" TestId="125"/>
<Tests DocStsMsg="0" EquipmentCode="CHIGMA1" TesterLogin="dpkrueger" Value="0.5095" TestUnit="mm" Status="NonProcessed" TestId="127"/>
<Tests DocStsMsg="0" EquipmentCode="CHIGMA1" TesterLogin="dpkrueger" Value="0.5042" TestUnit="mm" Status="NonProcessed" TestId="128"/>
<Tests DocStsMsg="0" EquipmentCode="CHIGMA1" TesterLogin="dpkrueger" Value="0.5058" TestUnit="mm" Status="NonProcessed" TestId="129"/>
<Tests DocStsMsg="0" EquipmentCode="CHIGMA1" TesterLogin="dpkrueger" Value="0.4967" TestUnit="mm" Status="NonProcessed" TestId="130"/>
<Tests DocStsMsg="0" EquipmentCode="CHIGMA1" TesterLogin="dpkrueger" Value="0.5049" TestUnit="mm" Status="NonProcessed" TestId="131"/>
<Tests DocStsMsg="0" EquipmentCode="CHIGMA1" TesterLogin="dpkrueger" Value="0.4972" TestUnit="mm" Status="NonProcessed" TestId="132"/>
<Tests DocStsMsg="0" EquipmentCode="CHIGMA1" TesterLogin="dpkrueger" Value="0.4960" TestUnit="mm" Status="NonProcessed" TestId="133"/>
<Tests DocStsMsg="0" EquipmentCode="CHIGMA1" TesterLogin="dpkrueger" Value="0.4996" TestUnit="mm" Status="NonProcessed" TestId="134"/>
</Coil>
Can you please guide me how to do it in a single query?
Thanks in advance.Hi Odie,
Thanks for the quick offer.Sure,No problem.I expect the format to be as follows
<Coil xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="www.tempel.com/COIL.xsd">
<CoilId>97239</CoilId>
<CoilNo>777078</CoilNo>
<CoilPOOperatingUnit>TSUSA</CoilPOOperatingUnit>
<CoilPONo>3407</CoilPONo>
<MillNo>31</MillNo>
<MillCoilStatus>Test</MillCoilStatus>
<ItemNo>0140SP150 C5A</ItemNo>
<Weight>17365</Weight>
<UOM>POUNDS</UOM>
<DocumentNo>0</DocumentNo>
<DocumentDate>2008-10-13</DocumentDate>
<DocumentStatus>Processed</DocumentStatus>
<DocumentType>Tests</DocumentType>
<DocumentSource>MILL</DocumentSource>
<Tests EquipmentCode="MILLEDI" TesterLogin="MILLEDI" Value="84" TestUnit="15T" Status="Processed" TestId="65"></Tests>
<Tests EquipmentCode="MILLEDI" TesterLogin="MILLEDI" Value="1.39" TestUnit="W/Lb" Status="Processed" TestId="48"></Tests>
<Tests EquipmentCode="MILLEDI" TesterLogin="MILLEDI" Value="1979" TestUnit="W/Lb" Status="Processed" TestId="49"></Tests>
</Coil>
But instead it came with below format
<Coil xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSch
emaLocation="www.tempel.com/COIL.xsd"><CoilId>97239</CoilId><CoilNo>777078</Co
ilNo><CoilPOOperatingUnit>TSUSA</CoilPOOperatingUnit><CoilPONo>3407</CoilPONo>
<MillNo>31</MillNo><MillCoilStatus>Test</MillCoilStatus><ItemNo>0140SP150 C5A<
/ItemNo><Weight>17365</Weight><UOM>POUNDS</UOM><DocumentNo>0</DocumentNo><Docu
mentDate>2008-10-13</DocumentDate><DocumentStatus>Processed</DocumentStatus><Do
cumentType>Tests</DocumentType><DocumentSource>MILL</DocumentSource><Tests Equ
ipmentCode="MILLEDI" TesterLogin="MILLEDI" Value="84" TestUnit="15T" Status="P
rocessed" TestId="65"></Tests><Tests EquipmentCode="MILLEDI" TesterLogin="MILL
EDI" Value="1.39" TestUnit="W/Lb" St atus="Processed" TestId="48"></Tests><Tes
ts EquipmentCode="MILLEDI" TesterLog in="MILLEDI" Value="1979" TestUnit="W/Lb"
Status="Processed" TestId="49"></Tests></Coil>
The sample insert records are as follows
insert into COIL (coil_id, coil_number, coil_po_operating_unit, coil_po_number, mill_number, mill_coil_status, item_number, coil_weight, weight_uom, document_number, document_date, document_status, document_type, document_source, test_id, value, test_uom, test_status, tester_login, equipment_code, doc_sts_msg)
values (97239, '777078', 'USA', '3407', '31', 'Test', '0140SP150 C5A', 17365, 'POUNDS', '0', to_date('13-10-2008', 'dd-mm-yyyy'), 'Processed', 'Tests', 'MILL', 65, 84, '15T', 'Processed', 'MILLEDI', 'MILLEDI', null);
insert into COIL (coil_id, coil_number, coil_po_operating_unit, coil_po_number, mill_number, mill_coil_status, item_number, coil_weight, weight_uom, document_number, document_date, document_status, document_type, document_source, test_id, value, test_uom, test_status, tester_login, equipment_code, doc_sts_msg)
values (97239, '777078', 'USA', '3407', '31', 'Test', '0140SP150 C5A', 17365, 'POUNDS', '0', to_date('13-10-2008', 'dd-mm-yyyy'), 'Processed', 'Tests', 'MILL', 48, 1.39, 'W/Lb', 'Processed', 'MILLEDI', 'MILLEDI', null);
insert into COIL (coil_id, coil_number, coil_po_operating_unit, coil_po_number, mill_number, mill_coil_status, item_number, coil_weight, weight_uom, document_number, document_date, document_status, document_type, document_source, test_id, value, test_uom, test_status, tester_login, equipment_code, doc_sts_msg)
values (97239, '777078', 'USA', '3407', '31', 'Test', '0140SP150 C5A', 17365, 'POUNDS', '0', to_date('13-10-2008', 'dd-mm-yyyy'), 'Processed', 'Tests', 'MILL', 49, 1979, 'W/Lb', 'Processed', 'MILLEDI', 'MILLEDI', null);
commit;
Thanks in Advance.
Maybe you are looking for
-
I am using Netbeans 7.4. I would like one that would show me how to connect to the database and how to use code snippets on an ActionPerformed event that would Create, Delete, and Save new records as well as navigate the database, Using as many image
-
Testing of SOAP to FILE Scenario
Hi all I have done with SOAP to FILE scenario. --> while defining web service what we need to give in the URL???? --> How to test this SOAP to FILE scenario to see wheather it is working fine or not, what are the all options Thanks Dheeraj
-
Browser scrollbar and Flash scrollbar ? I need help!
Now I have a problem about the scrollbar: The height of my swf file is longer than browser height, so the scrollbar of browser's occurred, if I scroll my mouse wheel, the whole flash roll down, but the problem is that I have used a scrollPanel compon
-
Transfer Recvables & payables to Profit Center accounting
Hi How can we transfer the recieveables & payables to profit center accounting? Regards Samir
-
New requirement in adding a Company Code...
Hi All, There is a new requirement is adding some new Company Codes. Once the company code is segregated and added in ECC. How much effort required to set up this new company code in BI? Could anyone please guide, what would be the activities p