XML Doubt - please help
Hi,
I'm having a xml doc like the following
<EmployeeDetails>
<employee>
<id>1001</id>
<name>Ranjith.M</name>
<age>26</age>
</employee>
<employee>
<id>1002</id>
<name>Unni.D</name>
<age>29</age>
</employee>
<employee>
<id>1003</id>
<name>Anil.G</name>
<age>32</age>
</employee>
<employee>
<id>1004</id>
<name>Asha A</name>
<age>26></age>
</employee>
</EmployeeDetails>
from this i would like to query for the age and name of an employee whose id whose id = 1004 using DOM.
could u pls tell me how to do this using DOM. and what all functions in the APIs will help me in doing this...
Thank You
Make 'id' a ID attribute of the 'Employee' element.
Document xmlDocument;
// Get Element with id=1004
Element element1004=xmlDcoument.getElementById("1004");
//Get node list of 'name' tags.
NodeList EmployeeName=element1004.getElementsByTagName("name");
//Get node list of 'age' tags.
NodeList EmployeeAge=element1004.getElementsByTagName("age");
//Retrieve Employee 'name' value.
String employee1004Name=EmployeeName.item(0).getFirstChild().getNodeValue();
//Retrieve Employee 'age' value.
String employee1004Age=EmployeeAge.item(0).getFirstChild().getNodeValue();
Similar Messages
-
Hi, I want to display the number of Passed / failed tests in Testtand xml report , please help me.
My requirement is later i should be able to display these number of passed/failed test in report header too.
Solved!
Go to Solution.I have attached a sequence to give you an idea of how to get the Result count (I didn't check it's working ), I have used "SequenceFilePostResultListEntry" callback to calculate the Result Count,
and the Result Count is passed to the "ModifyReportHeader" through File Globals, where you can edit the XML file to show it in the Repot (follow the link in my previous post).
Hope this helps
AshwiN,
Attachments:
Get Result Count.seq 8 KB -
For Oracle XML Team:please help
hi,
I have been trying to run my java code using XSQLRequest from inside the stored procedure for past couple of days and i have had a couple of queries which were answered successfully.Thanks for that.
But so far i have not been able to execute the code from inside the stored procedure which works fine if executed from commandline or thro a normal java application.
It is always some problem or other and since there is no one except for this forum I end up submitting my queries in here.
IS there any way i can get in touch with someone from ur side and may be figure out if i can do the way i 'm doing right now or i'm just wasting my time for nothing.I'm already done with the project schedule so i have to answer my PL.
I have loaded the oraclexsql.jar file and the corresponding parserv2.jar and oraclexmlsql.jar file in my database.
and i did load the XSQLConfig.xml file in the database file as well n which i'm using oracle:jdbc:thin:@10.0.0.70:1521:xdp as my <dburl>.
now when i try to call the stored procedure i get the following error:
Oracle XSQL Programmatic Page Processor 0.9.8.6 (Technology Preview)
XSQL-007: Cannot acquire a database connection to process page.
No suitable driver.
I did find that inorder to make the database connection from inside the stored procedure we have to use jdbc.oracle.kprb driver
and that thin and oci are not supported.
Does this mean i have to specify the same in my <dburl> for the config file.
I infact did try to use this but it wont work and i got the same error.
Can u please help me with this.
This is extremely important for me that i come to a conclusion.
Thanks a lot
Aman
(if it is possible that i can talk to someone frm ur side it 'll be reallly great.)
nullTry using Oracle XML SQL Utility from
inside the DB. XSQL is just calling that
utility. -
XML Files - PLEASE help!!
Hi guys!
Am desperately seeking some help on an XML issue please!!
Am just wondering if anyone knows any limitations of having large XML files within B2B applications. Everywhere I look seems to suggest that there's no limit on the size of an XML file - this is grand, but is anyone aware of a performance downgrade when dealing with large files? And if so, what is the maximum recommended file size before performance is affected. Are there any other issues upon which file size would have a negative impact? Sorry if this sounds like a bit of a silly question but am a newbie to the design implications of XML and am in bad need of assistance!
thanks a mill for all your help
cheers
bronniebeeWell no, there's no limit on the size of an XML file by the specification, but in practice you will find that you almost always have to load the XML file into memory. This means that the larger the file, (a) the longer it takes to load and (b) the more likely it is you will run out of memory. I have seen it suggested that 10 megabytes is a practical upper limit for the size of an XML file to be processed in this way, but of course that would be just a rough guideline. If you have files much larger than that, you will have to use a SAX parser (which processes the XML sequentially) if you want to be able to handle it.
But if you are talking about B2B, then most of your XML files will be transaction packets, right? Probably you wouldn't have a purchase order that large, for example. And you will be processing them asynchronously, right? (Nobody sitting at the browser waiting for a response.) That simplifies things because you don't have response time as an overriding requirement. -
Problem with xml table, please help
hello everyone,
can you help me please , i need to read an xml file from the sap directory into an L_XML_TABLE declared as follow :
TYPES: BEGIN OF t_xml_line,
data(256) TYPE x,
END OF t_xml_line.
TYPE-POOLS: ixml.
DATA: l_ixml TYPE REF TO if_ixml,
l_streamfactory TYPE REF TO if_ixml_stream_factory,
l_parser TYPE REF TO if_ixml_parser,
l_istream TYPE REF TO if_ixml_istream,
l_document TYPE REF TO if_ixml_document,
l_node TYPE REF TO if_ixml_node,
l_xmldata TYPE string.
DATA: l_elem TYPE REF TO if_ixml_element,
l_root_node TYPE REF TO if_ixml_node,
l_next_node TYPE REF TO if_ixml_node,
l_name TYPE string,
l_iterator TYPE REF TO if_ixml_node_iterator.
DATA: l_xml_table TYPE TABLE OF t_xml_line,
l_xml_line TYPE t_xml_line,
l_xml_table_size TYPE i.
when i try the READ DATASET of my file into the table it gives me the error message
L_XML_TABLE cannot be a table,a reference, a string or contain any of this objects.
is there a solution , it's important.
thank you very muchYou know that READ DATASET reads a line at a time, not the whole table?
What code do you have for actually reading the file? -
Writing a Procedure to return back XML. Please help.
Hello,
I am writing a procedure in Oracle 10G,that will return back an XML
to me.
I am passing 2 parameters to this procedure (a Quantity and a Price) and these parameters are element values of the XML that will be returned.
My Query is :
1) How can the arguments being passed to the procedure become element values.
2) Is my procedure to return back the XML correct.? Please can someone modify this procedure?
Please can someone help me with this procedure as this is a PROD issue.
Help really appreciated.
PROCEDURE getTradeXML(qty IN VARCHAR2,price IN VARCHAR2 xml IN OUT CLOB)
IS
xml CLOB;
BEGIN
xml = 'SELECT XMLELEMENT("Trade", XMLELEMENT("Quantity",qty),
XMLELEMENT("Price", price))
FROM DUAL'
END;PROCEDURE getTradeXML(qty IN VARCHAR2,price IN
VARCHAR2 xml IN OUT CLOB)
IS
xml CLOB;
BEGIN
xml = 'SELECT XMLELEMENT("Trade",
XMLELEMENT("Quantity",qty),
MLELEMENT("Price", price))
FROM DUAL'maybe you want
SELECT XMLELEMENT("Trade", XMLELEMENT("Quantity",qty), XMLELEMENT("Price", price)) into xml FROM DUAL;
/*not tested*/ -
Polulate Text frames with XML content - PLEASE help me.
Hi guys,
I'm trying to import some xml data to an indesign file. Here are the steps I'm doing:
1- create new document
2- create master page
3- create empty text fields in the master to be tagged
4- import tags from xml
5- import xml
then it simply don't auto populate the text fields wiith the xml content.
I've already spent about 10 hours trying to figure out what can be the problem...
My structure in indesign (BEFORE importing XML):
businesscards
Card
employeeName
employeePosition
employeeAddressln1
employeeAddressln2
employeePhone
employeeEmail
My structure in indesign (AFTER importing XML):
businesscards
Card <!-- has dropdown arrow with xml content inside -->
Card <!-- has dropdown arrow with xml content inside -->
Card <!-- has dropdown arrow with xml content inside -->
Card <!-- has dropdown arrow with xml content inside -->
employeeName
employeePosition
employeeAddressln1
employeeAddressln2
employeePhone
employeeEmail
But it doesn't populate the text frames...
I've already tried to write text in the text frames and tagged them, so I can see those colored brackets. But it doesn't work and makes a mess in the structure.
Please, can someone help me, do you know a good step by step tutorial online? What am I doing wrong?
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<businesscards>
<Card>
<!-- contents of Suzan Reed -->
<employeeName>Suzan Reed</employeeName>
<employeePosition>Director of Marketing</employeePosition>
<employeeAddressln1>506 SE 72nd Avenue</employeeAddressln1>
<employeeAddressln2>Portland, Oregon 97215</employeeAddressln2>
<employeePhone>503-481-5858 direct</employeePhone>
<employeeEmail>[email protected]</employeeEmail>
</Card>
<Card>
<!-- contents of Gabriel Powell -->
<employeeName>Gabriel Powell</employeeName>
<employeePosition>Senior Training Director</employeePosition>
<employeeAddressln1>25 NW 23rd Place, Suite 6-122</employeeAddressln1>
<employeeAddressln2>Portland, Oregon 97210</employeeAddressln2>
<employeePhone>503-515-5404 direct</employeePhone>
<employeeEmail>[email protected]</employeeEmail>
</Card>
<Card>
<!-- contents of Dale Erwing -->
<employeeName>Dale Erwing</employeeName>
<employeePosition>Trainer</employeePosition>
<employeeAddressln1>5131 Buffalo Ave. #20</employeeAddressln1>
<employeeAddressln2>Sherman Oaks, CA 91423</employeeAddressln2>
<employeePhone>310-795-8943 cell</employeePhone>
<employeeEmail>[email protected]</employeeEmail>
</Card>
<Card>
<!-- contents of Jim Conner -->
<employeeName>Jim Conner</employeeName>
<employeePosition>Trainer</employeePosition>
<employeeAddressln1>25 NW 23rd Place, Suite 6-122</employeeAddressln1>
<employeeAddressln2>Portland, Oregon 97210</employeeAddressln2>
<employeePhone>503-515-2376 cell</employeePhone>
<employeeEmail>[email protected]</employeeEmail>
</Card>
</businesscards>
Thanks in advanceIt worked! thanks ... But...
But only if I don't apply to the Master when I apply to the master all the other cards have the same content as the first of the XML. :(
Even when I try to create multiple pages (cards) with no Master page (too time consuming), I can't figure out a way of having the other cards filed with the remaining data of the XML. :(
I don't want to drag the elements one by one to every single card (they are so many...)
Is there a way of having the structure organized in a way to have indesign auto populate and auto create pages?
thanks for any kind of advice. -
Loading data from xml file - please help
Hi, I am new to attempting to get data from an xml file load
in flash. I followed a tutorial in a new fla and it seemed to work
fine, I then tried to adapt it to my own needs which worked fine.
But then when trying to implement this into my news section it
doesn't seem to work.
I am trying to make a news section, that displays the date
and news article. This is in within a movie clip, I even tried
putting it in the timeline of the scene but still nothing.
- I have 2 dynamic text boxes, date_txt and news_txt
- The xml file is named news.xml,
- both the fla and the xml are in the same folder
This is the actionscript I am using:
function loadXML(loaded) {
if (loaded) {
_root.thedate =
this.firstChild.childNodes[0].childNodes[0].firstChild.nodeValue;
_root.thenews =
this.firstChild.childNodes[0].childNodes[1].firstChild.nodeValue;
date_txt.text = _root.thedate;
news_txt.text = _root.thenews;
} else {
trace("file not loaded!");
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("news.xml");
This is what I have in the xml document:
<?xml version="1.0"?>
<news>
<article>
<date>date</date>
<news>newentry.</news>
</article>
<article>
<date>Doug Engelbart</date>
<news>Invented the mouse at the Stanford Research
Institute</news>
</article>
</news>
Does anyone perhaps have any ideas of what the problem could
be?
Help much appreciated.Hi
_root refers to the Main Timeline, if your date_txt and
news_txt are in a movieclip ie: news_mc
then your path should read _root.news_mc.date_txt.text and
_root.news_mc.news_txt.text
You will also need to embed the characters you wish to use
inside your dymanic text for it to show.
Hope it helps -
How to filter data from a source XML? Please help!
Hi Experts,
I have a source XML as shown below:
<Inventory>
<InventoryItem>
<ItemCode>InTransit</ItemCode>
<Quantity>1000</Quantity>
</InventoryItem>
<InventoryItem>
<ItemCode>Available</ItemCode>
<Quantity>1500</Quantity>
</InventoryItem>
<InventoryItem>
<ItemCode>Restricted</ItemCode>
<Quantity>2500</Quantity>
</InventoryItem>
</Inventory>
My Target XML is as below
<Inventory>
<stock>1500</stock>
</Inventory>
The stock element contains Quantity value where ItemCode is 'Available'.
But note that there are 3 InventoryItem nodes.
So how to get the desired target XML in XI mapping? Basically I have to filter data from source XML based on value of an element. What is the best approach to handle this?
Kindly help
Thanks
GopalHi venkat,
Your solution does'nt work fine. But why are you using collapsecontext and splitbyvalue before putting the value into stock element?
Kindly explain your concept.
My target message is:
<?xml version="1.0" encoding="UTF-8"?>
<Inventory>
<InventoryItem>
<ItemCode>InTransit</ItemCode>
<Quantity>1500</Quantity>
</InventoryItem>
<InventoryItem>
<ItemCode>Available</ItemCode>
<Quantity>1000</Quantity>
</InventoryItem>
<InventoryItem>
<ItemCode>UnRestricted</ItemCode>
<Quantity>2000</Quantity>
</InventoryItem>
<InventoryItem>
<ItemCode>Available</ItemCode>
<Quantity>2500</Quantity>
</InventoryItem>
</Inventory>
I am getting the output even though stock is unbounded and I have used collapsecontext and splitbyvalue as:
<InvStock>
<Stock>1000</Stock>
</InvStock>
I should get:
<InvStock>
<Stock>1000</Stock>
<Stock>2500</Stock>
</InvStock>
Thanks
Gopal
Message was edited by:
gopalkrishna baliga -
Hi,
In most of the OTN XML samples, the data was entered by SQL scripts.
In real life, is it possible to maintain enterprise information /data by only using XML/XSQL technology without using Java applets? Is it at all possible ?
As a newbe I am looking for some simple XML sample application.
If I can find on the basis of SCOTT schema
complete XML application through which I can INSERT/UPDATE/DELETE record including the error handling for primary key violation and so on ... would be great!
I think such kind of application will help many of us to understand the basics!
Thanks in advance!
Nadeem
nullMy Building Oracle XML Applications book contains 800 pages of examples, covering this and many, many more subjects. It would be pretty difficult to post a complete working example here on the discussion forum.
-
I am trying the run the ipsadmin command as follows:
"ipsadmin change component iwtUserInfoProvider iwtUserInfoProvider.xml"
And I am getting the following error:
"Profile change failed. More info: com.iplanet.portalserver.ipsadmin.Component"
I just added some more attributes to the xml file
that look like these :
<!- BEGIN NEW ATTRIBUTES -->
<iwt:Att name="iwtUserInfoProvider-EntryDN"
desc="Entry DN"
type="string"
idx="a204"
userConfigurable="TRUE">
<Val>New</Val>
<Rperm>ADMIN</Rperm><Rperm>OWNER</Rperm>
<Wperm>ADMIN</Wperm><Wperm>OWNER</Wperm>
</iwt:Att>
<!- END NEW ATTRIBUTES -->
Question:
1. What did I do wrong?
2. Is there a log file that stores the ipsadmin
errors?
./ipsadmin -chkxml iwtUserInfoProvider.xml
returned "Operation completed successfully".
So I know there is nothing wrong with the xml
file.
Any help in fixing this problem is gratefully appreciated.
Thanks
SahadevHi There,
The ipsadmin tool does not seem to be able to dynamically add any new attributes to a component. the best would be to do a "ipsadmin delete component iwtUserInfoProver" and then "ipsadmin -import iwtUserInfoProvider.xml" this should "update" the component with the new attribute.
HTH. -
Doubts Please Help????
Hi all...
My doubts are..
1) I just want to know whether these controls are same as screen elements .
2) If so why they are not called so.
I just Know there are some proxy classes for these controls and at runtime only these appear on the frontend.But i'm not so clear about these.
3) I also want to know is there any other way to keep picture on the frontend without using picture control etc..
I think my query is clear now.
Waiting for ur responses..
Regards,
SimyHi!
1) It depends on requirement. its mostly used for improving performance .
2)for web reports you have to configure the Web settings in SICF and that's all. for crystal reports I think you require additional installation licence's.
3)There is a how to document in SDN please check that.https://websmp102.sap-ag.de/~sapdownload/011000358700002390232003E/HowToPrecalculate.pdf
with regards
ashwin
Message was edited by: Ashwin Kumar Gadi -
Jbuilder compiler problem with xml DOM - please help.
my problem is that I am using jbuilder 4 professional to compile/run my code.
However I want to use the XML DOM but jbuilder does not appear to support the necessary packages for use with XML.
How can I get round this.
Can I compile instead from the command line - I am using JDK1.4 which supports the java xml packages necessary. Or is there a way of adding the necessary files to my project?
thanks, BAdd the required jar files to your project properties->classpath in JBuilder
The only problem is that. I have been using JBuilder without any problems. -
Doctype for xml file please help
hi everybody
I want to create a xml document from document class but how do I set the doctype to .dtd file I don�t see any create method like create elementcreateDocumentType() method in the DOMImplementation generates a doctype node.
createDocumentType(String qualifiedName,
String publicId,
String systemId)
qualifiedName - The qualified name of the document type to be created.
publicId - The external subset public identifier.
systemId - The external subset system identifier -
Need to contcat 10 xml files - Please help me its an URgent requirment
Gurus,
We have requirment to load 10 xml files into a target table(oracle). So thought to concat using ODIXMLCONCAT in a package
Below are the Parameters i am passing:
OdiXMLConcat "-FILE=D:/FILE_FOLDER/Trial_Average/Trial_Average*.xml" "-TOFILE=D:/FILE_FOLDER/IVBL_AGV_TRIAL_BAL.xml" "-XML_ELEMENT=GLXAVTRB" "-IF_FILE_EXISTS=overwrite" "-KEEP_XML_PROLOGUE=all"
Only first xml file is loading and its failing with below error:
java.lang.RuntimeException: Error while writting output xml
at com.sunopsis.dwg.tools.xml.XMLJoiner.writtingException(XMLJoiner.java:260)
at com.sunopsis.dwg.tools.xml.XMLJoiner$JoinerXMLFilterOutput.addEvent(XMLJoiner.java:39)
at com.sunopsis.dwg.tools.xml.XMLFilter.process(XMLFilter.java:84)
at com.sunopsis.dwg.tools.xml.XMLJoiner.join(XMLJoiner.java:195)
at com.sunopsis.dwg.tools.XMLConcat.actionExecute(XMLConcat.java:133)
at com.sunopsis.dwg.function.SnpsFunctionBase.execute(SnpsFunctionBase.java:276)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execIntegratedFunction(SnpSessTaskSql.java:3437)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.executeOdiCommand(SnpSessTaskSql.java:1509)
at oracle.odi.runtime.agent.execution.cmd.OdiCommandExecutor.execute(OdiCommandExecutor.java:44)
at oracle.odi.runtime.agent.execution.cmd.OdiCommandExecutor.execute(OdiCommandExecutor.java:1)
at oracle.odi.runtime.agent.execution.TaskExecutionHandler.handleTask(TaskExecutionHandler.java:50)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.processTask(SnpSessTaskSql.java:2913)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java:2625)
at com.sunopsis.dwg.dbobj.SnpSessStep.treatAttachedTasks(SnpSessStep.java:558)
at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:464)
at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:2093)
at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$2.doAction(StartSessRequestProcessor.java:366)
at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:216)
at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.doProcessStartSessTask(StartSessRequestProcessor.java:300)
at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.access$0(StartSessRequestProcessor.java:292)
at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$StartSessTask.doExecute(StartSessRequestProcessor.java:855)
at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:126)
at oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$2.run(DefaultAgentTaskExecutor.java:82)
at java.lang.Thread.run(Thread.java:662)
Caused by: javax.xml.stream.XMLStreamException: Trying to output second root, <GLXAVTRB>
at com.ctc.wstx.sw.BaseStreamWriter.throwOutputError(BaseStreamWriter.java:1473)
at com.ctc.wstx.sw.BaseStreamWriter.throwOutputError(BaseStreamWriter.java:1480)
at com.ctc.wstx.sw.BaseStreamWriter.reportNwfStructure(BaseStreamWriter.java:1508)
at com.ctc.wstx.sw.BaseNsStreamWriter.checkStartElement(BaseNsStreamWriter.java:444)
at com.ctc.wstx.sw.SimpleNsStreamWriter.writeStartOrEmpty(SimpleNsStreamWriter.java:260)
at com.ctc.wstx.sw.BaseNsStreamWriter.writeStartElement(BaseNsStreamWriter.java:319)
at com.ctc.wstx.sw.SimpleNsStreamWriter.writeStartElement(SimpleNsStreamWriter.java:198)
at com.ctc.wstx.evt.WstxEventWriter.add(WstxEventWriter.java:137)
at com.sunopsis.dwg.tools.xml.XMLJoiner$JoinerXMLFilterOutput.addEvent(XMLJoiner.java:35)
at com.sunopsis.dwg.tools.xml.XMLFilter.process(XMLFilter.java:84)
at com.sunopsis.dwg.tools.xml.XMLJoiner.join(XMLJoiner.java:195)
at com.sunopsis.dwg.tools.XMLConcat.actionExecute(XMLConcat.java:133)
at com.sunopsis.dwg.function.SnpsFunctionBase.execute(SnpsFunctionBase.java:276)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execIntegratedFunction(SnpSessTaskSql.java:3437)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.executeOdiCommand(SnpSessTaskSql.java:1509)
at oracle.odi.runtime.agent.execution.cmd.OdiCommandExecutor.execute(OdiCommandExecutor.java:44)
at oracle.odi.runtime.agent.execution.cmd.OdiCommandExecutor.execute(OdiCommandExecutor.java:1)
at oracle.odi.runtime.agent.execution.TaskExecutionHandler.handleTask(TaskExecutionHandler.java:50)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.processTask(SnpSessTaskSql.java:2913)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java:2625)
at com.sunopsis.dwg.dbobj.SnpSessStep.treatAttachedTasks(SnpSessStep.java:561)
at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:464)
at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:2093)
at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$2.doAction(StartSessRequestProcessor.java:366)
at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:216)
at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.doProcessStartSessTask(StartSessRequestProcessor.java:300)
at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.access$0(StartSessRequestProcessor.java:292)
at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$StartSessTask.doExecute(StartSessRequestProcessor.java:855)
at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:126)
at oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$2.run(DefaultAgentTaskExecutor.java:83)
... 1 moreI get the reason, you don't specify -HEADER and -FOOTER parameters, so ODI don't know what is the root node
I created a package for demo
1)
OdiSqlUnload "-FILE=C:\Users\tinawang\Documents\1.xml" "-DRIVER=com.mysql.jdbc.Driver" "-URL=jdbc:mysql://localhost/employees?relaxAutoCommit=true" "-USER=root" "-PASS=aIyXe.NkGEUSr.G,WE1g" "-FILE_FORMAT=XML" "-ROW_SEP=\r\n" "-DATE_FORMAT=yyyy/MM/dd HH:mm:ss" "-CHARSET_ENCODING=UTF8" "-XML_CHARSET_ENCODING=UTF-8" "-FETCH_SIZE=10000"
select * from employees where emp_no<10008
2)
OdiXMLSplit "-FILE=C:\Users\tinawang\Documents\1.xml" "-TOFILE=C:\Users\tinawang\Documents\xml\emp_*.xml" "-XML_ELEMENT=row" "-CHARSET_ENCODING=UTF-8" "-IF_FILE_EXISTS=overwrite" "-KEEP_XML_PROLOGUE=all"
3)
OdiXMLConcat "-FILE=C:\Users\tinawang\Documents\xml\emp_*.xml" "-TOFILE=C:\Users\tinawang\Documents\2.xml" "-XML_ELEMENT=row" "-CHARSET_ENCODING=UTF-8" "-IF_FILE_EXISTS=overwrite" "-KEEP_XML_PROLOGUE=all" "-HEADER=<table>" "-FOOTER=</table>"
in step3) if you don't specify "-HEADER=<table>" "-FOOTER=</table>", you will get the same issue as you encounter.
Maybe you are looking for
-
When I open Firefox, it goes to the first page I open, but then stops and says "Not Responding" with the mouse cursor spinning. I hit the close button and it says Windows is searching for a solution (which doesn't come). When I open Firefox again, it
-
Fixing VBA Reference issue with Adobe Reader
I have a problem. Every time I select "Acrobat" in VBAProject References after I click "OK" then the Adobe Acrobat 10.0 Type Library is enabled. The problem is, once I check Reference List again, it shows "Adobe Acrobat 10.0 Type Library" selected a
-
How do I make a "Title Menu Button" that is an Arrow?
I am using DVD 08 with iMovie 06. I set my chapters using iMovie 06. When I shared with iDVD 08 everything looked OK. I normally do six scenes however this time I wanted eight. In the past when using iDVD 08 (or iDVD 06) there is always a blue arrow
-
Eliminate word wrap in TEXT_IO
Dear All We are inserting data into DB using form6i text field which is enabled multi-line property. If I generate excel or text file using TEXT_IO using that data will be (word) wrapped. (Multi-line enabled fields only) Please let me know how can el
-
Display keeps changing on it's own
For a couple of weeks now my Mac Mini keeps changing the display at random. I have changed the settings on the monitor itself and thru system pref. Nothing fixes it permanently. It looks as though it's going into some sort of zoom effect and the f