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
bronniebee
Well 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.
Similar Messages
-
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 -
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. -
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 -
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 -
I'm getting this problem when trying to update my iphone 3gs it says that the iphone software could not be contacted and I went on youtube got some advise to go into my hard drive to fix the error I have nothing in my host file please help me if you can this is all new to me.
Read this: iOS 4: Updating your device to iOS 5 or later
... oh I think it is a 3gs or a 3
This makes a difference. What does it say in Settings > General > About? -
HOW TO - Create new from clipboard and process multiple files - please help
Need help - have new version of photoshop on trial only ATM...
Want to know - HOW TO:
1. Create new from clipbaord
2. Process multiple files
Please help.For clipboard copy, I start with File > New and the size will be set to what's in the clipboard. Then once the new file is opened, Edit > Paste will place the clipboard contents as a layer in the new document.
You must remember to use the command Layer > Flatten Image of you want to save as jpeg or any other file format that doesn't support layers.
For processing multiple files,
File > Automate > Batch or
File > Scripts > Image Processor...
Check the User guide or google information for those commands if you have specific needs.
Gene -
Illustrator CS4 wont save files, please help?
You can edit a file, go to save, close it down, then when you re-open it the changes made have not been saved?? No error message or warning pops up, and it all looks ok like it has saved properly, until you open it up again. This also happens when you use 'save as' command if you use the original file name. If however you type in a different file name - it saves ok. But obviously that is not great as you cant now trust or rely on the save mechanism of the programme, to make sure any changes to artwork have been stored!! I have never seen an issue like this, it is worrying, I hope somebody can help?
Thanks.
We are running CS4 on windows7 - yes PC!!!We save in EPS, and its not just one file, its a variety of different files and it seems to be random as to which files it does it on, some work fine - some don't. And it can be anything from a minor text change to a colour change, it doesnt seem to matter on the change made, it reacts the same.
The files are saved over a network connection to a large external hard drive.
Its really puzzling and now starting to cause problems as we do a fair bit of work in it, and can't trust one of the most important features, and that any changes that have been done have been saved and stored!
Hope maybe you can help with any thoughts at all.
Cheers.
Date: Thu, 24 Jun 2010 03:41:40 -0600
From: [email protected]
To: [email protected]
Subject: Illustrator CS4 wont save files, please help?
What file format do you save it in?
What kinds of changes did you make in that file?
Where do you save the file (removable or network media)?
> -
How to view corrupted word files, please help?
Can't view doc corrupted file .How to recover unsaved documents WORD? how to view corrupted word files, please help
It could be Word or even Windows that is having the problem. Before you start trying to restore a backup or repair a file, try opening other documents.
Try opening your "corrupt" document from another computer. Also you can try to make a copy of corrupted files. (It could work) : http://www.filerepairforum.com/forum/microsoft/microsoft-aa/word/968-i-would-be-grateful-for-any-help-to-repair-or-the-procedures-word-files
But if nothing helps, you can try to recover it by using DOCX Viewer Tool Download free demo versions of this software from website: http://www.docx.viewertool.com/ It’s
gonna help. -
i try to download abode acrobat xi pro from abode download asssistant,it shows download is completed.but iam not able to get thet downloaded file,please help me
oatgeo wrote:
I checked the proxy and it should be OK. That's mean I have to try and try again until I get it from the slow servers.
Yes. -
Lost unsaved Garage Band File - PLEASE HELP
Lost unsaved Garage Band File - PLEASE HELP
I had an audio file made on Garage Band but it was unsaved. I left my computer on at night and for some reason this morning my computer had seemed tor restart. I opened the garage band file but nothing came up.
Is there any way I can recover this 'unsaved file'? It must be stored in cache somewhere.
Someone please advise.
Thanks.I would just like to say Thanks to HangTime up there. This trick worked 100% ... I had recorded 8 or 9 rather long tracks; for an unexpected reason (first time I've ever seen the "gray screen of death") the popup window came up and in several languages told me I needed to restart the computer; did what it told me to, begrudingly. Came back online, opened the GB file, nothing was there. Yet, when I checked package contents for the file (which I didn't even know existed, compartmentalized "Media", until after reading this), there were the tracks! I owe you both for getting this up and running... album creds just may be in line. ~Matt
-
PARSING HTML ELEMNETS IN XML FILE?,Help please very urgent
I am getting the input in this form
<ul>
<li>Strategies</li>
<li>Planning</li>
<li>Value</li>
<li>Total Investment</li>
</ul>
I want to convert it into below format so that ContentHandler parse the HTML tages.The HTML elements are dynamic,
contentHandler.startElement("", "ul", "ul", attrs);
contentHandler.startElement("", "li", "li", attrs);
contentHandler.characters(value.toCharArray(), 0, value.length());
contentHandler.startElement("", "li", "li", attrs);
contentHandler.startElement("", "li", "li", attrs);
contentHandler.characters(value.toCharArray(), 0, value.length());
contentHandler.startElement("", "li", "li", attrs);
contentHandler.startElement("", "li", "li", attrs);
contentHandler.characters(value.toCharArray(), 0, value.length());
contentHandler.startElement("", "li", "li", attrs);
contentHandler.startElement("", "li", "li", attrs);
contentHandler.characters(value.toCharArray(), 0, value.length());
contentHandler.startElement("", "li", "li", attrs);
contentHandler.endElement("", "ul", "ul");
Is their any library through which we can convert HTML tags into ContentHandler elements.
Thanks in Advance
Thanks
LakhiActually i am parsing XML file,but i have HTML elements inside XML elements:
<section id='2'><header><line>Agenda( Slide2 )</line></header>
<line>
<h3>Agenda</h3>
<ol>
<li>Overview of ABC Company inc.</li>
<li>Defining and Measuring Employee Engagement</li>
<li>Foresight's Survey Methodology</li>
<li>Online Tools</li>
<li>Standard and Custom Reporting Capabilities</li>
<li>Action Planning and Best Practices</li>
</ol></line></section>
And i am using Contenthandler interface to parse,
attrs.addCDATAAttribute("id",""+i);
contentHandler.startElement("", "section", "section", attrs);
attrs.clear();
contentHandler.startElement("", "header", "header", attrs);
contentHandler.startElement("", "line", "line", attrs);
contentHandler.characters(key.toCharArray(), 0, key.length());
contentHandler.endElement("", "line", "line");
contentHandler.endElement("", "header", "header");
contentHandler.startElement("", "line", "line", attrs);
/*HERE I need to Generate java instruction for HTML elements as i mailed before.for elements like <li>Overview of ABC Company inc.</li>
<li>Defining and Measuring Employee Engagement</li>...................</ol>
contentHandler.characters(value.toCharArray(), 0, value.length());
contentHandler.endElement("", "line", "line");
contentHandler.endElement("", "section", "section"); -
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? -
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. -
How can maintain log file Please help Very Urgent.
I am developping an application in PDK. From my application I need maintain a log file in the server side. Please help me how can I do this. If you do have links regarding this matter please pass it.
You might want to use the SAP Logging API. see
<a href="http://help.sap.com/saphelp_nw04s/helpdata/en/d2/5c830ca67fd842b2e87b0c341c64cd/frameset.htm">Logging and Tracing</a>
In NWDS include a reference to logging.jar (use variable SAP_LOGGING_LIB_HOME).
You can then write to the log in this way:
public class Xyz {
private static final Location TRACE = Location.getLocation(Xyz.class);
// It is not nice to set the severity in static code - only for demonstration purposes.
// For production-ready code this should be done via a log-configuration.xml
// to allow configuration of the severity at runtime.
TRACE.setEffectiveSeverity(Severity.ALL);
public void myMethod() {
final String METHOD = "myMethod()";
TRACE.entering(METHOD);
TRACE.debugT("whatever");
TRACE.exiting(METHOD);
Maybe you are looking for
-
My ipod died and my computer is old, so I bought a new one of each. I want to transfer my music from my old computer to the new one before I set up the new Ipod. how do I do this?
-
ITunes Error -3 and QuickTime Error 1722
Help! I'm at the end of my tether here, I've been trying to install iTunes 6.0 on Windows XP SP2 and getting the error -3. So, I tried the standalone Quicktime installer as recommended on this forum and I get the 1722 error. I've followed all the rec
-
Do I have the right software for my needs?
I have an issue with just jumping on forums and asking for help with code and build assistance, how do i do this or that. My point in this visit is because of some frustration with designing a simple flash vid. I have no idea what Adobe product I sho
-
Add search criteria field to ERPQOrder
I would like to add additional search criteria fields to the Dynamic Query Object ERPQOrder. I want to enhance the class CL_CRM_QORDER_RUN_ERPIL for the purpose. Is there a way to accomplish this requirement?
-
Login Issues related to JavaServer Faces
I'm trying to login to my application on the server and I get the following error. Any guidance or suggestions on how to fix this problem? I have the jsf's located in the WEB-INF/lib directory. javax.faces.FacesException: Assertion Failed at com