Is it possible to generate this XML file?
Hi guys,
I'm starting to work with XML features at Oracle an I would like to know if it is possible to generate the following XML file with Oracle:
<?xml version="1.0" encoding="UTF-8"?>
<DATA_IMPORT LOCALE="en_GB" VERSION="5.2">
<RULE_SET>
<RULE BUSINESS_UNITS="Canada" CALENDAR="Main Monthly Calendar" EFFECTIVE_END_DATE="01-Jan-2200" EFFECTIVE_START_DATE="01-Jan-2005" NAME="CAN-Direct Sales Booking Credit" TYPE="DIRECT_TRANSACTION_CREDIT">
<ACTION_EXPRESSION_SET>
<ACTION_EXPRESSION>
<FUNCTION ID="DIRECT_TRANSACTION_CREDIT" RULE_TYPES="DIRECT_TRANSACTION_CREDIT">
<OUTPUT_REFERENCE NAME="CAN-Direct Sales Booking Credit" PERIOD_TYPE="month" TYPE="Credit" UNIT_TYPE="Can"/>
<DATA_FIELD>SalesTransaction.value</DATA_FIELD>
<HOLD_REF NAME="Release Immediately" PERIOD_OFFSET="0" PERIOD_TYPE="Release Immediately"/>
<STRING_LITERAL>NULL</STRING_LITERAL>
<CREDIT_TYPE>booking</CREDIT_TYPE>
<BOOLEAN>false</BOOLEAN>
<BOOLEAN>true</BOOLEAN>
<DATA_FIELD>SalesTransaction.compensationDate</DATA_FIELD>
</FUNCTION>
</ACTION_EXPRESSION>
</ACTION_EXPRESSION_SET>
<CONDITION_EXPRESSION>
<OPERATOR ID="ISEQUALTO_OPERATOR">
<DATA_FIELD>SalesTransaction.eventType.eventTypeId</DATA_FIELD>
<STRING_LITERAL><![CDATA[booking]]></STRING_LITERAL>
</OPERATOR>
</CONDITION_EXPRESSION>
<TERRITORY_EXPRESSION>
<RULE_ELEMENT_REF ID="TERRITORYVARIABLE" NAME="CAN-Territory Variable"/>
</TERRITORY_EXPRESSION>
</RULE>
</RULE_SET>
</DATA_IMPORT>
I investigated some of the dbms_xmlgen features, but I can't understand how to define the following tag, for example:
"<RULE BUSINESS_UNITS="Canada" CALENDAR="Main Monthly Calendar" EFFECTIVE_END_DATE="01-Jan-2200" EFFECTIVE_START_DATE="01-Jan-2005" NAME="CAN-Direct Sales Booking Credit" TYPE="DIRECT_TRANSACTION_CREDIT">"
Any help is welcome.
Thanks.
Rui Barata
I would offer that the SQL/XML functions of XMLElement/XMLForest/XMLAgg would be more appropriate to your situation. They give you finer control over the XML that is generated. You can find examples in this forum or the {forum:id=34} forum.
Similar Messages
-
How to generate this xml file?
Dear experts,
Could you please tell me how to generate to below xml file?
<?xml version="1.0" encoding="utf-8" ?>
- <faxmakerdata>
- <RECIPIENTS>
- <FAX>
- <RECIPIENT>
<FIRSTNAME>><![CDATA[]]></FIRSTNAME>
<LASTNAME><![CDATA[]]></LASTNAME>
<COMPANY><![CDATA[]]></COMPANY>
<DEPARTMENT><![CDATA[]]></DEPARTMENT>
<EMAILADDRESS><![CDATA[]]></EMAILADDRESS>
<NUMBER><![CDATA[2937]]></NUMBER>
<VOICENUMBER><![CDATA[]]></VOICENUMBER>
</RECIPIENT>
</FAX>
</RECIPIENTS>
</faxmakerdata>
I have used "SDIXML_DATA_TO_DOM " but there will appear <Item>
could you please tell me how to do?Hi,
after SDIXML_DATA_TO_DOM fm Use SDIXML_DOM_TO_XML to convert DOM to XML
then u can use any download file FM .
DATA:
TABLESTATS LIKE MSSTABSIZEINFO,
IVALUE TYPE I,
BEGIN OF VERSIONTAB OCCURS 0,
VERSIONDAT LIKE SY-DATUM,
END OF VERSIONTAB,
CMD(384) TYPE C,
XML_AS_STRING TYPE XSTRING,
DOCUMENT TYPE REF TO IF_IXML_DOCUMENT,
DOM TYPE REF TO IF_IXML_ELEMENT,
TABLENAME(128) TYPE C,
RC TYPE SY-SUBRC,
L_EXISTS LIKE DD02L-ACTFLAG.
convert table to a DOM
CALL FUNCTION 'SDIXML_DATA_TO_DOM'
EXPORTING
NAME = 'spinfo'
DATAOBJECT = SPINFO[]
IMPORTING
DATA_AS_DOM = DOM
CHANGING
DOCUMENT = DOCUMENT
EXCEPTIONS
OTHERS = 01.
IF SY-SUBRC = 0.
CALL METHOD DOCUMENT->APPEND_CHILD
EXPORTING
NEW_CHILD = DOM
RECEIVING
RVAL = RC.
IF RC = 0.
convert DOM to XML
CALL FUNCTION 'SDIXML_DOM_TO_XML'
EXPORTING
DOCUMENT = DOCUMENT
PRETTY_PRINT = 'X'
IMPORTING
XML_AS_STRING = XML_AS_STRING
SIZE = IVALUE
TABLES
XML_AS_TABLE = XML_AS_TABLE
EXCEPTIONS
OTHERS = 2.
IF SY-SUBRC = 0.
MOVE XML_AS_STRING TO XML_AS_STRING_OUT-XML_STRING.
MOVE IVALUE TO XML_AS_STRING_OUT-LENGTH.
ENDIF.
ENDIF.
ENDIF.
Salil... -
How to generate an XML file from SSIS (based on an XSD)?
I have an XSD that describes an XML format. I also have a sample XML file as well from the XSD. I am trying to understand SSIS's capability to generate the XML file in an ETL process. I would need to create the XML file based on the XSD that
I have. It is safe to assume that all the data elements are in the DB that I am incorporating in the ETL and it is also safe to assume that the data in the XML may be from multiple different tables (so massaging is probably necessary).
Would this be a job for C#/VB or can I do this through an SSIS process/task? Please help me understand my options. Thanks.Dear All,
Indeed the post by RamJaddu did not answer the question. I am having the same issue: I have been provided an .xsd file which contains a data schema, and I have all of the necessary
data in a .mdf file in order to create the required .xml file. Having queried SQL Server and received my data in "myDataSet" I can use C# to create the .xml ignoring the schema using
string strSchemaFile = @"F:\Documents\UserCost\VictorianDataCollection\VCDCSchema_v2.xsd";
string strXmlFile = "testXmlExport.xml";
myDataSet.WriteXmlSchema(strSchemaFile);
myDataSet.WriteXml(strXmlFile, XmlWriteMode.IgnoreSchema);
but how do I export the .xml file so that is conforms with the .xsd format?
If any of you have worked this out the answer would be most appreciated.
All the best,
Nick
"Everything should be made as simple as possible, but not simpler" - Einstein -
Unable to generate users.xml file
Hi All,
I have installed OCS 10.1.2.0.0.and applied the cumulative patchset and now on OCS 10.1.2.3.0
Now i am trying to migrate users and their mail box from exchange 5.5 running on Windows NT 4 server.
I have installed the esmigration tool on a machine running Windows XP SP2, Outlook 2003 client installed. I ran the tool and successfully created the system profile. Once done when i try extract users which should generate a users.xml file, i get an error saying "Unable to generate users.xml" file. When i look at the log file i can see the error which says invalid domain which is not true. The domain name is right and i have repeated the process more than 10 times, but still keep getting the same error. I tried using IMPA to IMAP as well as with MBOX , but still the same error. Has anyone seen such a behavior ?
So i tried to choose plan B. As i do not have too many users i decided to export the users mail box as a pst file and then import it. This is not a problem, but what i do not know is that what do i need to do to enable coexistence mode on exchange, meaning when an email arrives, it first goes to exchange and then forwards a copy to OCS.Please note on my research i have found some notes on how to do this on exchange 2000 on a windows 2000 server with AD, but i couldn't find anything for Exchange 5.5 on NT4.
Any assistance on this would be very helpful.
Regards,
DipakHi Dipak,
If you do the migration from the Windows 2000 machine with outlook 2000 installed, and connected to Exchange 5.5 via an admin profile, then you will not see this issue.
In case, it is not possible for you to move to new machine where above said environment exists, then you can request for a patch of migration tool that has fix for this issue. Please send an email to [email protected] or [email protected], for the fixed version.
For your co-existence query: Please make use of alternate-recipient setup that exists on exchange 5.5 user properties. So, the emails will be routed to both exchange, and ocs server mailboxes of that user.
If you have any further queries please send an email to [email protected]
Thanks,
Venkat -
How to generate a XML file from a XML schema...?
Hi guys...!
I have a XML schema and I want to write a XML file based on that schema. I have heard about this feature that eclipse has, which given a XML schema, can generate a XML file for you.
Does anyone of you know about this feature? or is there another way to do it. The schema that I have is very huge...
I will really appreciate any help from you guys...
Thank...you..
--- Spirit Away...don't cross post
http://forum.java.sun.com/thread.jspa?threadID=649205&tstart=10 -
Generate an XML file from a DOM tree
Hi,
I'm trying to generate an XML file from a DOM tree that I obtained from another XML file with the Xerces library. I used the following operation :
public static void writeXmlFile(Document doc, String filename) {
try {
Source source = new DOMSource(doc);
File file = new File(filename);
Result result = new StreamResult(file);
Transformer xformer = TransformerFactory.newInstance().newTransformer();
xformer.transform(source, result);
} catch (TransformerConfigurationException e) {
System.err.println(e);
System.exit(1);
} catch (TransformerException e) {
System.err.println(e);
System.exit(1);
But I have this Windows/Linux problem. When I execute this on Windows, everything is correct. But if I try on Linux (every distribution does the same thing), I obtain an XML file where everything is written on just ONE LINE : there is neither identation nor carriage return at the end of a line ... And that is pretty annoying 'cause I need to SEE what I generate ...
Thanks for your answer,
Blueberryfin.Actually I would think that no indents and no new-lines would be more correct, but maybe it's an option for parsers to do it either way if you don't specify it. If you want to specify it, look at this post from last month:
http://forum.java.sun.com/thread.jsp?forum=34&thread=383400 -
How generate a XML file & how to save data in that file?
hi,
How to generate an xml file & how to add data in that xml file? is there anyone who can help me about this? Firstly i need to open a xml file and after that i need to save user data in that file? how i will do it? What will be the solution of this? please give me solution........
with regards
BinaWith an API like Xerces you can parse an XML document into a DOM tree. You can do modifications on that tree manually and then write it back out as XML data.
http://xerces.apache.org/xerces2-j/ -
In SAP-XI stop generating of xml files
Hi,
In sap-xi i created a simple file to file scenario. After completion
of end to end scenario the xml files are keep on generating. I have selected delete option in CommunicationChannel. The xml file from source folder is deleted. Still the taget xml is generating in Destination folder.
How to stop the generating of xml files
Any one tell me the solution for this.
Thanks,
RamHi,
Do the Following,
1) Make sure that you deleted all the Files present in Source Directory
2)Select the Processing mode as Delete.
3)Now Place the File in the Source DIR path
4)See Whether the file got deleted from the Source or not.
5) Check the Sender CC in RWB
6) Check the SXMB_MONI to get the Success Flag.
7) Check the Receiver CC in RWB.
8) Check the Receiver Directory whether received the file or not.
Please check these one-by-one
Regards
Seshagiri -
I keep getting a message that reads "This XML file does not appear to have any style information associated with it. The document tree is shown below." when I try to view certain images with the document tree reading something like this:
<Error>
<Code>AccessDenied</Code>
<Message>Access Denied</Message>
<RequestId>BCC4C0545EAAB7AE</RequestId><HostId>3LxcI9VY5wksYdmblAgu2dYu9ZfkLVZJWYhDtoIdRIE4HyARxC+ogJXkApL6U+tT</HostId>
</Error>
I tried updating Firefox and that didn't work. All I could find was that it could be a proxy thing, but I'm set to "no proxy" in my network settings so I'm stumped.You can try these steps in case of issues with web pages:
You can reload web page(s) and bypass the cache to refresh possibly outdated or corrupted files.
*Hold down the Shift key and left-click the Reload button
*Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
*Press "Command + Shift + R" (Mac)
Clear the cache and remove cookies only from websites that cause problems.
"Clear the Cache":
*Firefox/Tools > Options > Advanced > Network > Cached Web Content: "Clear Now"
"Remove Cookies" from sites causing problems:
*Firefox/Tools > Options > Privacy > "Use custom settings for history" > Cookies: "Show Cookies"
Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem.
*Switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance
*Do NOT click the Reset button on the Safe Mode start window
*https://support.mozilla.org/kb/Safe+Mode
*https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes -
How do we create generate webservices.xml file?
Hi all,
Im new to webservices...
im able to generate mapping.xml file using wsgenerate
but i dont know how do we generate webservices.xml.
Im waiting for ur reply.
http://tech.groups.yahoo.com/group/completeJava/
http://tech.groups.yahoo.com/group/completeJava/messages
http://completejava-group.blogspot.com/You use the web interface of xmlsidecar generator made by Johannes Henseler and the push the button there "generate". Copy paste that into a plain text file and then change tex extension from txt to xml. That's how you do a sidecar.xml the easy way.
Afterwards, yo've got to import "multiple files" (or "many files"... my DPS is a Spanish one) from Folio Builder.
If the folder are structured properly, folio builder will start swallowing the data of sidecar and uploading the articles.
Right now, while posting this, my pc is doing that with about one hundred articles. As happy and busy as a beaver in heat
Gustavo (Posting from Madrid) -
Do you know if it's possible to generate Word 2003 files from
RoboHelp if we're using Office 2007 and RoboHelp 2007? We are
thinking of upgrading, but have customers that would still require
Word 2003 formats because they won't have 2007 installed.
Thanks!Hi NewtoRobohelp
Unfortunately I don't have Office 2007 in front of me to test
with. But I'm thinking that as long as Office 2007 still produces
the same formats as 2003, you could do it this way.
From RoboHelp 7 and using Office 2007, generate Printed
ouptut. Open said printed output in Office 2007 and perform a Save
As. Save the document as a RTF (Rich Text Format) document.
RTF is more universal. So I'm thinking this may be a possible
way around it. There is also the possibility that Word 2007 offers
up an ability when saving a file to save in an older format.
Cheers... Rick -
Cannot generate stack.xml file
Greetings,
We are not able to generated stack.xml file in /usr/sap/trans/EPS/in
We have tried in /n/tmwflow/mopz_stack.
MOPZ is configured we are able to approve support patches
This xml file is required to upgrade the ECC_DIMP from 600 to 605
Please advice
R..../-Wrote to SAP. Got the below mentioned reply from them
Please make sure that in transaction SMSY, in the Header Data tab for
the system you want to upgrade, both ERP 6 and EHP5 for ERP 6 are added
as product versions and also active. Information about why this is
needed can be found in note 1464712.
Please don't forget to choose a relevant product instance for ERP 6.
After this is done, please enter the system in an ERP 6 logical
component. Please add the new ERP 6 logical component to another
solution, and please proceed to opening the Maintenance Optimizer
transaction from the solution with the ERP 6 logical component.
The option to choose should be 'Enhancement Package install'.
The technical usage to choose is Discrete Ind.& Mill Products.
If somehow you are not able to choose technical usage Discrete Ind.&
Mill Products in the technical usage screen in Maintenance Optimizer:
please check note 1324838 for the required product instances of ERP 6
in SMSY. -
How to automatically generate build.xml file in eclipse?
Hello every body,
I am learning about ANT. e.g I have writen a very simple programme which displays output "no worries". But how can I compile it with ANT and how can I generate build.xml file using eclipse.This is not really a Java issue but rather is an Eclipse issue. You may wish to look for their support sites or forums.
-
Can I an html file to generate a xml file?
Is it passable to have a html document that the user selects
different files to be added, and different options for the files.
Then generates an xml file for uploading?
All help much appreciated :)Hmmm well what about a text file? (with the xml code
incerted)
Below is the type of code I need to generate with the clients
input in {} this could be a text file that I then convert to xml.
Thanks for all your help :)
<GenresToAddList>
- <GenreToAdd>
<GenreName>Classic Hits</GenreName>
<MediaClass>MUSIC</MediaClass>
<ImageFile>classic hits.jpg</ImageFile>
</GenreToAdd>
</GenresToAddList>
- <SongsToAddList>
- <SongToAdd>
<Title> {entered by user} </Title>
<Artists> {entered by user} </Artists>
<SongID> {auto incremented} </SongID>
<MediaClass>MUSIC</MediaClass>
<MediaFormat>MPEG1</MediaFormat>
<MediaType> {selected by user} </MediaType>
<ImageFile> {location entered by user}
</ImageFile>
<MusicFile> {location entered by user}
</MusicFile>
- <GenreList>
<Genre>Classic Hits</Genre>
</GenreList>
<DateReleased> {entered by user}</DateReleased>
<BeatsPerMinute> {entered by
user}</BeatsPerMinute>
<CDCatalogNumber> { auto incremented}
</CDCatalogNumber>
</SongToAdd>
</SongsToAddList> -
Hi ,
I have a requirement where i have to generate an XML file for each record in a custom table .
The data in the custom table needs to be segregated as different nodes .
eg .
<Invoice>
<Billto></Billlto>
<Shipto></Shipto>
<Customer>
<name></name>
<street></street>
<city></city>
</Customer>
<Payment>
<method> </method>
<reference></reference>
</Payment>
</Invoice>
Will it be possible to generate such a file when all the data is in one table ?
Please let me know
Thanks and Regards
SujathaYes it can. You are looking for XMLElement and XMLDocument to accomplish your goal. You didn't mention a version so I just pointed you to the latest.
Dup of {thread:id=863624} which has more info.
Edited by: A_Non on Feb 24, 2009 9:32 AM. Added link to dup.
Maybe you are looking for
-
Table overflow, only header row fits on page, avoid header
Hello together, I encountered the following problem with adobe forms. The form consists of a table with a header row and (for sure) a data part. The table is encapsulated on a subform. If the table doesn't fit on one page, it breaks correctly to the
-
Attempting to File Save As in Logic crashes the program. Tried complete reinstall of the app. and software updates but the issue remains. Any ideas? -todd
-
How to import a dmp file in OWB process?
Hi Expert. We'd like to import a dmp file into the database using OWB before doing some data cleasing. Is it possible to call "imp" in the OWB process flow, or if there's other alternatives? Thank you! Jeff
-
hai friends, i know the lock box system in general terms, but i need to now how to configur in r/3 wat is the flow of lock box systm pls help me out, i ma in to the supporting project thnx in advance regards Sreenath
-
Hi Gurus, I have User master data Info Object, and time dependency User group as navigational attribute. I checked navigational attributes in Info Cubes and MulitProviders. For testing purpose we have changed the validity period of