Photos loaded from XML
i found a great tutorial on how to create a photo gallery
that loads the content from an xml file. right now, the code cycles
through the pictures, and when it reaches the end it stops. also,
when you first launch the gallery (at the beginning/first picture),
the previous button does nothing. i would like to alter this to
create a loop, where there is no end. when you reach the end of the
array, the "next" button starts back at the beginning, and when
you're at the first picture in the gallery, the "previous" button
goes to the last picture. here's the code....
function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild;
image = [];
description = [];
total = xmlNode.childNodes.length;
for (i=0; i<total; i++) {
image
= xmlNode.childNodes.childNodes[0].firstChild.nodeValue;
description
= xmlNode.childNodes.childNodes[1].firstChild.nodeValue;
firstImage();
} else {
content = "file not loaded!";
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("images.xml");
listen = new Object();
listen.onKeyDown = function() {
if (Key.getCode() == Key.LEFT) {
prevImage();
} else if (Key.getCode() == Key.RIGHT) {
nextImage();
Key.addListener(listen);
previous_btn.onRelease = function() {
prevImage();
next_btn.onRelease = function() {
nextImage();
p = 0;
this.onEnterFrame = function() {
filesize = picture.getBytesTotal();
loaded = picture.getBytesLoaded();
preloader._visible = true;
if (loaded != filesize) {
preloader.preload_bar._xscale = 100*loaded/filesize;
} else {
preloader._visible = false;
if (picture._alpha<100) {
picture._alpha += 10;
function nextImage() {
if (p<(total-1)) {
p++;
if (loaded == filesize) {
picture._alpha = 0;
picture.loadMovie(image[p], 1);
desc_txt.text = description[p];
picture_num();
function prevImage() {
if (p>0) {
p--;
picture._alpha = 0;
picture.loadMovie(image[p], 1);
desc_txt.text = description[p];
picture_num();
function firstImage() {
if (loaded == filesize) {
picture._alpha = 0;
picture.loadMovie(image[0], 1);
desc_txt.text = description[0];
picture_num();
function picture_num() {
current_pos = p+1;
pos_txt.text = current_pos+" / "+total;
any help, ideas, suggestions, comments, or simple hello's are
much appreciated. thanks in advance! laters..........
sorry for not using the attach code feature. you think as
often as i use this site, i would have noticed that little button
before today. i have a new motto, "you learn something new
everday..... if you visit the adobe forums". ha ha.
anyweezer, so i found a solution to my problem that creates a
new question. i need to create an empty movie clip, for each
picture, each with a unique instance name. i'm thinking that the
createEmptyMovieClip would go in the for loop near the beginning of
the script. let me try this attach code thing now....
Similar Messages
-
Custom Connection Manager only works in 32bit- 0xC0011008: Error loading from XML
I have a very basic / stripped connection manager with only one property (SSIS 2012). It works fine in design time (you can open the connection manager editor and change the value), but in runtime it only works in 32bit mode. The runtime-validate-method
does work, but if everything validates OK then in 64bit it throws an error when you run the package:
Exception deserializing the package "The package failed to load due to error 0xC0011008 "Error loading from XML. No further detailed error information can be specified for this problem because no Events object was passed where detailed error information
can be stored.". This occurs when CPackage::LoadFromXML fails.
The 2 VS projects are .Net 4 class library projects with the Build Platform on "Any CPU"
I only add references to:
Microsoft.SqlServer.ManagedDTS - C:\Windows\Microsoft.NET\assembly\GAC_MSIL\Microsoft.SqlServer.ManagedDTS\v4.0_11.0.0.0__89845dcd8080cc91\Microsoft.SqlServer.ManagedDTS.dll
Microsoft.SqlServer.Dts.Design - C:\Windows\Microsoft.NET\assembly\GAC_MSIL\Microsoft.SqlServer.Dts.Design\v4.0_11.0.0.0__89845dcd8080cc91\Microsoft.SqlServer.Dts.Design.dll
Compiled DLL's are available in GAC and SQL Server connections folder:
I made the sourcecode available via codeplex:
https://ssisconnectionmanager.codeplex.com/SourceControl/latest#myFirstConnectionManager/2012/myFirstConnectionManager/myFirstConnectionManager.cs
Please mark the post as answered if it answers your question | My SSIS Blog:
http://microsoft-ssis.blogspot.com |
TwitterAppPrincipal (identity) related? Hint http://serverfault.com/questions/339747/the-package-failed-to-load-due-to-error-0xc0011008-error-loading-from-xml
Arthur My Blog
Hi Arthur,
Looks like something similar (same message, same 64bit issue), will try that tomorrow! But sounds weird that you should tell SSIS which identity to use...
Found the same thread in MSDN:
http://social.msdn.microsoft.com/Forums/sqlserver/en-US/47d185d3-c801-45cf-becd-3c2524d98353/the-package-failed-to-load-due-to-error-0xc0011008-error-loading-from-xml?forum=sqlintegrationservices
Please mark the post as answered if it answers your question | My SSIS Blog:
http://microsoft-ssis.blogspot.com |
Twitter -
I am trying to deploy SSIS packages to file system using manifest file. These packages are upgraded from SSDT 2005 to SSDT 2010. Also I have changed the protection level from 'EncryptSensitiveWithPassword' to 'DontSaveSensitive' to upgrade it.
I coun't complete the deployment and the error details shown below.
TITLE: Package Installation Wizard
Package "Packagename.dtsx" could not be loaded. The package failed to load due to error 0xC0011008 "Error loading from XML. No further detailed error information can be specified for this problem because no Events object was passed where detailed
error information can be stored.". This occurs when CPackage::LoadFromXML fails.
Package ""Packagename.dtsx" could not be loaded. The package failed to load due to error 0xC0011008 "Error loading from XML. No further detailed error information can be specified for this problem because no Events object was passed where
detailed error information can be stored.". This occurs when CPackage::LoadFromXML fails.
ADDITIONAL INFORMATION:
The package failed to load due to error 0xC0011008 "Error loading from XML. No further detailed error information can be specified for this problem because no Events object was passed where detailed error information can be stored.". This occurs when
CPackage::LoadFromXML fails.
The package failed to load due to error 0xC0011008 "Error loading from XML. No further detailed error information can be specified for this problem because no Events object was passed where detailed error information can be stored.". This occurs when
CPackage::LoadFromXML fails.
BUTTONS:
OK
Please give a solution.
Sreekanth MohanCheck this
blog post as it gives complete information about error.
It looks like its still using SQL 2005 DTEXEC.exe instead of latest version.
Regards,
Vishal Patel
Blog: http://vspatel.co.uk
Site: http://lehrity.com -
Source environment: Win 7 Enterprise SP1 64bit - SQL Server 2008 R2 SP1 Developer Edition (10.50.2550.0 )
Target environment: Win 2008 R2 Standard SP1 64bit - SQL Server 2008 R2 SP1 Standard Edition (10.50.2500.0
I want to deploy a package with the deployment manifest, but I'm getting an error (during deployment):
Package "D:\Program Files (x86)\Microsoft SQL Server\100\DTS\Packages\Migration\Students.dtsx" could not be loaded.
The package failed to load due to error 0xC0011008 "Error loading from XML. No further detailed error information can be specified for this problem because no Events object was passed where detailed error information can
be stored.". This occurs when CPackage::LoadFromXML fails.
I already remove a fuzzy lookup since this isn't part of the Standard edition, but still getting the error above.
Package Example:
If I just copy the package and try to run it I get this (0xC0010014):
Any suggestions?Hi SSISJoost,
After installing some update such as MS09-62 (KB970896), the "DTS.dll" and "MsDtsSrvrUtil.dll" may be unregistered. In this issue, the error may occur if the two DLL files are not registered. Here, please register both the 32 bit and 64 bit versions of the
DTS.dll and MsDtsSrvrUtil.dll files, and check the issue again.
Hope this helps.
Regards,
Mike Yin
If you have any feedback on our support, please click
here
Mike Yin
TechNet Community Support -
Form are different when save an exist form as XML then load from XML
Hi everyone,
Who have experience that save an exist form as XML file then load from XML, some controls position, size and color different with the source form.
I want to use the system wizard form style and I saved system form MRP Wizard as XML file, when I load form from XML, the form shows picture with different position, size, the rectangle control lost color and position also different with source form, because I want to get the line color in the form, the separate line implement using rectangle, please share your opinion how to save the form as XML more Accurate.
Thanks in advance!
KathyHi Kathy
After loading a form over XML, we made the experince that in matrices link buttons will not appear everwehere they should. It's a tricky part and we made a work around by changing the columns order and then...the Link Buttons came up ok.
regards
Kurt -
AR can't be added-Error "Failed to load from XML resource"
Hi Everyone,
I need help with this error. When entering an item and then tabbing in an AR document, this code appears.
"Failed to load from XML resouce".
Thanks,\
DebbieHello experts,
I am facing this issue in SBO 9.0 PL 08.
Using SBOdemoUS, clic 'Duplicate' an existing Sales Order, then select a Business Partner, and hit 'yes' to the question in order to refresh rows with new BP info. You will get red bar error 'Failed to load from XML resource - (UI_API 7004) [Message 66000-6]' and it wipes out all the copied rows info. Does not happen with BPs that don't have default Ship To info.
Your advise please.
Thanks -
Hi all,
I'm trying to write some code in C# and I have a problem with LoadFromXML function. Here's my code:
try
System.Xml.XmlDocument xmlDoc = new System.Xml.XmlDocument();
string path;
string refString;
path = Environment.CurrentDirectory;
<b>xmlDoc.LoadXml(path + "
" + fileName); //Exception</b>
refString = xmlDoc.InnerXml;
App.LoadBatchActions(ref refString);
catch (Exception ex)
Msg("Load from XML failed: " + ex.Message);
In bolded line ecpetion appears: "The data at the root level is invalid. Line 1, position 1." . Does anyone know what to do with this?
Regards
HmgAlso instead of
Enviroment.CurrentDirectory
you should use
System.Windows.Forms.Application.StartupPath
, because after you build you add-on with an installer Enviroment.CurrentDirectory does not point to the installed folder -
Data Load from XML file to Oracle Table
Hi,
I am trying to load data from XML file to Oracle table using DBMS_XMLStore utility.I have performed the prerequisites like creating the directory from APPS user, grant read/write to directory, placing the data file on folder on apps tier, created a procedure ‘insertXML’ to load the data based on metalink note (Note ID: 396573.1 How to Insert XML by passing a file Instead of using Embedded XML). I am running the procedure thru below anonymous block to insert the data in the table.
Anonymous block
declare
begin
insertXML('XMLDIR', 'results.xml', 'employee_results');
end;
I am getting below error after running the anonymous block.
Error : ORA-22288: file or LOB operation FILEOPEN failed”
Cause : The operation attempted on the file or LOB failed.
Action: See the next error message in the error stack for more detailed
information. Also, verify that the file or LOB exists and that
the necessary privileges are set for the specified operation. If
the error still persists, report the error to the DBA.
I searched this error on metalink and found DOC ID 1556652.1 . I Ran the script provided in the document. PFA the script.
Also, attaching a document that list down the steps that I have followed.
Please check and let me know if I am missing something in the process. Please help to get this resolve.
Regards,
SankalpThanks Bashar for your prompt response.
I ran the insert statement but encountered error,below are the error details. statement.
Error report -
SQL Error: ORA-22288: file or LOB operation FILEOPEN failed
No such file or directory
ORA-06512: at "SYS.XMLTYPE", line 296
ORA-06512: at line 1
22288. 00000 - "file or LOB operation %s failed\n%s"
*Cause: The operation attempted on the file or LOB failed.
*Action: See the next error message in the error stack for more detailed
information. Also, verify that the file or LOB exists and that
the necessary privileges are set for the specified operation. If
the error still persists, report the error to the DBA.
INSERT statement I ran
INSERT INTO employee_results (USERNAME,FIRSTNAME,LASTNAME,STATUS)
SELECT *
FROM XMLTABLE('/Results/Users/User'
PASSING XMLTYPE(BFILENAME('XMLDIR', 'results.xml'),
NLS_CHARSET_ID('CHAR_CS'))
COLUMNS USERNAME NUMBER(4) PATH 'USERNAME',
FIRSTNAME VARCHAR2(10) PATH 'FIRSTNAME',
LASTNAME NUMBER(7,2) PATH 'LASTNAME',
STATUS VARCHAR2(14) PATH 'STATUS'
Regards,
Sankalp -
Pre-loading images loaded from XML.
Hello,
I hoping for some guidance please.
I have a Gallery that loads thumbnails from an XML.
I have added a pre-loader to each one of the thumbnails as it is being loaded from the XML.
My problem is that I can't figure out how to remove the pre-loaders after it has called the Event.COMPLETE.
With my curent code,
As it completes loading the thumbnails, it throws an error and only removes the very last pre-loader.
Thanks for any help you can provide.
Here is the code I am currently using.
var urlRequest:URLRequest = new URLRequest("images.xml");
var urlLoader:URLLoader = new URLLoader();
var myXML:XML = new XML();
var xmlList:XMLList;
urlLoader.load(urlRequest);
myXML.ignoreWhitespace = true;
urlLoader.addEventListener(Event.COMPLETE,fileLoaded);
var arrayURL:Array = new Array();
var arrayName:Array = new Array();
var holderArray:Array = new Array();
var nrColumns:uint = 1;
var wheel:MovieClip;
var holdMe;
var thumbsprite:Sprite = new Sprite();
addChild(thumbsprite);
var thumb:Thumbnail;
var thumbsHolder:Sprite = new Sprite();
thumbsprite.addChild(thumbsHolder);
function fileLoaded(event:Event):void {
myXML = XML(event.target.data);
xmlList = myXML.children();
for (var i=0; i<xmlList.length(); i++) {
var picURL:String = xmlList[i].url;
var picName:String = xmlList[i].big_url;
arrayURL.push(picURL);
arrayName.push(picName);
holderArray[i] = new Thumbnail(arrayURL[i],i,arrayName[i]);
holdMe = holderArray[i];
var loader:Loader = new Loader();
loader.load(new URLRequest(xmlList[i].url));
wheel=new rootz();
holdMe.addChild(wheel);
loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, preload);
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, completed);
function preload(event:ProgressEvent):void {
var percent:Number = Math.round(event.bytesLoaded / event.bytesTotal * 100);
trace(String(percent) + "%");
function completed(event:Event):void {
holdMe.removeChild(wheel);
if (i<nrColumns) {
holderArray[i].y = 65;
holderArray[i].x = i*100;
} else {
holderArray[i].y = holderArray[i-nrColumns].y+110;
holderArray[i].x = holderArray[i-nrColumns].x;
thumbsHolder.addChild(holderArray[i]);I am not sure why but the code I posted did not post right,
Here is my code -
var urlRequest:URLRequest = new URLRequest("images.xml");
var urlLoader:URLLoader = new URLLoader();
var myXML:XML = new XML();
var xmlList:XMLList;
urlLoader.load(urlRequest);
myXML.ignoreWhitespace = true;
urlLoader.addEventListener(Event.COMPLETE,fileLoaded);
var arrayURL:Array = new Array();
var arrayName:Array = new Array();
var holderArray:Array = new Array();
var nrColumns:uint = 1;
var wheel:MovieClip;
var holdMe;
var thumbsprite:Sprite = new Sprite();
addChild(thumbsprite);
var thumb:Thumbnail;
var thumbsHolder:Sprite = new Sprite();
thumbsprite.addChild(thumbsHolder);
function fileLoaded(event:Event):void {
myXML = XML(event.target.data);
xmlList = myXML.children();
for (var i=0; i<xmlList.length(); i++) {
var picURL:String = xmlList[i].url;
var picName:String = xmlList[i].big_url;
arrayURL.push(picURL);
arrayName.push(picName);
holderArray[i] = new Thumbnail(arrayURL[i],i,arrayName[i]);
holdMe = holderArray[i];
var loader:Loader = new Loader();
loader.load(new URLRequest(xmlList[i].url));
wheel=new rootz();
holdMe.addChild(wheel);
loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, preload);
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, completed);
function preload(event:ProgressEvent):void {
var percent:Number = Math.round(event.bytesLoaded / event.bytesTotal * 100);
trace(String(percent) + "%");
function completed(event:Event):void {
holdMe.removeChild(wheel);
if (i<nrColumns) {
holderArray[i].y = 65;
holderArray[i].x = i*100;
} else {
holderArray[i].y = holderArray[i-nrColumns].y+110;
holderArray[i].x = holderArray[i-nrColumns].x;
thumbsHolder.addChild(holderArray[i]); -
I am making a gallery using xml and as3. I've run into a
problem very early and I'm not too good with Actionscript yet. So
I've come here for some help.
What I want right now, is to have an image be loaded from a
xml file, which is working for me. And then have a white movieclip
come in a resize behind the image to be a frame for the image. I
haven't gotten to this part yet. My problem starts when I try to
load the image with a blank movieclip to position it. The image
loads, but the eventListener won't run the imageLoaded function. If
I remove the function and just have
holder_mc.addchild(imageLoader); Then it works, but I need the
image to load and then resize the movieclip frame, and then display
both right? How can I accomplish this?I was trying to solve this myself just last night and after
seeing your post today I figured maybe I can help you out (as long
as I'm addressing the problem you have).
apparently the addEventListener needs a kick start from
something else. If you look up the Loader class in the Flash help
files it provides an example near the bottom that holds the key.
I'm providing a shorthanded solution that I derived from it.
Rather than:
imageLoader.addEventListener(Event.COMPLETE,
completeHandler);
There is another piece in the in the middle of the process:
"contentLoaderInfo"
imageLoader.contentLoaderInfo.addEventListener(Event.COMPLETE,
completeHandler);
Hope that helps -
Problem with special characters loaded from XML
I have an XML whose elements contain special characters (for example: ñ, Ñ, á, Á, etc..), When I load the XML and make a Trace () the loaded element, I see that it is loaded correctly, but then in the text field is not special characters. For example in the XML I have the text Baños, but in the text field shown Baos.
It is clear that in the text field are incorporated upper case, lower case, numerals, punctuation symbols and Basic Latin.
I also tested with the judgment System.useCodePage = true in the code but does not work.
Thanks for any help you can give me.
Garchabig.
PD: Sorry for poor English, I'm Latino. -Hi, before reading your answer I tried embedding all characters and surprise surprise, it worked!
So then I was testing with embedded characters to see what was the need to display special characters (like "ñ", "í", etc..) and discovered that it has to be built or yes is Latin I (194/388 glyphs).
Thank you very much also for the answer.
Greetings, Garchabig. - -
Hi,
I have a webpage created in flash which uses xml to load specific gallerys into movie clips. Everything works fine in preview, but when uploaded it doesn't work. When you click on film or any of the other galleries, the galley does not load. I don't know whether this has something to do with the hosting or not. I'm only begining to use xml so my knowledge is quite limited. Any help would be much appreciated. The website adress is below. I've also attached my action script. Cheers
http://www.honeytree.com.au/luke/walshwebsite/
function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild;
image = [];
description = [];
thumbnails = [];
total = xmlNode.childNodes.length;
for (i=0; i<total; i++) {
image[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
description[i] = xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue;
thumbnails[i] = xmlNode.childNodes[i].childNodes[2].firstChild.nodeValue;
thumbnails_fn(i);
firstImage();
} else {
content = "file not loaded!";
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("film.xml");
listen = new Object();
listen.onKeyDown = function() {
if (Key.getCode() == Key.LEFT) {
prevImage();
} else if (Key.getCode() == Key.RIGHT) {
nextImage();
Key.addListener(listen);
previous_btn.onRelease = function() {
prevImage();
next_btn.onRelease = function() {
nextImage();
p = 0;
this.onEnterFrame = function() {
filesize = picture.getBytesTotal();
loaded = picture.getBytesLoaded();
preloader._visible = true;
if (loaded != filesize) {
preloader.preload_bar._xscale = 100*loaded/filesize;
} else {
preloader._visible = false;
if (picture._alpha<100) {
picture._alpha += 10;
function nextImage() {
if (p<(total-1)) {
p++;
if (loaded == filesize) {
picture._alpha = 0;
picture.loadMovie(image[p], 1);
desc_txt.text = description[p];
picture_num();
function prevImage() {
if (p>0) {
p--;
picture._alpha = 0;
picture.loadMovie(image[p], 1);
desc_txt.text = description[p];
picture_num();
function firstImage() {
if (loaded == filesize) {
picture._alpha = 0;
picture.loadMovie(image[0], 1);
desc_txt.text = description[0];
picture_num();
function picture_num() {
current_pos = p+1;
pos_txt.text = current_pos+" / "+total;
function thumbNailScroller() {
// thumbnail code!
this.createEmptyMovieClip("tscroller", 1000);
scroll_speed = 20;
tscroller.onEnterFrame = function() {
if ((_root._ymouse>=thumbnail_mc._y) && (_root._ymouse<=thumbnail_mc._y+thumbnail_mc._height)) {
if ((_root._xmouse>=(hit_right._x-40)) && (thumbnail_mc.hitTest(hit_right))) {
thumbnail_mc._x -= scroll_speed;
} else if ((_root._xmouse<=40) && (thumbnail_mc.hitTest(hit_left))) {
thumbnail_mc._x += scroll_speed;
} else {
delete tscroller.onEnterFrame;
function thumbnails_fn(k) {
thumbnail_mc.createEmptyMovieClip("t"+k, thumbnail_mc.getNextHighestDepth());
tlistener = new Object();
tlistener.onLoadInit = function(target_mc) {
target_mc._x = hit_left._x+(eval("thumbnail_mc.t"+k)._width+5)*k;
target_mc.pictureValue = k;
target_mc.onRelease = function() {
p = this.pictureValue-1;
nextImage();
target_mc.onRollOver = function() {
this._alpha = 50;
thumbNailScroller();
target_mc.onRollOut = function() {
this._alpha = 100;
image_mcl = new MovieClipLoader();
image_mcl.addListener(tlistener);
image_mcl.loadClip(thumbnails[k], "thumbnail_mc.t"+k);Your xml file appears to be specifying local drive paths rather than web paths...
\film\DSC_0040web.jpg
should be
film/DSC_0040web.jpg -
Greetings,
I got a problem trying to extract data from XML to oracle database.
1.My table structure is
CREATE TABLE xml_test(empno NUMBER(4),empname VARCHAR2(100 ));
2.My XML Code is
<ROWSET>
<ROW num="1">
<EMPNO>101</EMPNO>
<EMPNAME>SMITH</EMPNAME>
</ROW>
<ROW num="2">
<EMPNO>102</EMPNO>
<EMPNAME>KING</EMPNAME>
</ROW>
<ROW num="3">
<EMPNO>101</EMPNO>
<EMPNAME>SMITH</EMPNAME>
</ROW>
</ROWSET>
3.My procedure is
CREATE OR REPLACE PROCEDURE xmlinsert (xmlstring IN VARCHAR2)
IS
insctx dbms_xmlsave.ctxtype;
rowsp INTEGER;
BEGIN
insctx := dbms_xmlsave.newcontext ('xml_test');
dbms_xmlsave.setrowtag (insctx, 'XML_TEST');
rowsp := dbms_xmlsave.insertxml (insctx, xmlstring);
dbms_xmlsave.closecontext (insctx);
END;
4.I can use this procedure when there is only one record to be inserted, like in the XML code
<xml_test>
<EMPNO>101</EMPNO>
<EMPNAME>SMITH</EMPNAME>
</xml_test>
5.Now my problem is
What change should be made in my procedure, so that it can handle multiple rows, like in the XML code in 2.
Any help is appreciated. Thanks in advance.
Regards
GeorgeYou say "with correct row tags"; what do you mean?
SQL> CREATE TABLE xml_test(empno NUMBER(4),empname VARCHAR2(100 ))
2 /
Table created.
SQL> DECLARE
2 str LONG :=
3 '<ROWSET>'||
4 '<ROW num="1">'||
5 '<EMPNO>101</EMPNO>'||
6 '<EMPNAME>SMITH</EMPNAME>'||
7 '</ROW>'||
8 '<ROW num="2">'||
9 '<EMPNO>102</EMPNO>'||
10 '<EMPNAME>KING</EMPNAME>'||
11 '</ROW>'||
12 '<ROW num="3">'||
13 '<EMPNO>101</EMPNO>'||
14 '<EMPNAME>SMITH</EMPNAME>'||
15 '</ROW>'||
16 '</ROWSET>' ;
17 insctx dbms_xmlsave.ctxtype;
18 rowsp INTEGER;
19 BEGIN
20 insctx := dbms_xmlsave.newcontext ('XML_TEST');
21 dbms_xmlsave.setrowtag (insctx, 'ROW'); -- << << <<---
22 rowsp := dbms_xmlsave.insertxml (insctx, str);
23 dbms_xmlsave.closecontext (insctx);
24 END;
25 /
PL/SQL procedure successfully completed.
SQL> select count(*) from xml_test
2 /
COUNT(*)
3
1 row selected.
SQL> select * from xml_test ;
EMPNO EMPNAME
101 SMITH
102 KING
101 SMITH
3 rows selected.
SQL>Message was edited by:
Kamal Kishore -
Formatted Search won't load from XML
Hello all, I have created an .xml using FormattedSearches.GetAsXML() method.
And when I try to open it using Company.GetbusinessObjectFromXML(), I get the following Exception:
<ErrorList><Error>System Id = 101966008, Line Number = 1, Column Number = 79, Description = The namespace of element 'schema' must be from the schema namespace.</Error><Error>System Id = 101966008, Line Number = 1, Column Number = 99, Description = The namespace of element 'element' must be from the schema namespace.</Error>(...and so on)
Here's the XML code:
<?xml version="1.0" encoding="UTF-16"?><BOM><BO><AdmInfo><Object>219</Object></AdmInfo><CSHS><row><FormID>133</FormID><ItemID>U_GTConsCd</ItemID><ColID>-1</ColID><ActionT>2</ActionT><QueryId>104</QueryId><IndexID>1</IndexID><Refresh>N</Refresh><FieldID /><FrceRfrsh>N</FrceRfrsh><ByField>Y</ByField></row></CSHS><CUVV /></BO></BOM>
Would you please help me with this problem?
Anton
EDIT: It looks as if the parser found the namespace of element "schema" (the first error) invalid. I looked at the schema for the FormattedSearches object (as returned by GetBusinessObjectXMLSchema()) and there was no namespace specified. But I am afraid I have no access to the schema and cannot fix it, right?I was trying to solve this myself just last night and after
seeing your post today I figured maybe I can help you out (as long
as I'm addressing the problem you have).
apparently the addEventListener needs a kick start from
something else. If you look up the Loader class in the Flash help
files it provides an example near the bottom that holds the key.
I'm providing a shorthanded solution that I derived from it.
Rather than:
imageLoader.addEventListener(Event.COMPLETE,
completeHandler);
There is another piece in the in the middle of the process:
"contentLoaderInfo"
imageLoader.contentLoaderInfo.addEventListener(Event.COMPLETE,
completeHandler);
Hope that helps -
Thumbnails won't load from xml to list for video
I am working on a project that will show the thumbnails on
the right, and when one is selected, it will load the video to the
left.
My work in progress can be viewed at www.fimm.tv, see code
attached.
The xml file, flv file .live in the same folder, and the xml
file is this
<?xml version="1.0" encoding="ISO-8859-1"?>
<videos>
<video url="test.flv" desc="Linda" /></video>
<video url="test.flv" desc="1" />
<video url="test.flv" desc="2" />
<video url="test.flv" desc="3" />
</videos>
I am following an awesome tutorial found on the web and this
has helped me a great deal so far. Can anyone spot why my text is
not displaying.
All help appreciatedI was trying to solve this myself just last night and after
seeing your post today I figured maybe I can help you out (as long
as I'm addressing the problem you have).
apparently the addEventListener needs a kick start from
something else. If you look up the Loader class in the Flash help
files it provides an example near the bottom that holds the key.
I'm providing a shorthanded solution that I derived from it.
Rather than:
imageLoader.addEventListener(Event.COMPLETE,
completeHandler);
There is another piece in the in the middle of the process:
"contentLoaderInfo"
imageLoader.contentLoaderInfo.addEventListener(Event.COMPLETE,
completeHandler);
Hope that helps
Maybe you are looking for
-
Laptop display Broken replacemen​t
Hello All, I am using HPPavillion G6-1b79us Laptop.My screen is damaged at the corner.I brought it in US.Currently i am in germany for my studies.please let me know prices for the same and where to get in Germany
-
How to set a static IP address for deskjet 6940dt
I have two HP laptops, both have WIN7, that keep losing the IP address for my 6940dt printer, each time power goes out to router. I have an desktop PC connected to a NetGear router and RCA modem connected to Comcast cable internet. I also have anot
-
I just bought a Honda Crosstour, which is one of the new cars that have a USB jack that can read and play music off of my iphone. I'm looking for a good holder/cradle solution so I can just slide my iphone in and out of it when I get in or out of the
-
Rapid Mart for SAP - Sales / List of source tables
Hi, a customer would like to have a list of the source tables that are read by the Rapid Mart for SAP - sales (SA). Has anybody such a list. I can only find information about the target tables. Regards, Martin
-
In Safari (in Gmail), plain text pasted in doesn't adopt the existing font
When pasting plain text into Safari (Gmail), it shows up as Ariel instead of the current font in use in the e-mail (happens to be Trebuchet). It doesn't happen in Chrome.