Loading xml and parsing
Is there a way to load an xml file and parse the tags as we do in javascripts in java?
i want to write a generic xml parser.
what all should i know before starting.
i choose java as my development language.
Is there a way to load an xml file and parse the tags
as we do in javascripts in java?Yes?
>
i want to write a generic xml parser.There is one built into Java or you can use JDOM or Dom4J.
>
what all should i know before starting.Difficult to say without knowing what you are doing but the Java tutorial is a good starting point.
i choose java as my development language.
Similar Messages
-
I have a String containing xml code and i want to parse ths string
but method parse don't accept string so it returns "no protocol : String ".
Could you helpe please, it's very important.
my code (simplified):
String entete_xml="<?xml version=\"1.0\" encoding=\"UTF-8\"?>";
String xml=entete_xml+"<aaa><bbb>aaaa</bbb><essai>reussi</essai></aaa>";
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
DocumentBuilder builder = factory.newDocumentBuilder();
doc = builder.parse(xml);builder.parse(new InputSource(new StringReader(xml)));
-
Hi I am new to Flex and AS3 but I have some experience with
XML, XSLT, XPATH, VB etc..
I am having trouble just loading the XML. How do I load an
external XML file so I can edit it?
This is what I have so far:
<mx:Script>
<![CDATA[
var myxml = 'xml/request.xml';
XML.ignoreWhitespace = true;
var xml:XML = new(myxml);
]]>
</mx:Script>
I recieve an error:
"TypeError: Error #1007: Instantiation attempted on a
non-constructor."
Thanks in advanceI did that in my application for loading a XML file. I hope
it helps you :)
<?xml version="1.0" encoding="utf-8"?>
<mx:Application
xmlns:mx="
http://www.adobe.com/2006/mxml"
xmlns:custom="*"
layout="absolute"
horizontalScrollPolicy="off"
backgroundAlpha="0"
creationComplete="init();"
>
<mx:Script>
<![CDATA[
import mx.controls.Image;
import flash.display.*;
import flash.events.IOErrorEvent;
import flash.net.URLLoader;
import flash.net.URLRequest;
import flash.events.Event;
import flash.events.ProgressEvent;
public function init():void
var loaderSkin:URLLoader = new URLLoader();
var requestSkin:URLRequest = new URLRequest("XML/skin.xml");
loaderSkin.load(requestSkin);
loaderSkin.addEventListener(Event.COMPLETE,
finDuChargementSkin)
public function finDuChargementSkin ( event:Event ):void {
var skin:XML = new XML (event.target.data)
\\put your code here
]]>
</mx:Script>
<mx:Label id="myLabel" width="1000" fontWeight="bold"
fontSize="12"/>
</mx:Application> -
Eastern European characters in XML and parsing
Hi all,
I have a problem with XML parsing within Java code with special Eastern European characters.
Whenever there is EE character within tags it reports:
WARNING (12847): CORE3283: stderr: org.xml.sax.SAXParseException: The element type "CodeMeaning" must be terminated by the matching end-tag "</CodeMeaning>".
at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:134)
Obviously special character is in CodeMeaning XML tag. XML is well formed and syntactically OK and without special characters works OK. Does anyone have any suggestion how to force special characters in XML?Would you send a sample data for test? What is the encoding for your XML doc?
-
How to read XML and parse all child nodes
Here is a sample of my XML file and I want to be able to put into a grid the Server Name, User ID, Password, and then list under all Databases associated with that server.
<Servers>
<Server>
<Name>PROD_Server</Name>
<Database>CUSTOMER</Database>
<Database>LOCATION</Database>
<Database>ORDERS</Database>
<Database>RETURNS</Database>
<UserID>RSMITH></UserID>
<Password>$EWRaZ</Password>
</Server>
<Server>
<Name>WEST_Server</Name>
<Database>OPTIONS</Database>
<Database>PRICES</Database>
<UserID>THAMPTON></UserID>
<Password>$EWRyAQ</Password>
</Server>
<Server>
<Name>PASS_PLUS</Name>
<Database>AUTOMOBILES</Database>
<Database>VINNUMBERS</Database>
<Database>OWNERS</Database>
<UserID>BHARVEY></UserID>
<Password>$VRRaZ</Password>
</Server>
</Servers>
How can I do this?Hello,
Using the xml you supplied I see a master-detail relationship going on which is best shown in at least two DataGridView controls or the master table hooked up to a BindingSourceNavigator then child rows for Database in a DataGridview or label or TextBox
controls.
The code below loads the xml data into a DataSet then uses two BindingSource components to create a master-detail setup that can be setup say in Form load event
Dim ds As New DataSet
ds.ReadXml(IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "XMLFile1.xml"))
Master.DataSource = ds
Master.DataMember = ds.Tables(0).TableName
Details.DataSource = Master
Details.DataMember = ds.Relations(0).RelationName
DataGridView1.DataSource = Master
DataGridView2.DataSource = Details
Declare the BindingSource components at form level
Private Master As New BindingSource
Private Details As New BindingSource
Screenshot using two DataGridView controls.
I would suggest the above as other methods to place all columns into a DataGridView is problematic.
Please remember to mark the replies as answers if they help and unmark them if they provide no help, this will help others who are looking for solutions to the same or similar problem. Contact via my webpage under my profile
but do not reply to forum questions. -
Rtf template taking long time to load xml
Dear All
rtf template taking long time to load xml and Insert fields. I am using MS office2010. It was working before.
can any one help me out.
Regards
ArifuddinHi;
Pelase review below which could be helpful for you
XML Publisher Report Issues, Recommendations and Errors [ID 862644.1]
Regard
Helios -
Load XML file from addon domain without cross-domain Policy file
Hello.
Assuming that there are two addon domains on the same server: /public_html/domain1.com and /public_html/domain2.com
I try to load XML file from domain2.com into domain1.com without using cross-domain policy file (since it doesn’t work on xml files in my case).
So the idea is to use php file in order to load XML and read it back to flash.
I’ve found an interesting scripts that seems to do the job but unfortunately I can't get it to work. In my opinion there is somewhere problem with AS3 part. Please take a look.
Here are the AS3/PHP scripts:
AS3 (.swf in www.domain1.com):
// location of the xml that you would like to load, full http address
var xmlLoc:String = "http://www.domain2.com/MyFile.xml";
// location of the php xml grabber file, in relation to the .swf
var phpLoc:String = "loadXML.php";
var xml:XML;
var loader:URLLoader = new URLLoader();
var request:URLRequest = new URLRequest(phpLoc+"?location="+escape(xmlLoc) );
loader.addEventListener(Event.COMPLETE, onXMLLoaded);
loader.addEventListener(IOErrorEvent.IO_ERROR, onIOErrorHandler);
loader.load(request);
function onIOErrorHandler(e:IOErrorEvent):void {
trace("There was an error with the xml file "+e);
function onXMLLoaded(e:Event):void {
trace("the rss feed has been loaded");
xml = new XML(loader.data);
// set to string, since it is passed back from php as an object
xml = XML(xml.toString());
xml_txt.text = xml;
PHP (loadXML.php in www.domain1.com):
<?php
header("Content-type: text/xml");
$location = "";
if(isset($_GET["location"])) {
$location = $_GET["location"];
$location = urldecode($location);
$xml_string = getData($location);
// pass the url encoded vars back to Flash
echo $xml_string;
//cURLs a URL and returns it
function getData($query) {
// create curl resource
$ch = curl_init();
// cURL url
curl_setopt($ch, CURLOPT_URL, $query);
//Set some necessary params for using CURL
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
//Execute the curl function, and decode the returned JSON data
$result = curl_exec($ch);
return $result;
// close curl resource to free up system resources
curl_close($ch);
?>I think you might be right about permissions/settings on the server for php. Unfortunately I'm not allowed to adjust them.
So I wrote my own script - this time I used file path instead of http address of the XML file. It works fine in my case.
Here it is:
XML file on domain2.com:
<?xml version="1.0" encoding="UTF-8"?>
<gallery>
<image imagePath="galleries/gallery_1/images/1.jpg" thumbPath="galleries/gallery_1/thumbs/1.jpg" file_name= "1"> </image>
<image imagePath="galleries/gallery_1/images/2.jpg" thumbPath="galleries/gallery_1/thumbs/2.jpg" file_name= "2"> </image>
<image imagePath="galleries/gallery_1/images/3.jpg" thumbPath="galleries/gallery_1/thumbs/3.jpg" file_name= "3"> </image>
</gallery>
swf on domain1.com:
var imagesXML:XML;
var variables:URLVariables = new URLVariables();
var varURL:URLRequest = new URLRequest("MyPHPfile.php");
varURL.method = URLRequestMethod.POST;
varURL.data = variables;
var MyLoader:URLLoader = new URLLoader;
MyLoader.dataFormat =URLLoaderDataFormat.VARIABLES;
MyLoader.addEventListener(Event.COMPLETE, XMLDone);
MyLoader.load(varURL);
function XMLDone(event:Event):void {
var imported_XML:Object = event.target.data.imported_XML;
imagesXML = new XML(imported_XML);
MyTextfield_1.text = imagesXML;
MyTextfield_2.text = imagesXML.image[0].attribute("thumbPath"); // sample reference to attribute "thumbPath" of the first element
php file on domain1.com:
<?php
$xml_file = simplexml_load_file('../../domain2.com/galleries/gallery_1/MyXMLfile.xml'); // directory to XML file on the same server
$imported_XML = $xml_file->asXML();
print "imported_XML=" . $imported_XML;
?>
Regards
PS: for those who read the above discussion: the first and the second script work but you must test which one is better in your situation. The first script will also work between two domains on different servers. No cross domain policy file needed. -
Hi all-
I'm new to using spry and xml, but not new to xhtml and layout, having said that. I'm trying to store file paths in my xml and parse that xml to repace <href> tags in an image map. For example (the actual cooridnates in the map are just made up for the example below, the actual map has 88 locations and very detailed coordinates, as it is a state map):
<head>
<script src="../SpryAssets/xpath.js" type="text/javascript"></script>
<script src="../SpryAssets/SpryData.js" type="text/javascript"></script>
var ds1 = new Spry.Data.XMLDataSet("../files/research/counties_census.xml", "ohio");
</head>
<body>
<div spry:region="ds1">
<img src="../images/CountyMap.gif" width="565" height="611" usemap="#Map">
<map id="Map" name="Map">
<area shape="rect" coords="103,156,155,202" href="../files/research/{Location}" />
<area shape="rect" coords="216,156,286,210" href="../files/research/{OtherLocation}" />
</map>
</div>
</body>
Am I just making a syntax error or is this just outside the scope of what I can use spry for? Any help is appreciated.
thanks in advanceI have one more question. What you gave me worked like a charm btw. Thanks a lot. Onto the question:
I'd like to use the same XML to also power a drop down menu, here's a snippet of the XML/XHTML below. I can't seem to get it to work on the drop down, the image map works great.
XML snippet:
<locations>
<location>
<filepath>P1008.pdf</filepath>
<coords>192,496,193,497,194,497,195,497,196,497,197,497,199,497,201,497,201,498,202,498,2 01,498,201,499,202,499,203,500,204,500,204,501,205,502,206,502,206,503,207,503,207,504,207 ,506,207,510,207,511,207,512,207,514,207,518,207,521,207,522,207,524,207,525,207,526,207,5 27,207,528,207,529,207,530,207,531,207,532,207,533,207,535,207,537,207,538,207,539,207,540 ,207,541,207,542,207,543,207,545,207,547,207,548,207,549,207,550,206,552,206,554,206,555,2 06,556,206,558,206,559,206,560,206,562,206,563,206,564,206,565,206,566,206,567,206,568,206 ,569,206,570,206,571,205,571,205,572,204,572,204,573,203,573,203,574,203,573,202,573,201,5 73,201,572,200,572,200,571,200,570,199,570,199,569,199,568,199,567,198,566,197,566,197,565 ,196,565,196,564,195,564,194,564,194,563,193,563,192,563,192,562,191,562,190,562,189,562,1 88,562,187,562,186,562,186,561,187,561,186,561,185,561,184,561,183,561,182,561,182,560,181 ,560,180,560,179,559,178,558,177,557,176,557,176,556,175,556,174,556,174,555,173,555,172,5 55,171,556,169,556,168,556,168,557,167,557,166,557,165,557,164,557,164,558,163,558,162,558 ,161,558,160,559,159,559,159,560,158,560,158,561,158,562,158,563,157,563,157,564,157,565,1 57,566,156,567,155,567,155,568,154,568,153,568,153,567,152,567,151,567,150,566,149,566,149 ,565,149,564,149,563,149,562,149,561,149,560,149,559,149,558,149,557,149,555,150,555,150,5 54,150,553,150,552,150,551,150,549,150,548,150,547,150,546,150,545,150,544,151,543,151,541 ,151,540,151,538,151,537,151,536,151,534,151,532,152,531,152,530,152,529,152,528,152,527,1 52,526,152,525,152,523,152,522,152,521,152,520,152,519,153,519,153,518,153,517,153,516,153 ,515,153,514,153,513,153,512,153,510,153,508,153,507,154,506,154,505,154,504,154,503,154,5 02,155,502,156,502,159,502,160,502,161,502,162,502,163,502,164,502,165,502,165,501,166,501 ,167,501,168,501,169,501,170,501,170,500,171,500,172,500,173,500,174,500,175,500,175,499,1 76,499,177,499,178,499,179,499,180,499,180,498,182,498,184,498,188,497,189,497,190,497,191 ,497</coords>
<county>Adams County</county>
</location>
<location>
<filepath>P1009.pdf</filepath>
<coords>132,183,132,184,132,185,132,186,132,187,132,188,132,189,132,190,132,192,132,194,1 31,195,131,196,131,197,131,199,131,201,131,202,131,203,131,204,131,206,131,207,131,208,131 ,209,131,210,131,211,131,212,131,213,131,214,131,216,131,217,131,218,131,219,131,220,131,2 21,131,223,131,224,131,225,131,226,131,227,131,228,131,229,130,229,129,229,126,229,125,229 ,124,229,123,229,122,229,119,229,118,229,117,229,116,229,114,229,113,229,112,229,111,229,1 10,229,109,229,108,229,107,229,106,229,105,229,104,229,102,229,102,227,102,226,100,226,99, 226,98,226,97,226,96,226,95,226,92,226,90,226,89,226,87,226,87,225,87,224,87,222,87,221,85 ,221,84,221,83,221,82,221,81,221,80,221,78,221,77,221,76,221,75,221,72,221,71,221,69,221,6 8,221,65,221,65,220,65,219,65,218,65,217,65,216,65,215,65,214,65,212,65,211,65,210,65,209, 65,207,65,206,65,205,65,204,65,203,65,201,65,200,65,199,66,199,67,199,68,199,70,199,71,199 ,72,199,73,199,73,197,73,196,73,195,73,194,73,193,73,192,74,192,75,192,76,192,77,192,79,19 2,80,192,81,192,82,192,83,192,84,192,85,192,86,192,87,192,88,192,90,192,91,192,92,192,95,1 92,99,192,100,192,101,192,102,192,102,191,102,190,102,188,102,187,102,186,102,185,105,185, 106,185,107,185,108,185,109,185,110,185,111,185,113,185,114,185,115,185,116,185,117,185,11 7,184,117,183,117,182,118,182,119,182,120,182,121,182,122,182,123,182,124,182,125,182,126, 182,127,182,128,182,129,183</coords>
<county>Allen County</county>
</location>
</locations>
Here's my XHTML:
<div spry:region="ds1">
<p>Click on a county, or select from the following:
<select onchange="jumpMenu(this)" name="menu1">
<option spry:repeat="ds1" value="../files/research/{filepath}">{county}</option>
</select>
</p>
</div>
<div spry:region="ds1"> <img src="../images/OhioCountyMap.gif" usemap="#Map">
<map id="Map" name="Map">
<area spry:repeat="ds1" shape="poly" coords="{coords}" href="../files/research/{filepath}">
</map>
</div> -
Loop movie, but load XML once
Background:
I am tasked with building a vertical news scroller that reads
from an xml file and loops indefinitely.
Problem 1:
I have figured out how to scroll static text and I am now
working on loading the xml which I also have done. The problem I am
having with loading the xml is that if the movie loops, it is
loading the XML each instance of the loop. How can I load the XML
only on the initial load and still loop the movie?
Problem 2:
When working with static text, scrolling is simply a matter
of doing a motion tween. When working with XML, the data will not
be a fixed length, so doing a motion tween will have 2 problems.
First, the original text object will have a fixed height which will
either have blank space when the XML returns less than enough to
fill it, or will have hidden text when the XML returns more that it
can hold. Can I dynamically adjust the height of a text object to
fit the text that has been put into it? Once I figure out how to
dynamically change the height we have the second problem. If the
tween was built to scroll 10 records over 200 frames and the XML
now returns 100 records, the scroll will be 10 times too fast. Can
I dynamically adjust how many frames the tween will operate
over?1. You can keep the XML in a variable and use an if/else to
determine if the XML is loaded.
var myXML:XML
// later
if(!myXML){
// call function or class that loads XML and assigns loaded
XML to the variable myXML
2. You can make dynamic TextField autosized AND multilined
(autoSize and multiline text filed properties) - it will adjust
text height depending on the content - width will not be affected.
Since the scrolling is an indefinite motion in this case, I
am not sure tweening is the best approach. Perhaps a better and
more controllable solution would be to write your own function
(class) that will perform the scroll. -
I am currently working on an application in which I have a XML file that is 1.5 mb and has 1100 records that I need to load and parse. Loading takes less than a minute, but when I try to parse it with the DOM parser it's taking too much time. I am trying to put it into an array and then display it as if I'm tied to a database. I need a different approach. Does anyone have any experience and insight with the DOM parser? Would the SAX parser be a better way to go, why and how?
You can use SAX... but SAX is good only if you want to read the data once.
If you want to use the same data again and again then you might have to parse the file again... which prooves expensive.
DOM will take too much of memory and CPU time.
Have you tried using JDOM ? it is a new kind of a XML parsing utility that is quite lightweight and has good api to recurse the JDOM tree also.
check it out at
http://www.jdom.org.
hope this helps.
regards,
Abhishek. -
Repeated retrieval and parsing of XML file causes IE to display an error message
I have a flash application that makes a HTTP call every 120
seconds to retrieve a xml file. This file is being generated with
fresh data every few minutes or so and pushed to the apache web
root with a unix mv command.
I'm using the standard Flash XML object. The HTTP request is
NOT over SSL (I know there is a bug related to this). Here is the
code to make the retrieval:
xmlData = null;
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = xmlTraverse;
xmlData.load("
http://domain/dir/somefile.xml");
The "xmlTraverse" method was written by my team. There is no
known bug in the parsing logic.
Intermittently and unpredictably, IE will display the
following dialogue box:
"A script in this movie is causing Macromedia Flash Player 8
to run slowly. If it continues to run, your computer may become
unresponive. Do you want to abort the script?"
I originally leaned toward an infinite loop causing this
problem. The timeline jumps back and forth between two frames,
checking in the latter frame if the xml has been loaded and parsed
before allowing execution to move to the next frame. I hardcoded
the loop check to always be false, but this did not produce the
message above (although it pegged my CPU).
The only scenario where I've managed to reproduce the message
above is by making a huge (50 MB) xml file. This consistently
produces the message. But I don't realistically see how our xml
file could ever be over 1 MB.
First, can anyone cite another cause for this message? I'm
starting to lean towards the issue lying in our parsing logic such
as infinite recursion on a badly formed XML file. Second, does
anyone know of a solid xml SAX parsing actionscript utility where
you can assign callbacks to XML nodes? If the problem is in the
parsing, we may have to replace our homegrown solution with
something more robust and proven.Is it a recursive parsing function? I'm not sure about this,
but I think this message pops up when there are more than 256
iterations in a loop (I've read something about this 256 limit,
that will end while loops if they exceed this, but with another
error message... but again, I'm not totally sure about that).
The message is typically for loops, but I don't know when it
fires. Sometimes it appears for really 'small' loops when you're
using the debugger (e.g. a for loop with 100 iterations), so maybe
it is connected to the time a loop is running. You could place some
trace statements in the xmlTraverse method, to see where the
function was when the message occurs, or take the time the function
needs and check if this might be related to the error.
That's all I can come up with, guess there are people here
with more insight to this...
cheers,
blemmo -
While executing the sample procedure for XML/PLSQL Parser it gives the error:
ERROR at line 1:
ORA-29541: class SCOTT.oracle/xml/parser/plsql/XMLParserCover could not be resolved
ORA-06512: at "SCOTT.XMLPARSERCOVER", line 0
ORA-06512: at "SCOTT.XMLPARSER", line 57
ORA-06512: at "SCOTT.DOMSAMPLE", line 57
ORA-06512: at line 1
While loading the xmlparserv2.jar by using Loadjava I got the resolving problem for some class.
Wht should i do to rectify this error?
Thanks And Regards
Suresh
null<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Steven Muench ([email protected]):
SELECT TEXT FROM USER_ERRORS
WHERE NAME = DBMS_JAVA.SHORTNAME('oracle/xml/parser/plsql/XMLParserCover')
to see what error is preventing this class from being resolved...<HR></BLOCKQUOTE>
========================
Hello.
I have exactly the same problem and the above SQL does not return any rows.
I upgraded my 8.1.5 on NT to 8.1.6. On trying to install the PL/SQL XML parser, received errors with resolving classes. Suspecting problems with Java VM, I re-installed the JVM using initjvm.sql. On successfull completion, i re-tried installing the parser. Still have the same problems.
Is there anything else i could try?
regards
Krishnan.
null -
Downloading and parsing XML during preload
Apologies if this topic has already been covered but the
search function on the forums doesn't appear to be working for me.
My problem is this. I have a flex app that needs to download
a couple of xml files during initialization that are approximately
2-3 MB each. I'd like for the progress bar to continue showing
until the files are downloaded and parsed and only after the files
are downloaded and parsed, would the components start to be
rendered since some of them will require the files to determine
their look and feel.
Any ideas or places I should look to in order to figure this
out?
Thanks
SangGreg_B,
You could try and access the XML file via a file:// URI rather than an http:// one - this would not need the server to be started in order to get the xml/dtd loaded. You know the relative path to the dtd and xml files, and you can create a File object from there, so you can parse the xml file that way if you like.
Here's some code to help:
String filename = getServletContext().getRealPath("myXML.xml");
You can then pass the filename string as a parameter to the XML (I'm assuming you're using DOM but if you aren't I think you'll still get my point) parse method.
You can do all of this in the servlet's init() method, so it'll do that before it all loads up.
Hope it helps
Daniel -
OWB11gR2 - simple and easy way to load XML formatted data into db tables?
Hi,
we're currently trying to load table data stored in XML files into our datawarehouse using OWB 11gR2.
However, we're finding this is not quite as trivial as loading flat files...
Most postings on this forum points to the blog-entry title "Leveraging XDB" found here (http://blogs.oracle.com/warehousebuilder/2007/09/leveraging_xdb.html).
This blog also references the zip-file owb_xml_etl_utils.zip, which seems to have disappeared from it's original location and can now be found on sourceforge.
Anyway, the solution described is for OWB 10g, and when trying to import experts from the zip-file etc. we end up not being able to run the "Create ETL from XSD" expert, as the 11gR2 client is different from the 10g and does not have the Experts menu et.al.
Also, this solution was published over 3 years ago, and it seems rather strange that importing XML-formatted data should still be so cumbersome in the newer warehouse builder releases.
The OWB 11gR2 documentation is very sparse (or rather - quite empty) on how to load XML data, all it has is a few lines on "XML Transformations", giving no clue as to how one goes about loading data.
Is this really the state of things? Or are we missing some vital information here?
We'd have thought that with 11g-releases, loading XML-data would be rather simple, quick and painless?
Is there somewhere besides the blog mentioned above where we can find simple and to the point guidelines for OWB 11gR2 on how to load XML-formatted data into Oracle tables?
Regards,
-Haakon-Yes it is possible to use SQL*Loader to parse and load XML, but that is not what it was designed for and so is not recommended. You also don't need to register a schema, just to load/store/parse XML in the DB either.
So where does that leave you?
Some options
{thread:id=410714} (see page 2)
{thread:id=1090681}
{thread:id=1070213}
Those talk some about storage options and reading in XML from disk and parsing XML. They should also give you options to consider. Without knowing more about your requirements for the effort, it is difficult to give specific advice. Maybe your 7-8 tables don't exist and so using Object Relational Storage for the XML would be the best solution as you can query/update tables that Oracle creates based off the schema associated to the XML. Maybe an External Table definition works better for reading the XML into the system because this process will happen just once. Maybe using WebDAV makes more sense for loading XML to be parsed (I don't have much experience with this, just know it is possible from what I've read on the forums). Also, your version makes a difference as you have different options available depending upon the version of Oracle.
Hope all that helps as a starter.
Edited by: A_Non on Jul 8, 2010 4:31 PM
A great example, see the answers by mdrake in {thread:id=1096784} -
I'd like to load images using XML and Java - hints??
I have a XML files that are created on a timed basis....they describe a photo and point to a dir where the photo is stored...like...
<image>
<user>bill</user>
<img>photo.jpg</img>
<img_dir>'/tmp/photos'</img_dir>
</image>
I'd like to write a Java program that parses the XML and loads the images, data into Oracle.
Suggestions on Oracle tools, downloads that will help me accomplish this???
Thanks!I pass a URL and then when I parse the XML I download the file from the URL.
A.
Maybe you are looking for
-
Script cannot find perl Data:Dumper module
Good day. I live in Australia and use a script called Shepherd to update my mythtv program listings. After upgrading a couple of days ago (first time in about 6 months) Shepherd has stopped working. Shepherd doesn't seem to find the perl data-dumper
-
How to view Tamil document in mail ? Any application to view Tamil
Dear sir I can't view tamil document ( in word , excel) how to view that document in android os document convert text and then view tamil viewer application any application to view the tamil document pls help otherwise to clear the problem quickly
-
Can I use MapViewer to display dynamic flowchart?
Hi, Here is my requirement: I have a web application consisting of many screens/pages. The page flow is not static but changes dynamically based on user input on each page. I want to add a function for this app to show this dynamic page/screen flow i
-
Sketch filters return faded results
I am running PS CS3 10.0.1 under Win 7 x64. Both PS and Win are fully up to date with all current updates. Display drivers also are fully up to date. Please don't bother to suggest updating any of this. I use the sketch filters from time to time, and
-
SAP Error code- How to find possible errors
Hi, Please advise is there any way to identify the possible errors in data or in config using error codes displayed by the sap system. Any such procedure to trace the possible mistakes. please guide me.