need help to load the image from a xml file

(Based on the example of Chapter 10, ActionScript 3.0 for ADOBE FLASH CS4, IPC)
By using the 'setSong' function, I shoot with success of the < artist > child of my xml data, no problem. But I also have to display the jpg file in the < image > node and I meet a lot of difficulties. I tried adding more variables to the setSong function, but am frustrated. Someone could shine a little light and point this beginner in the right direction?

function setSongs (): void {}
for (var i = 0; i < 4; i ++) {}
var artistText:String = songList_XML.song [i + songCount] .artist;
Customizer var = this ["song" + (i + 1)] .artist;
clipArtist.text = artistText;
}
}

myXML:

<? XML version = "1.0" encoding = "utf-8"? >
< songlist >
song <>
< image id = "1" > images/dummyFace1.jpg < / image >
< artist > first guy < / artist >
< album > Aliquam neque dui, sold at, egestas nec, egestas dignissim, tortor. < / album >
< / song >

song <>
< image id = "2" > images/dummyFace2.jpg < / image >
< artist > second person < / artist >
ante < album > Nam. Metus had integer and lacus accumsan commodo. < / album >
< / song >

song <>
< image id = "3" > images/dummyFace3.jpg < / image >
< artist > third Fellow < / artist >
< album > Cras non sem vitae massa pharetra sold. Integer outbound < / album >
< / song >

song <>
< image id = "4" > images/dummyFace4.jpg < / image >
Fourth individual < artist > < / artist >
< album > surpassing ullamcorper quam and ipsum. Aenean sed lacus sit amet leo so restore. < / album >
< / song >
< / songlist >

:

function setSongs (): void {}
for (var i = 0; i)< 4;="" i++)="">
var artistText:String = songList_XML.song [i + songCount] .artist;
Customizer var = this ["song" + (i + 1)] .artist;
clipArtist.text = artistText;

var ldr:Loader = new Loader();

var urlR:URLRequest = new URLRequest (image songList_XML.song [i + songCount]);

LDR. Load (urlR);

LDR.x = Whatever (i);

LDR.y = whateverelse (i);

addChild (ldr);

}
}

myXML:




images/dummyFace1.jpg
First guy
Aliquam neque dui, sold at, egestas nec, egestas dignissim, tortor.


images/dummyFace2.jpg
Second person
Nam ante. Metus had integer and lacus accumsan commodo.


images/dummyFace3.jpg
Third Member
CRAs non sem vitae massa pharetra sold. Integer is.


images/dummyFace4.jpg
Fourth person
Surpassing ullamcorper quam and ipsum. Aenean sed lacus sit amet leo so restore.

Tags: Adobe Animate

Similar Questions

  • loading an image from a xml file

    I'm trying to load an image title "(1) .jpg ' file xml in a flash applet. I'm not an expert, but I think the code should work to store the name of the image, as I wrote it correctly in my xml document. Here is the code I use.

    In this code, the definition of the line "image = _root.floorplan;" is where he SHOULD get the information in the details.xml file. If I change the code to read "image =" (1) .jpg; "it loads very well."

    I am not to store the value of the node xml properly, or does not claim it correctly?

    I thought about it - I need to place the "image = _root.floorplan; ' in the case statement of the loadXML function.

    I have it!

  • Help (recovery of the image of an xml file name, then appear inside the movieclip

    Hello guys, I just want to ask sometihng about the display of the image inside the movieclip by pulling on the image name in the xml file.

    It comes to my xml file.

    <? PHP

    Header ("Content-type: text/xml");

    $host = "localhost";

    $user = 'root ';

    $pass = "";

    $database = "test";

    $gelo = "image1.jpg";

    / * xml output * /.

    $xml_output = ' <? XML version=\"1.0\? > ';

    $xml_output. = "< GALLERY > ';

    $xml_output. = '< IMAGE > '. $gelo. "< / IMAGE >";

    $xml_output. = "< / GALLERY > ';

    echo $xml_output;

    ? >

    This is the code inside my actionscript

    stage.scaleMode = StageScaleMode.NO_SCALE;

    var loader: URLLoader = new URLLoader();

    loader.dataFormat = URLLoaderDataFormat.TEXT

    loader.addEventListener (Event.COMPLETE, loadCompleteHandler);

    loader.load (new URLRequest ("http://localhost/loadimagefromxmlAS3/data.php"));

    function loadCompleteHandler(event:Event):void {}

    var xml = new XML (event.target.data);

    txt.text = xml.toXMLString ();

    trace (xml. IMAGE [0]);

    var list: XMLList = xml.data.title

    var loader: Loader = new Loader()

    This ["holder_mc" + 0]. AddChild (Loader)

    Loader.Load (new URLRequest (list [0]. IMAGE))

    }

    When I run it in flash, I got the error


    Image1.jpg

    TypeError: Error #1010: a term is undefined and has no properties.

    at xml_fla::MainTimeline/loadCompleteHandler()

    at flash.events::EventDispatcher/dispatchEventFunction()

    at flash.events::EventDispatcher/dispatchEvent()

    at flash.net::URLLoader/onComplete()

    I hope you will consider my ignorance since im a beginner with actionscript. Thank you

    (1) you should have "Permit debugging" enabled in the settings of publication so you could tell exactly the line of witch will not

    (2) this line makes no sense for me: var list: XMLList = xml.data.title

    Change it to var list: XMLList = xml. IMAGE;

    (3) loader.load (new URLRequest (list [0] m:System.NET.SocketAddress.ToString (()));

    (4) also this line is suspicious: this ["holder_mc" + 0] .addChild (loader)

    Why not just say: holder_mc0.addChild (loader)?

  • Need help to load the data from the Excel data to oracle tables

    I need to load an Excel worksheet to the Oracle table.

    The worksheet contains 20 columns, the first 8 columns contains basic information, but the rest 12 columns contains info like
    1stQtr_08, 2ndQtr_08, 3rdQtr_08, 4thQtr_08
    1stQtr_09, 2ndQtr_09, 3rdQtr_09, 4thQtr_09
    1stQtr_10, 2ndQtr_10, 3rdQtr_10, 4thQtr_10

    So what I have to do is:

    break only one record (with 20 fields) in Excel to 3 files for each fiscal year in the Oracle table for each record in the database table will look like

    8 base field + fiscal_year + 1stQtr_08, 2ndQtr_08, 3rdQtr_08, 4thQtr_08
    8 base field + fiscal_year + 1stQtr_09, 2ndQtr_09, 3rdQtr_09, 4thQtr_09
    8 base field + fiscal_year + 1stQtr_10, 2ndQtr_10, 3rdQtr_10, 4thQtr_10

    There are about 10000 rows in the data file, so how can I use sqlldr to perform this task? beside sqlldr, other good suggestions?

    THX

    External tables is just an API Oracle sqlloader. If you are about to load this data over and over again, the external tables would be a good idea, but if it's a one time thing, sqlldir is more simple, unless you want to just learn to use external Tables.

    I used to run a data warehouse, so I did it, the less similar to what you do in the past.

  • Load the data from a text file into a table using pl/sql

    Hi Experts,

    I want to load the data from a text file (sample1.txt) to a table using pl/sql

    I used the pl/sql code below

    ***********************************
    declare
    f utl_file.file_type;
    s varchar2 (200);
    c number: = 0;
    Start
    f: = utl_file.fopen('TRY','sample1.txt','R');
    loop
    UTL_FILE.get_line (f, s);
    insert into sampletable (a, b, c) values (s, s, s);
    c: = c + 1;
    end loop;
    exception
    When NO_DATA_FOUND then
    UTL_FILE.fclose (f);
    dbms_output.put_line('No. deles de lignes insérées: ' || c);
    end;

    ***************************************

    and my sample1.txt file looks like

    ***************************************
    1
    2
    3
    ***************************************

    Gets the data inserted, with way below

    Select * from sampletable;

    A, B AND C

    1-1-1
    2-2-2
    3 3 3

    I want that data to get inserted as

    A, B AND C

    1 2 3

    The text file I have is to have three lines, and the first value of each line should go to each column

    Help, please...

    Thank you
    declare
    f utl_file.file_type;
    s1 varchar2(200);
    s2 varchar2(200);
    s3 varchar2(200);
    c number := 0;
    begin
    f := utl_file.fopen('TRY','sample1.txt','R');
    utl_file.get_line(f,s1);
    utl_file.get_line(f,s2);
    utl_file.get_line(f,s3);
    insert into sampletable (a,b,c) values (s1,s2,s3);
    c := c + 1;
    utl_file.fclose(f);
    exception
    when NO_DATA_FOUND then
    if utl_file.is_open(f) then utl_file.fclose(f); ens if;
    dbms_output.put_line('No. of rows inserted : ' || c);
    end;
    

    SY.

  • Loading the Images from the Internet into my BB APP...

    Hello, I need help on loading images from the internet into my BB application (not in the web browser)

    then a few buttons next and prev images I have saved in a table addresses do not know how to load and display them in my application any idea any example of code...?

    Thnx in advance

    This should give you some hints:

    http://www.coderholic.com/BlackBerry-webbitmapfield/

    most important: do not the networks on the thread of the event.

  • Loader will load the images from another server, but then we get error on Bitmap operation

    I develop an application that currently uses Loader to get the images to another server.  This should not work now because we are still waiting for the owner of that server to put a crossdomain in place file.  However, it works - sort of .

    Charger can load the images very well, without error.  But then the application has a feature that we are a great duplicate of the image to display in a sidebar, we do this in this way:

    var myBitmap:Bitmap = Bitmap (loader.content);

    and when will we get a Flash player 2122 security error, violation of sandbox.

    So although I hope that all this will fix itself when the crossdomain.xml file is set up, I am confused as to why we get only the sandbox error when we do a bitmap image, and not when we try to initially retrieve the image.

    (By the way: is there a better way to make a "copy" of an image loaded by a loader and change its width and height to display simultaneously in another part of the scene?)  "I have need to change its real dimensions - I just need to change its display width and height).

    Thank you!

    The sandbox allows you to view, not not editing from another server without a cross-domain.

    Therefore, when you try to load up, it loads, it 'read only' and gives you an error when you try to "change" by a new Bitmap out of it.

    This should resolve itself once crossdomain is in place.

    || EDIT |

    I just realized that I have to clarify my statement a bit more.

    When you load images from another server without a crossdomain, it only allows the load for display.  When you try to load data, it will fail.  It is because that data XML, or another type of data is editable by default, and the images are only visible by default.  As a result, the image fails when you try to convert it to an editable form.

  • Need help with editing the channels from document information

    I am trying to create a string based on information from the active document, which is then saved as text delimited by tabs for use in spreadsheets.

    I'm new to the script but I was able to get the info from Photoshop, but now I need to deal with some of them.

    Here's the info I want in the order I want: name of file, the file size (actual work or size), width in pixels, height in pixels, inches of width, height inches, image resolution, color mode.

    example: 5.3 MB 3810 3810 5 5 762 RGB CoolPicture_LYRD.psd

    Here is the info I got in return:

    CoolPicture_LYRD.psd3810 px3810 px5 px5 px762 DPIDocumentMode.RGB

    I need to make these changes:

    1. Add the size of the document
    2. Cut the shape px string OR convert the "px" in the chain of inches to the 'in '.
    3. short 6-digit numbers (for a number like 5.33333333333333 px)
    4. trim theDocumentMode. info from the color mode

    I tried using substrings which gets an error about the functions

    I tried ToString() and beach setting, but without success.

    any help would be appreciated. Thanks for the research.

    Here is my script so far

    //get the info from document that I need for my excel sheet
    var imageHeightPixels = activeDocument.height
    var imageWidthPixels = activeDocument.width
    var fileResolution = activeDocument.resolution
    var imageMode = activeDocument.mode
    // get size in inches from pixel based measurement
    var imageHeightInches = imageHeightPixels / fileResolution
    var imageWidthInches = imageWidthPixels  / fileResolution
    
    
    var imageName = activeDocument.name.toString()
    var imageDimensions = new File ("~/desktop/File Info Report.txt")  
    
    
    app.preferences.rulerUnits = Units.PIXELS
    
    imageDimensions.open('a');  
    imageDimensions.write(imageName + "\t" + imageHeightPixels + "\t" + imageWidthPixels + "\t" + imageWidthInches + "\t" + imageHeightInches + "\t" + fileResolution + " DPI" + "\t" + imageMode + "\n");  
    activeDocument.close(SaveOptions.DONOTSAVECHANGES)  
      
    imageDimensions.close(); 
    

    There you go Buddy:

    var doc = app.activeDocument;
    var currentUnits = app.preferences.rulerUnits;
    
    app.preferences.rulerUnits = Units.PIXELS;
    
    var fileName = doc.name;
    var fileSize = (File(doc.fullName).length / (1024 * 1024)).toFixed(2);
    var fileWidthPx   = doc.width.value;
    var fileHeightPx = doc.height.value;
    var fileResolution = doc.resolution;
    var fileWidthInch = (fileWidthPx  / fileResolution).toFixed(6);
    var fileHeigthInch = (fileHeightPx / fileResolution).toFixed(6);
    var colorMode = doc.mode.toString().split(".")[1];
    
    app.preferences.rulerUnits = currentUnits;
    
    var outputString = fileName + "\t" +
      fileSize + " mb\t" +
      fileWidthPx + "\t" +
      fileHeightPx + "\t" +
      fileWidthInch + "\t" +
      fileHeigthInch + "\t" +
      fileResolution + " DPI\t" +
      colorMode + "\n";  
    
    var logFile = new File ("~/desktop/File Info Report.txt");
      logFile.open('a');
      logFile.write(outputString);
      logFile.close();
    
    doc.close(SaveOptions.DONOTSAVECHANGES);
    
  • Load the image from jar

    Hello

    My images are in a file named images.jar.

    It s works well.

    But, if I need to load an image using READ_IMAGE_FILE,

    He does not judge.

    How can I load an image inside this pot in a part of the image?

    Thank you.

    I should had pressed before F1...

    READ_IMAGE_FILE ('image', 'URL', 'block.image_item') worked. Thank you.

  • Need help to load the UI components dynamically on JSPX

    Hi all

    I have a requirment/usecase mentioned as below

    (1) we have 10 different set of applications that have their own elements to the screen.

    (2) applications that need to be done one JSPX page.

    (3) we have the data contained in the comics with app_id for each application, screen_elements, screen_type.

    (3) load so now, function app_id (application id), while it is to load the application name and other details of this particular application at run time.

    (4) the elements of the screen, to dynamically load the items on the screen and screen_type, instead of hard coding all the values in the page, and instead of setting them conditional based on the name of the application.

    Can you please help me how can I achieve this usecase

    Please let me know if you need additional information. It will be very useful tome you can suggest alternatives more about it.



    Kind regards
    Ashok E

    Some examples of code that will create a box object text dynamically on the command button click, I think that this will help you go further.

    DynamicPage.jspx*



    xmlns:f = "http://java.sun.com/jsf/core".
    xmlns:h = "http://java.sun.com/jsf/html".
    xmlns:af = "http://xmlns.oracle.com/adf/faces/rich" >






    Binding = "#{DynaPageBean.panelFormLayout1}" > "






    DynaPageBean.java_
    test of the package;
    Import oracle.adf.view.rich.component.rich.input.RichInputText;
    Import oracle.adf.view.rich.component.rich.layout.RichPanelFormLayout;
    public class DynaPageBean {}
    Private RichPanelFormLayout panelFormLayout1;
    public DynaPageBean() {}
    }
    public String newForm() {}
    for (int i = 0; i)<10 ;i++)="">
    Txt RichInputText = new RichInputText();
    txt.setLabel ("Input Text" + (i + 1));
    txt.setColumns (40);
    txt.setRequired (true);
    panelFormLayout1.getChildren () .add (txt);
    }
    Returns a null value.
    }
    public void setPanelFormLayout1 (RichPanelFormLayout panelFormLayout1) {}
    this.panelFormLayout1 = panelFormLayout1;
    }
    public RichPanelFormLayout getPanelFormLayout1() {}
    Return panelFormLayout1;
    }
    }

  • Need help to download the attachment from mail Client

    Hello

    I am trying to download the attachment from the mail using AttachmentDownloadManager API. For that I am currently using the code below:

    public class MailMinder extends UiApplication {
    
    public static void main(String args[]) {
        MailMinder theApp = null;
            try {
                theApp = new MailMinder();
            } catch (Exception e) {
                Dialog.alert("Exception e = " + e.toString());
            } finally {
                theApp.enterEventDispatcher();
            }
        }
    
        private MailMinder() {
    
            AttachmentDownloadManager adm = new AttachmentDownloadManager();
            adm.download(bodypart, null, new DownloadProgressListener() {          // Not able to get the Bodypart object here
    
                                public void downloadCancelled(Object element) {
    
                                }
    
                                public void downloadCompleted(Object element) {
                                    //Here i am doing the parsing of the attachment
                                }
    
                                public void updateProgress(Object element, int current, int total) {
    
                                }
    
        }
    }
    

    As you can see, this API download() method is required the Bodypart object I get using the subject line of the Mail or of the Open Message.
    But I'm not able to get the object of the open message I tried using MessageListener and FolderListener API. And when I open a Message in the Messages Application, I must add a Menuitem.

    Can someone help me to get the Open Message of the Message object and add the Menuitem?

    Note: I don't want to use the Attachment Manager API as it's require the xirimdevice prefix in the name of the attachment.

    Hi Mark. I am able to fix this with a different approach. Please check in my blog: BlogforMobile

    Thanks a lot again for your support.

  • PS Newb needs help with resizing the image and print several sheet

    Hi, I am using PS CS3 to resize an image, I have so I can print to use as a map for a miniatures game.  I have no problem of scaling of the image to the appropriate size, but I can't understand how to print multiple image 8.5 x 11 sheets.  I thought I saw an option for such a procedure before, but maybe it was in another editing program.  If anyone has any ideas on how I could do this I would really appreciate hearing about them.  Thank you!

    Illustrator and InDesign are tiled printing, like CorelDraw. Photoshop, this title is not, but may be a few script for this. In your case, the simplest solution would be to save the file in PDF format and have Acrobat print a tiled (Page scaling of parameter in Acro print dialog box). You just need to make sure that your page corresponds to several pages. Unliek AI and ID, Acro chop only stuff based on standard paper sizes...

    Mylenium

  • Need help with loading the XML file

    Hello

    I spent reviewing the web/forums for an example on how to do this for a few days now.  I managed to get this working in Flash Pro easily enough, but I think I'm missing something when I want to do the same thing in Flex.

    Basically, I want to load an XML file and then set the values of the text of labels 5, equal to the data in the XML file.

    So I have a button created in MXML and have put the following click event:

    Click = "dsSetup (Event)" "

    I also stated the following:

    public var myRequest:URLRequest = new URLRequest ("assets/myFile.xml");   folder located under the CBC in project

    public var myLoader:URLLoader = new URLLoader();

    public var myXML:XML;

    My function that loads is as follows:

    public function dsSetup(event:MouseEvent):void

    {

         trace ("dsSetup");

    myXML = new XML (myLoader.data);

    H3. Text = myXML.source.itemA;

    H4.text = myXML.source.itemB;

    H5.text = myXML.source.itemC;

    H7.text = myXML.source.itemD;

    H8.text = myXML.source.itemE;

    currentState = "MainMenu";

    }

    myLoader.addEventListener (Event.COMPLETE, dsSetup);   I think that this line is no longer as I put it in the MXML

    myLoader.load (myRequest);

    It's the way I did in Flash and it worked fine, but I must be missing something when it comes to Flex.

    Can you explain or point me to a good tutorial that shows how to load XML in Flex code?

    Those I've found seems to have about 50 lines of code just to load a file and add through a complex for a beginner.

    Thank you very much

    I suggest you save the data loaded in a variable that can be linked, then bind the properties of the text - who:

    [Bindable]

    var myXML:XML;

    public void dsSetup(event:MouseEvent):void

    {

    myXML = new XML (myLoader.data);

    currentState = "MainMenu";

    }

    ...

  • Need help to retrieve the value of an xml tag.

    Hi all

    Hello all, I have problem to extract a value from an xml tag. I created an xml schema based on the schema, I created an xmltype table and inserted a value to the table. When I try to extract a value of a particular tag I can't do... Kindly help me to solve this problem. Here by I write all working, I did...

    I use the following client:
    -----------------------------------

    SQL * more: Release 10.2.0.1.0 - Production on Mon 31 Jan 11:44: 59 2011

    Copyright (c) 1982, 2005, Oracle. All rights reserved.


    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With partitioning, OLAP and Data Mining options


    ////////////////////////////////// XML Schema ///////////////////////

    Start
    () dbms_xmlschema.registerSchema
    "http://www.oradev.com/chipsxml.xsd,"
    ' < scheme xmlns = "http://www.w3.org/2001/XMLSchema".
    targetNamespace = "http://www.oradev.com/chipsxml.xsd."
    xmlns:SAMP = "http://www.oradev.com/chipsxml.xsd".
    version = "1.0" >

    < feature name = 'Field1' >
    < complexType >
    <>sequence
    < element name = "UTI" >
    < complexType >
    <>sequence
    < element name = "U01" type = "string" / >
    < element name = "U02" type = "string" / >
    < element name = "U03" type = "string" / >
    < element name = "U03a" type = "string" / >
    < element name = "U03b" type = "string" / >
    < element name = "U03c" type = "string" / >
    < element name = "U04" type = "string" / >
    < element name = "U05" type = "string" / >
    < / sequence >
    < / complexType >
    < / item >
    < / sequence >
    < / complexType >
    < / item >
    < / schema > ',
    (TRUE, TRUE, FALSE, FALSE);
    end;


    A table that has several column.

    CREATE TABLE chipsxmltable1)
    Identification number, XMLDATA XmlType)
    XMLTYPE XMLDATA STORE AS OBJECT / RELATIONAL
    XMLSCHEMA 'http://www.oradev.com/chipsxml.xsd '.
    ELEMENT 'field1 ';


    Insert the query in chipsxmltable.

    INSERT INTO (VALUES) chipsxmltable
    XmlType.CreateXml ("<?") XML version = "1.0"? >
    < xmlns:samp samp: field1 = "http://www.oradev.com/chipsxml.xsd" >
    < USE >
    No. < U01 > < / U01 >
    Y < U02 > < / U02 >
    Y < U03 > < / U03 >
    < U03a > Y < / U03a >
    < U03b > Y < / U03b >
    < U03c > Y < / U03c >
    Y < U04 > < / U04 >
    Y < U05 > < / U05 >
    < / UTI >
    ((< / samp: field1 > '));


    To display the data in a field with the structure:
    --------------------------------------------

    1. motion:
    ----------
    Select * from chipsxmltable1;

    Output:
    -------


    ID XMLDATA
    ---------- -----------------------------------------------------------------
    1 <? XML version = "1.0"? >
    < xmlns:samp samp: field1 = "http://www.oradev.com/chipsxml.xsd" >
    < USE >
    No. < U01 > < / U01 >
    No. < U02 > < / U02 >
    Y < U03 > < / U03 >
    < U03a > Y < / U03a >
    < U03b > Y < / U03b >
    < U03c > Y < / U03c >
    Y < U04 > < / U04 >
    Y < U05 > < / U05 >
    < / UTI >
    < / samp: field1 >


    2 query: (both the query shows the same result)
    ----------

    SELECT X.xmldata.getClobVal ('XMLDATA' FROM chipsxmltable1 X);

    Select extract (XMLDATA, "/ Field1'") .getstringval ("XMLDATA" chipsxmltable1 x);


    Output:
    --------

    XMLDATA
    -----------------------------------------------------------------
    <? XML version = "1.0"? >
    < xmlns:samp samp: field1 = "http://www.oradev.com/chipsxml.xsd" >
    < USE >
    No. < U01 > < / U01 >
    No. < U02 > < / U02 >
    Y < U03 > < / U03 >
    < U03a > Y < / U03a >
    < U03b > Y < / U03b >
    < U03c > Y < / U03c >
    Y < U04 > < / U04 >
    Y < U05 > < / U05 >
    < / UTI >
    < / samp: field1 >


    To display the data as a single string without structure using "getstringval()":
    ---------------------------------------------------------------------------------

    3 query
    ---------

    Select extract (XMLDATA, "//text()').getstringval()"CHIPS - XML"of chipsxmltable1 x;)

    Output:
    -------

    CHIPS - XML
    ---------------------
    NoNoYYYYYY


    To display the data as a single string without structure using "getclobval()":
    ---------------------------------------------------------------------------------

    4 query
    -------

    Select extract (XMLDATA, "//text()').getClobVal()"CHIPS - XML"of chipsxmltable1 x;)

    Output:
    --------

    CHIPS - XML
    -----------------
    NoNoYYYYYY


    To display the data in a tag with or without structure (which does work) using the function "EXTRACT":
    -------------------------------------------------------------------------------------------------------------

    6.query:
    ---------

    Select extract (XMLDATA, "/Field1/text()').getstringval()"XMLDATA' chipsxmltable1 x;

    Select extract (XMLDATA, "/Field1/UTI').getstringval()"XMLDATA' chipsxmltable1 x;

    Select extract (XMLDATA, "/Field1/UTI/U01').getstringval()"XMLDATA' chipsxmltable1 x;

    Select extract (XMLDATA, "/Field1/UTI/U01/text()').getstringval()"XMLDATA' chipsxmltable1 x;


    Output:
    --------

    CHIPS - XML
    ---------------------------------------



    The queries above are not fetch the value.



    To display the data in a tag with or without structure (which does work) using the function "EXTRACTVALUE":
    ------------------------------------------------------------------------------------------------------------------

    7 query:
    ----------

    Select extractValue (XMLDATA, ' / Field1/UTI ') 'XMLDATA' of chipsxmltable1 x;

    Select extractValue (XMLDATA, ' / U01/UTI/Field1 ') 'XMLDATA' of chipsxmltable1 x;


    Output:
    --------

    X
    -



    The queries above are not fetch the value.


    My question is:
    --------------------
    How to extract the values of xml tag when the value are inserted through xml schema?


    My apologies if the description is not clear. Kindly let me know if further details are required. Thanks a lot for your help.

    Very cordially,
    Godwin Castro C.V.

    Hello

    You must declare the namespace of each element used in the XPath expression, like this:

    SQL> select extractvalue( XMLDATA
      2                     , '/samp:Field1/UTI/U01'
      3                     , 'xmlns:samp="http://www.oradev.com/chipsxml.xsd"' ) "XMLDATA"
      4  from chipsxmltable1 x
      5  ;
    
    XMLDATA
    --------------------------------------------------------------------------------
    No
     
    
    SQL> select extract( XMLDATA
      2                , '/samp:Field1/UTI'
      3                , 'xmlns:samp="http://www.oradev.com/chipsxml.xsd"'
      4                ).getstringval() "XMLDATA"
      5  from chipsxmltable1 x
      6  ;
    
    XMLDATA
    --------------------------------------------------------------------------------
    
      No
      Y
      Y
      Y
      Y
      Y
      Y
      Y
    
     
    

    Please see EXTRACT and EXTRACTVALUE documentation:
    http://download.Oracle.com/docs/CD/B19306_01/server.102/b14200/functions051.htm#i1006712
    http://download.Oracle.com/docs/CD/B19306_01/server.102/b14200/functions052.htm#SQLRF06173

    BTW, 'XMLDATA' is a pseudo-column used by Oracle. I don't know if it will never cause any conflict, but perhaps you need to rename your column.
    http://download.Oracle.com/docs/CD/B19306_01/server.102/b14200/pseudocolumns010.htm#SQLRF00256

    Kind regards.

  • iOS: problem with loading the content of an xml file placed on a server

    So, I have an app that loads a few small things (pictures and text) of a xml/php file on the server. Everything works fine on both android and in the flash debugger, but when I install the ipa file on my iPhone my IOErrorEvent displays an error message. When the xml file and example photos come with the app (they are not on the server, but in the ipa file) everything works perfectly. There is something about iOS that prevents me to load all the data from the server, it seems. There must be a way around it.

    I would be grateful for advice.

    Kind regards

    Array must be table.

Maybe you are looking for

  • Tecra M5 - can't find the fingerprint sensor

    I have Tecra M5 with Windows 7 and I'm putting software fingerprints (protector suite QL) but old version is not compatible and new (taken from the Toshibas site) do not work. It just says: 'cannot find code 0xe7210005 of the fingerprint sensor devic

  • Update the Bios with Windows 7

    I have a compaq presario sr2173wm.  He came originally with windows vista.  I've upgraded to windows 7.  Now, I would like to update my bios.  My problem is that the update of the HP bios has my computer does not work with windows 7.  Anyone have any

  • Between the 2 separate companies sharing router

    I'm helping someone to share a router between the 2 separate companies.  They have a linksys E2500 and 2 companies (their own and the neighbouring company) the two connection, either wired or wireless, to the same router. They were not aware that thi

  • No Option of account Type change under user ID-want to change of Admin for the Standard user

    Hi, we have a Vista Home Premium system.  One of the children has received this PC and they are as an administrator with no other users.  Later, I added myself as admin and wanted to change the children as a standard user account type, but there is n

  • Cannot get on internet with Google Chrome - standard 1 user only?

    I was following an article on how to check the internet speed & bandwidth PCmag, I've made a few changes to share/network. Boom, next time, I tried to get on the internet with my browser Google Chrome - not connecting - BUT I can connect using IE and