Create a list from an XML file    no display

I have a multiline Dynamic text box called projList.
I am trying to populate it from an xml file and create a
clickable list.
The trace works but cannot get to display the list in the
text box.
As far as the clickable goes, haven't gotten that far yet.
Help very much appreciated.
The xml is structured like this:
<?xml version="1.0" ?>
- <images>
- <pic>
<Image>/Butler/Images/sfah2_small.jpg</Image>
<Category>Institutional</Category>
<Proj_title>FRESH AIR HOME</Proj_title>
Please see code below:
import mx.xpath.XPathAPI;
var allproj_xml:XML = new XML();
allproj_xml.ignoreWhite = true;
allproj_xml.onLoad = function(success:Boolean) {
trace("onload...");
if (success) {
trace("success...");
var thePath_str:String = "/images/pic/Proj_title";
var title_array:Array =
XPathAPI.selectNodeList(this.firstChild,
thePath_str);
for (var i:Number = 0; i < title_array.length; i++) {
trace(title_array
.firstChild.nodeValue);
projList.addItem(title_array.attributes.Proj_title);
} else {
trace("error loading XML");
allproj_xml.load("allimages.xml");
stop();

This did it:
projList.addItem(title_array
.firstChild.nodeValue);
> Thanks for your response.
> How can I add what I am tracing, to the component
properly?
>
> "DMennenoh **AdobeCommunityExpert**"
<[email protected]> wrote in
> message news:eqaejh$bi8$[email protected]..
>>>>trace(title_array.firstChild.nodeValue);
>> projList.addItem(title_array
.attributes.Proj_title);
>>
>>
>> Your code seems OK. What you are tracing here
however isn't what you're
>> adding to the component. Are you sure what you're
adding traces?
>>
>> --
>> Dave -
>> Head Developer
>> www.blurredistinction.com
>> Adobe Community Expert
>>
http://www.adobe.com/communities/experts/
>>
>

Similar Messages

  • Populating dropdown list from an XML file

    Hi!
    I want to prepopulate a dropdown list in a form from an XML file.
    Typically something like:
      A
      B
      C
    Is this the correct way to specify the list's values in XML?
    How do I specify the binding property of my dropdown list, to put the values A, B and C into the dropdown list?
    I am using Designer 7.0!
    Thanks!

    [email protected] wrote:
    > Hi!
    >
    > I want to prepopulate a dropdown list in a form from an XML file.
    > Typically something like:
    >
    >
    >   A
    >   B
    >   C
    >
    >
    >
    > Is this the correct way to specify the list's values in XML?
    > How do I specify the binding property of my dropdown list, to put the values A, B and C into the dropdown list?
    >
    > I am using Designer 7.0!
    >
    > Thanks!
    Liana,
       You can't do this with Designer 7.0.  If you upgrade to Designer 7.1,
    you can bind dropdown list values to your xml data using the dynamic
    property binding capabilities.
    Hope this helps!
       Justin

  • Contact Form: How do i create a link from an XML file to another domain to read a PHP File

    So i purchased a template from Template Monster and im having a little trouble with the contact form. The server that im uploading it to is a privite server that the company owns. It supports ASP and not PHP. I cant seem to get the ASP form to work so all i want to do it create a link to another one of there servers that supports PHP and have the contact form link to there and read the PHP file (that i will upload to that server) and send the email from there.
    This is the XML that i have to fill in in order to make it work
    Everything in Red is what i needed to fill out in order for the form to work.
    <?xml version="1.0" encoding="utf-8"?>
    <!--
            Please read this information to learn how to set up the contact form integrated
            into the template.
            This readme file explains in details the meaning of the settings that can be
            done in the fcContactFormConfiguration.xml configuration file.
            It is recommended for you to use an XML editor to make changes to this file
             because it’s less possible to make an error in the markup which can cause to
            a not working contact form.
      -->
    <contactFormConfiguration>
        <!--
                An e-mail address which will be used to receive messages from your contact form.
                You can specify several e-mail addresses separating them with a comma.
                For example: [email protected], [email protected], [email protected]
          -->
        <emailTo>[email protected]</emailTo>
        <!--
                A server script type which will process sending e-mails. It depends on your
                hosting and in the current version of the contact form it is allowed to use
                two types:  php (Apache, PHP Hosting); asp (IIS web server, ASP).
          -->
        <serverProcessorType>php</serverProcessorType>
        <!--
                A name of the script file which process sending e-mails on your server (without
                extension). The name contact is used by default.
          -->
        <serverProcessorFileName>contact</serverProcessorFileName>
        <!--
                Set whether to validate only required fields (true/false).  The default value is
                true which means the not required fields of your contact form will not be validated.
                For example if the e-mail field of your form is set as not required (imagine it)
                the form will be processed even if the user types in an incorrect e-mail address.
          -->
        <validateRequiredOnly>false</validateRequiredOnly>
        <!--
                Set whether to submit the form when the Enter key is pressed even if the focus is
                not on the Submit button (true/false).
          -->
        <submitFormOnEnter>false</submitFormOnEnter>
        <!--
                Text showing to the user when the form is submitted without any errors.
          -->
        <messageSentText>Thank you for your message.</messageSentText>
        <!--
                Text showing in case the form is not submitted because of a server error.
          -->
        <messageSentFailedText>Sorry, your message couldn't be sent</messageSentFailedText>
        <!--
                Text your visitor will see while waiting till the processing is over.
          -->
        <formProcessingText>processing...</formProcessingText>
        <!--
                Your SMTP server (for ASP only).
          -->
        <smtpServer>localhost</smtpServer>
        <!--
                Your SMTP port (for ASP only).
          -->
        <smtpPort>25</smtpPort>
        <!--
                Set whether to send the message as a plain text (true) or as HTML (false).
          -->
        <plainText>false</plainText>
        <!--
                ID of the input field (in the structure XML file) to use for the “from: ”
                or email to use instead (for example: [email protected]).
          -->
        <emailFromSource>2</emailFromSource>
        <!--
                Subject of the e-mails that will be sent through this contact form or ID of
                the input field (in the structure XML file) to use for the “subject: ” label
                in your e-mail client.
          -->
        <subjectSource>Contact Form from your site</subjectSource>
        <!--
                Validation error messages that are showing to the user when the form fails to
                validate. The form supports different types of validators. You can change the
                text of the error messages the validators produce here.
                You can use the {LABEL} keyword in these messages. It will replace it with the
                label value of the field where an error occurs.
          -->
        <validationErrorMessages>
            <!--
                    A required field is not filled in.
              -->
            <message type="fieldIsRequired">{LABEL} is required.</message>
            <!--   
                    The specified e-mail address is incorrect.
              -->
            <message type="emailNotValid">{LABEL} - is not valid email address.</message>
            <!--
                    The specified number of characters in a field is less than a required minimum.
              -->
            <message type="minCharsLimitError">{LABEL} - The specified number of characters in a field is less than a required minimum.</message>
            <!--
                    The specified string does not match with the regular expression.
              -->
            <message type="reqExpError">{LABEL} - The specified string does not match with the regular expression.</message>
            <!--
                    The specified number is greater than an acceptable biggest number for this field.
              -->
            <message type="biggerThanMaxError">{LABEL} - The specified number is greater than an acceptable biggest number for this field.</message>
            <!--
                    The specified number is lower than an acceptable lowest number for this field.
              -->
            <message type="lowerThanMinError">{LABEL} - The specified number is lower than an acceptable lowest number for this field.</message>
            <!--
                    The data is not a number.
              -->
            <message type="notANumberError">{LABEL} - The data is not a number.</message>
            <!--
                    The specified number must not be negative.
              -->
            <message type="negativeError">{LABEL} - The specified number must not be negative.</message>
            <!--
                    The minimum number of variants is not selected
              -->
            <message type="minRequirementError">{LABEL} - The minimum number of variants is not selected</message>
            <!--
                    The number of variants selected exceeds the maximum
              -->
            <message type="maxRequirementError">{LABEL} - The number of variants selected exceeds the maximum</message>
            <!--
                    The fields that should be equal do not match
              -->
            <message type="shouldBeEqualError">{LABEL} - values do not match</message>
            <!--
                     The date has wrong format.
              -->
            <message type="dateIsNotValidError">{LABEL} - date has wrong format</message>
        </validationErrorMessages>
    </contactFormConfiguration>
    THIS IS THE ACTUAL CONTACT.PHP Form That i would like to link to.
    <?php
    //-----------------Getting data sent by flash---------------------
    foreach ($_POST as $key => $value){
            if ($key != 'mail_to' && $key != 'smtp_server' && $key != 'smtp_port' && $key != 'mail_from' && $key != 'mail_subject' && $key != 'plain_text'){
                $mail_body .= '<b>'.str_replace('_',' ',$key).'</b>:<br/>';
                $mail_body .= ''.stripslashes($value).'<br/>';
    $message = '<html><body>'.$mail_body.'</body></html>'; //  mail body
    //------------if plain text is set to true removing html tags------
    if ($_POST['plain_text']=='true') {
        $message = str_replace('<br/>',"\r\n", $message);
        $message = strip_tags($message);
    } else {
    //----otherwise composing message headers---------------------------
        $headers  = 'MIME-Version: 1.0' . "\r\n";
        $headers .= 'Content-type: text/html; charset=windows-1251' . "\r\n";
    //------------setting conf data-------------------------------------
    $to = $_POST['mail_to'];
    $from = $_POST['mail_from'];
    $subject = $_POST['mail_subject'];
    $smtp_server = $_POST['smtp_server'];
    $smtp_port = $_POST['smtp_port'];
    //---------setting header info--------------------------------------
    $headers .= 'From:' .$from;
    if (mail($to, $subject, $message, $headers)){ // sending mail
        print('&mail=1');  //succes
    } else {
        print('&mail=0');//failure
    ?>

    You can open both Muse files at once, copy the content of a page on one site, then paste it into a new page on the other site. You might have to redo some of the page styling.

  • Create SOAPMessage object from existing XML file

    Say I have already had a SOAP Message in a .xml file format.
    How can I create a SOAPMessage object in my program by loading the .xml file directly into it as opposed to using those getEnvelope(), getSOAPPart(). to build it piecemeal?

    Okay, I found out already
    import javax.xml.soap.*;
    import java.io.*;
    import javax.xml.transform.stream.*;
    import javax.xml.messaging.*;
    public class UDDIquery{
    public static void main(String args[]){
    try {
    MessageFactory factory = MessageFactory.newInstance();
    SOAPMessage request = factory.createMessage();
    SOAPPart soapPart = request.getSOAPPart();
    StreamSource src = new StreamSource(new FileInputStream(args[0]));
    soapPart.setContent(src);
    SOAPConnectionFactory conFactory = SOAPConnectionFactory.newInstance();
    SOAPConnection connection = conFactory.createConnection();
    URLEndpoint endpoint = new URLEndpoint(args[1]);
    request.writeTo(System.out);
    SOAPMessage response = connection.call(request,endpoint);
    } catch (SOAPException e) {
    System.err.println(e.getMessage());
    } catch (IOException e){
    System.err.println(e.getMessage());
    }

  • How to create Bar chart  from existing XML file

    Hi all,
    i'm new to flex, i need your help to develop a flex for
    dashboard app. we have sample.xml file. by using this i need to
    create a bar diagram or piechart.
    Please help me out
    The XMl looks like this.....
    <?xml version="1.0" encoding="utf-8"?>
    <user id="123412343">
    <fullName>
    <lastName>Telles</lastName>
    <firstName>vijay</firstName>
    </fullName>
    <preferences>
    <modWidth>235</modWidth>
    <modHeight>250</modHeight>
    <totalWidth>1650</totalWidth>
    <totalHeight>1650</totalHeight>
    <modsX>4</modsX>
    <modsY>2</modsY>
    </preferences>
    <module id="Status2">
    <windowOpen>true</windowOpen>
    <pointsToShow>
    <p label="Proposed"/>
    <p label="Draft"/>
    <p label="DEP Adpt"/>
    <p label="EPA Adpt"/>
    </pointsToShow>
    <dataSetsToShow>
    <label>2006</label>
    <label>2007</label>
    </dataSetsToShow>
    </module>
    </user>

    convert this xml to ArrayCollection called chartData
    var charOption:String = "totalHeight"; /Use this to set the
    yField property...
    <mx:ColumnChart showDataTips="true" id="barChart"
    width="100%" height="100%" dataProvider="{chartData}"
    color="0xffffff">
    <mx:horizontalAxis>
    <mx:CategoryAxis
    dataProvider="{chartData}"
    categoryField="hour" />
    </mx:horizontalAxis>
    <mx:verticalAxis>
    <mx:LinearAxis labelFunction="addDollarSign"/>
    </mx:verticalAxis>
    <mx:series>
    <mx:ColumnSeries yField="{chartOption}"
    showDataEffect="interpolate"
    creationCompleteEffect="interpolate"/>
    </mx:series>
    </mx:ColumnChart>

  • Create pdf forms from a xml file for follow up information

    Forgive my amateurishness, I have a simple .xml that was created with excel with name, address, date of service, age, dob, account #, unit, and business name.  I need a form to be pre-populated with the .xml data but have other fields (mainly Yes/No check boxes) that need to be populated by another user.  This user would then finish filling out the form and return it to me via email.  I have created the form in LC Designer ES2 and created it with Acrobat Pro X.  However when I attempt to import data I can only see the first .xml record.  So my question is, how do I create multiple .pdf forms for each .xml record?  Do I need to use Java within LC Designer?  Or use Adobe Pro?  I am not afraid to attempt to code, (I have many excel programs that batch print to .pdf using vb).
    Thank you in advance

    I don't play with forms enough to give an answer. However, you might search the Forms sub-forum for a possible solution. You might also find better answers there, though many of the forms experts drop by here too.

  • Telling my flash mp3 player to get its song list from an xml file

    Hello,
    What do I need to put in my code to tell my mp3 player to grab its songs from a folder on my server via an xml doc I outputted from my sql server? (the mp3 player is also on the server).
    Thanks in advance! 
    Here's my code thus far:
    Heres my code:
    import flash.events.MouseEvent;
    import flash.media.Sound;
    import flash.net.URLRequest;
    import flash.media.SoundChannel;
    import fl.events.SliderEvent;
    var myMusic:Sound = new Sound();
    var soundFile:URLRequest = new URLRequest("lpwfte.mp3");
    var channel:SoundChannel = new SoundChannel();
    var sTransform:SoundTransform = new SoundTransform();
    var myTimer:Timer = new Timer(100);
    var songPosition:Number = 0;
    var myContext:SoundLoaderContext = new SoundLoaderContext(5000);
    myMusic.load(soundFile, myContext);
    myTimer.addEventListener(TimerEvent.TIMER, updateTime);
    buttonPlay.addEventListener(MouseEvent.CLICK, playMusic);
    btnStop.addEventListener(MouseEvent.CLICK, StopMusic);
    sldVolume.addEventListener(SliderEvent.CHANGE, ChangeVolume);
    myMusic.addEventListener(Event.COMPLETE, getSongLength);
    btnPause.addEventListener(MouseEvent.CLICK, pauseMusic);
    function pauseMusic(evt:MouseEvent):void
    songPosition = channel.position;
    channel.stop();
    function convertTime(millis:Number):String
    var Minutes:Number = ( millis % (1000*60*60)) / (1000 * 60);
    var Seconds:Number = ((millis % (1000*60*60)) % (1000 * 60)) /1000;
    if(Minutes < 10)
      var displayMinutes:String = "0" + Math.floor(Minutes);
    }else
      var displayMinutes:String = Math.floor(Minutes).toString();
    if(Seconds < 10)
      var displaySeconds:String = "0" + Math.floor(Seconds);
    }else
      var displaySeconds:String = Math.floor(Seconds).toString();
    return displayMinutes + ":" + displaySeconds;
    //return (Math.floor(Minutes) + ":" + Math.floor(Seconds));
    function updateTime(evt:TimerEvent):void
    lblSongTime.text = convertTime(channel.position);
    function getSongLength(evt:Event):void
    lblSongTotalTime.text = convertTime(myMusic.length);
    lblSongName.text = myMusic.id3.songName;
    lblSongArtist.text = myMusic.id3.artist;
    lblSongYear.text = myMusic.id3.year;
    function ChangeVolume(evt:SliderEvent):void
    sTransform.volume = sldVolume.value;
    channel.soundTransform = sTransform;
    function StopMusic(evt:MouseEvent):void
    channel.stop();
    songPosition = 0;
    function playMusic(evt:MouseEvent):void
    channel = myMusic.play(songPosition);
    myTimer.start();

    Search Google for a tutorial using terms like "AS3 XML tutorial".  ANy one of them should show you the code you need to parse the xml data into variables you can use in your code for your mp3 URLRequest value.

  • Passing info from a XML file to URLloader

    I am new to Flex (And programming alltogether), so please
    excuse my ignorance when asking this question; but I have to start
    somewhere. :-)
    I have an application using HTTPService that pulls
    information from a XML file and displays an image and text within
    the window depending on the selected item. The image and text
    appears as needed from {data.image} or {data.text} calls to their
    appropriate field. On that same window, I want to add a link button
    that will direct the browser to a new page depending on the
    selected item. I have the link for each item embedded in the XML
    file, but I cannot figure out how to pass the link to the button.
    I have tried to create a function, but the URL isnot passed
    to the broswer. The application tells the browser to go to
    "{data.link}" at the local server, not the actual URL.
    my function looks like this:
    public function newPage():void
    var getLink = '{data.link}';
    var request:URLRequest = new URLRequest(getLink);
    var loader:URLLoader = new URLLoader();
    loader.load(request);
    }

    hi,
    can you share php code for grabbing data. i make php code using "simplexml_load_file" but the problem is it takes 2-3 minutes before it show the result. i want to monitor the current video if stop feeding.
    http://server1:1111/admin/getLiveStreams?auser=admin&apswd=admin&appInst=appname
    xml
    This XML file does not appear to have any style information associated with it. The document tree is shown below.
    <result> 
    <level>status</level> 
    <code>NetConnection.Call.Success</code>
    <timestamp>3/21/2015 7:47:17 AM</timestamp>
    <name>_defaultRoot_:_defaultVHost_:::_0</name>
    <data> 
    <_0>appname</_0> 
    </data>
    </result>
    here;s my php code:amsstats.php
    <?php
        $result = simplexml_load_file("http://server1:1111/admin/getLiveStreams?auser=admin&apswd=admin&appInst=appname");
        echo $result->data[0]->_0;
    ?>
    result:
    http://server2/stats/amsstats.php

  • How to generate GUI code from parsed XML file?

    hai,
    I have to generate GUI code after parsing any configuration XML file as input.Now i have parsed my XML file and got its attributed and i want to get some idea of how to map the parsed XML attributes to the java code to build GUI code.

    Hello,
    1. I like to create data type from a XML file structure, which contains the data structure ?
    XML fields will need to be taken note of to see which is repeating or not. You can also load the XML into a third-party tool such as Altova XML Spy and then generate an XSD from there. You will need to import the XSDs into PI under external definitions. However, this does not guarantee business interoperability, as such, it is always best to ask the provider for the XSDs or WSDL. It will also save you a lot of time from guessing which fields are needed or not.
    2. How to create custom node function in graphical mapping editor ?
    In your graphical mapping editor, on the lowest left corner, there is an icon there that says Create New Function. You must take into account their return types:
    1. Single Values = String
    2. Queue/Context (no return type) thus resultList is used.
    Hope this helps,
    Mark

  • Creating a list from the output of Xml parsing

    i extracted all the Folder name from the xml file.. (Thanks to Mr.Peter_vd_Wal..... [http://forums.sun.com/thread.jspa?threadID=5388524&tstart=0|http://forums.sun.com/thread.jspa?threadID=5388524&tstart=0] )
    the xml file is
    <?xml version="1.0"?>
    <folders>
      <folder><name>A</name><uid>C1</uid></folder>
      <folder><name>B</name><uid>C2</uid></folder>
      <folder><name>C</name><uid>C3</uid></folder>
      <folder><name>D</name><uid>C4</uid></folder>
      <folder><name>E</name><uid>C5</uid></folder>
    </folders>
    now i want create a list of folders form the output.
    i tried....
    public void endDocument() throws SAXException
        StringBuffer result = new StringBuffer();
        for (int i=0; i<nodes.size(); i++)
          Noden currentnode = (Noden)nodes.elementAt(i);
          result.append(" \"" + currentnode.getName() +  "\" ,");  
         midlet.alert(result.toString());
         System.out.println(result);
    ...........and
    protected void alert(String msg)
        Display display = Display.getDisplay(this);
       String[] stringElements = {msg};
        List list = new List("Listing",List.IMPLICIT,stringElements,null);
        display.setCurrent(list);
    ....the output i get is
    "A" , "B" , "C" , "D" , "E" ,i want a LIST of folders.... like
    A
    B
    C
    D
    Ebut i get all the folders as the first option in the list.
    > "A" , "B" , "C" , "D" , "E" ,

    ... i get all the folders as the first option in the list.
    "A" , "B" , "C" , "D" , "E" ,
    WYSIWYC (What You See Is What You Coded) - with code like your, above is the correct behavior.
    To make a list of folders, I'd rather try something like this....
    public void endDocument() throws SAXException
        String[] result = new String[nodes.size()];
        for (int i=0; i<nodes.size(); i++)
          Noden currentnode = (Noden)nodes.elementAt(i);
          result[i] = currentnode.getName();
          System.out.println(result);
    midlet.createAndDisplayList(result);
    System.out.println("createAndDisplayList called");
    and//.....
    protected void createAndDisplayList(String[] msg)
    Display display = Display.getDisplay(this);
    List list = new List("Listing", List.IMPLICIT, msg, null);
    display.setCurrent(list);

  • Loading an xml file from an xml file

    I'm trying to load an xml file from an xml file, but I'm
    having problems. My first xml file is really simple - it only
    contains one attribute with the name of another xml file in it
    (eventually I will have multiple xml files in here and run a loop
    on them...this is why I want to load an xml file from an xml file).
    Currently, with the code below, I can get the main xml file
    to load ("main.xml"), but I cannot get the secondary xml files to
    load FROM the main.xml.
    I want to then take childNode values from the secondary xml
    file and use them within my .swf in text boxes and whatnot.
    Any guidance? I think I'm going wrong on the line where I'm
    saying "i.newxml.load(i.attributes.location);"
    - How can I get this to work?

    johnypeter:
    I tried changing the code inside the loop to use just
    "newxml" instead of "i.newxml", and I declared with "var newxml =
    new XML();" - was this what you were thinking?
    kglad:
    The reason I tried to use the loadXML() function in the loop
    was so that for each node in my "main.xml" it would load the new
    xml file listed - this is a no-no? Do you have any ideas as to what
    I could do?
    For the for-loop, what should I change in it? I'm not great
    with loops so I tried to modify some code from another loop I found
    in another forum thread - not the right way to do it here?
    Also, what should I trace? The value of the _root.address, or
    i.attributes.location? I have created dynamic text boxes on my
    stage to see if the correct value from the xml file loads (ie. the
    name of the xml file within the xml file) and it does, but now I
    don't know how to put that information into ANOTHER loadXML()
    function and get the node information from it - does that make
    sense???
    Below are the examples of the xml files I am using. In the
    first one, main.xml, I will have a list of multiple xml files, each
    with the same nodes and elements as in the details.xml file
    (different values, of course).
    This is just to give you an example of what I'm trying to
    accomplish - pulling ALL the addresses and phone numbers from
    multiple xml files. I cannot manually collect this information, as
    it is dynamic, and will be updated in each individual details.xml.
    I was hoping to collect the information by simply adding to and
    updating ONE xml file - main.xml.
    Do you think this can be done? Am I going about it the wrong
    way? I'm quite limited in AS knowledge, which is why I'm piecing
    together code from other posts!

  • CME not creating custom SEP MacAddress .cnf.xml files, using XMLDefault.cnf.xml for phones

    Hello, I have CME 8.6 installed on two 2851s and before going into production, I am testing a few phones.
    One of my 2851's is creating cnf.xml files for each phone using SEP<Mac address>.cnf.xml and the other one will not and the phones keep booting up with XMLDefault.cnf.xml.
    I've looked at both configurations and I can't see what the difference is. Other than not being able to create the SEP<MacAddress>.cnf.xml files, the phones appear to be loading up fine. 
    One difference I see is the "its" directory is located on system: on the one that creates the cnf files, and the "its" directory is located in flash on the one that doesn't, although I don't know how that matters.
    Below is the one that doesn't create the SEP<MACADDRESS>.cnf.xml files for phones:
    Current configuration : 2657 bytes
    ! Last configuration change at 02:12:45 UTC Wed Oct 8 2014
    version 15.1
    service timestamps debug datetime msec
    service timestamps log datetime msec
    no service password-encryption
    hostname RtrPod2
    boot-start-marker
    boot-end-marker
    no aaa new-model
    no network-clock-participate wic 3
    crypto pki token default removal timeout 0
    dot11 syslog
    ip source-route
    ip cef
    ip dhcp excluded-address 20.0.30.0 20.0.30.10
    ip dhcp excluded-address 20.0.10.0 20.0.10.10
    ip dhcp pool Data
     network 20.0.10.0 255.255.255.0
     default-router 20.0.10.254
     option 150 ip 20.0.30.254
    ip dhcp pool Voice
     network 20.0.30.0 255.255.255.0
     default-router 20.0.30.254
     option 150 ip 20.0.30.254
     dns-server 8.8.8.8
    no ipv6 cef
    multilink bundle-name authenticated
    voice-card 0
    license udi pid CISCO2851 sn FTX1331AJQ1
    username cisco privilege 15 password 0 cisco
    redundancy
    controller T1 0/3/0
    controller T1 0/3/1
    interface Loopback0
     no ip address
    interface GigabitEthernet0/0
     no ip address
     duplex auto
     speed auto
    interface GigabitEthernet0/0.10
     encapsulation dot1Q 10
     ip address 20.0.10.254 255.255.255.0
    interface GigabitEthernet0/0.30
     encapsulation dot1Q 30
     ip address 20.0.30.254 255.255.255.0
    interface GigabitEthernet0/1
     ip address 192.168.5.232 255.255.255.0
     duplex auto
     speed auto
    interface Serial0/0/0
     no ip address
     shutdown
     clock rate 2000000
    interface Serial0/0/1
     ip address 200.2.0.1 255.255.255.0
    ip forward-protocol nd
    no ip http server
    no ip http secure-server
    tftp-server flash:cmterm-7940-7960-sccp.8-1-2.cop.sgn alias cmterm-7940-7960-sccp.8-1-2
    tftp-server flash:/Ringtones/DistinctiveRingList.xml alias DistinctiveRingList.xml
    tftp-server flash:/Ringtones/Ringlist.xml alias Ringlist.xml
    tftp-server flash:P00308010200.bin
    tftp-server flash:P00308010200.loads
    tftp-server flash:P00308010200.sb2
    tftp-server flash:P00308010200.sbn
    control-plane
    mgcp profile default
    telephony-service
     no auto-reg-ephone
     max-ephones 110
     max-dn 288
     ip source-address 20.0.30.254 port 2000
     system message Branch System
     load 7960-7940 P00308010200
     max-conferences 8 gain -6
     transfer-system full-consult
     create cnf-files version-stamp Jan 01 2002 00:00:00
    ephone-dn  1  dual-line
     number 2000
     label Phil Davis
     description Branch Office
    ephone  1
     device-security-mode none
     mac-address 0009.E89D.0B4F
     username "cisco" password cisco
     button  1:1
    line con 0
    line aux 0
    line vty 0 4
     login local
     transport input all
    line vty 5 15
     login local
     transport input all
    scheduler allocate 20000 1000
    end

    Hello, and thanks for the good advice. I did try and added the cnf perphone command and ran no create cnf-files and then create cnf-files, but unfortunately its still not making them.
    Also, from the other few CME installations I've seen, all of the information is in flash, but for some reason when I xtracted the tar for this CME, it's showing up in system: ? Could that be a problem?  Here is what I see:
    CompactFlash directory:
    File  Length   Name/status
      1   67922508  c2800nm-adventerprisek9-mz.151-4.M8.bin
      2   85149696  cme-full-8.0.0.1.tar
      3   2942935  apps11.8-5-3TH1-6.sbn
      4   503269   cnu11.8-5-3TH1-6.sbn
      5   2104751  cvm11sccp.8-5-3TH1-6.sbn
      6   340615   dsp11.8-5-3TH1-6.sbn
      7   1616686  jar11sccp.8-5-3TH1-6.sbn
      8   670      SCCP11.8-5-3S.loads
      9   674      term06.default.loads
     10   674      term11.default.loads
     11   1916     MISCH-1.3.3.SBN
     12   900      CP7921G-1.3.3.LOADS
     13   900      CP7925G-1.3.3.LOADS
     14   674      term42.default.loads
     15   674      term62.default.loads
     16   670      SCCP42.8-5-3S.loads
     17   655      term31.default.loads
     18   654      term41.default.loads
     19   654      term45.default.loads
     20   654      term61.default.loads
     21   654      term65.default.loads
     22   654      term70.default.loads
     23   654      term71.default.loads
     24   654      term75.default.loads
     25   651      SCCP31.8-5-3S.loads
     26   650      SCCP41.8-5-3S.loads
     27   650      SCCP45.8-5-3S.loads
     28   650      SCCP70.8-5-3S.loads
     29   650      SCCP75.8-5-3S.loads
     30   61       SCCP69xx.8-5-3-0.loads
     31   131470   Desktops/320x212x12/CampusNight.png
     32   80565    Desktops/320x212x12/CiscoFountain.png
     33   8156     Desktops/320x212x12/CiscoLogo.png
     34   138278   Desktops/320x212x12/FOUNTAIN.PNG
     35   740      Desktops/320x212x12/LIST.XML
     36   109076   Desktops/320x212x12/MorroRock.png
     37   108087   Desktops/320x212x12/NantucketFlowers.png
     38   10820    Desktops/320x212x12/TN-CampusNight.png
     39   9657     Desktops/320x212x12/TN-CiscoFountain.png
     40   2089     Desktops/320x212x12/TN-CiscoLogo.png
     41   7953     Desktops/320x212x12/TN-Fountain.png
     42   7274     Desktops/320x212x12/TN-MorroRock.png
     43   9933     Desktops/320x212x12/TN-NantucketFlowers.png
     44   740      Desktops/320x212x16/LIST.XML
     45   740      Desktops/320x216x16/LIST.XML
     46   8224     Ringtones/Analog1.raw
     47   8307     Ringtones/Analog2.raw
     48   5280     Ringtones/AreYouThere.raw
     49   5040     Ringtones/AreYouThereF.raw
     50   8206     Ringtones/Bass.raw
     51   12240    Ringtones/CallBack.raw
     52   16066    Ringtones/Chime.raw
     53   8160     Ringtones/Classic1.raw
     54   16080    Ringtones/Classic2.raw
     55   10800    Ringtones/ClockShop.raw
     56   2823     Ringtones/DistinctiveRingList.xml
     57   9665     Ringtones/Drums1.raw
     58   13610    Ringtones/Drums2.raw
     59   15928    Ringtones/FilmScore.raw
     60   16244    Ringtones/HarpSynth.raw
     61   8245     Ringtones/Jamaica.raw
     62   16127    Ringtones/KotoEffect.raw
     63   12776    Ringtones/MusicBox.raw
     64   8223     Ringtones/Piano1.raw
     65   15422    Ringtones/Piano2.raw
     66   9360     Ringtones/Pop.raw
     67   7200     Ringtones/Pulse1.raw
     68   4000     Ringtones/Ring1.raw
     69   4000     Ringtones/Ring2.raw
     70   4000     Ringtones/Ring3.raw
     71   4000     Ringtones/Ring4.raw
     72   4000     Ringtones/Ring5.raw
     73   4000     Ringtones/Ring6.raw
     74   4088     Ringtones/Ring7.raw
     75   495      Ringtones/Ringlist.xml
     76   10858    Ringtones/Sax1.raw
     77   14233    Ringtones/Sax2.raw
     78   16100    Ringtones/Vibe.raw
     79   8095286  apps37sccp.1-3-4-0.bin
     80   2942935  apps31.8-5-3TH1-6.sbn
     81   2935993  apps42.8-5-3TH1-6.sbn
     82   2935993  apps45.8-5-3TH1-6.sbn
     83   2935993  apps75.8-5-3TH1-6.sbn
     84   2933329  apps41.8-5-3TH1-6.sbn
     85   2933329  apps70.8-5-3TH1-6.sbn
     86   2599169  APPSH-1.3.3.SBN
     87   2591877  APPS-1.3.3.SBN
     88   2118620  SYSH-1.3.3.SBN
     89   2103754  cvm70sccp.8-5-3TH1-6.sbn  [invalid checksum]
     90   2101414  cvm41sccp.8-5-3TH1-6.sbn  [invalid checksum]
     91   2100804  cvm45sccp.8-5-3TH1-6.sbn  [invalid checksum]
     92   2100554  cvm75sccp.8-5-3TH1-6.sbn  [invalid checksum]
     93   2100286  cvm31sccp.8-5-3TH1-6.sbn  [invalid checksum]
     94   2099070  cvm42sccp.8-5-3TH1-6.sbn  [invalid checksum]
     95   2083047  SYS-1.3.3.SBN  [invalid checksum]
     96   1939872  WLANH-1.3.3.SBN  [invalid checksum]
     97   1906272  SCCP69xx.8-5-3-0.zz  [invalid checksum]
     98   1892036  GUIH-1.3.3.SBN  [invalid checksum]
     99   1887312  jar75sccp.8-5-3TH1-6.sbn  [invalid checksum]
     100   1882934  jar45sccp.8-5-3TH1-6.sbn  [invalid checksum]
     101   1848343  GUI-1.3.3.SBN  [invalid checksum]
     102   1828410  jar70sccp.8-5-3TH1-6.sbn  [invalid checksum]
     103   1756328  jar42sccp.8-5-3TH1-6.sbn  [invalid checksum]
     104   1628021  jar41sccp.8-5-3TH1-6.sbn  [invalid checksum]
     105   1616425  jar31sccp.8-5-3TH1-6.sbn  [invalid checksum]
     106   1379535  WLAN-1.3.3.SBN  [invalid checksum]
     107   939293   TNUXH-1.3.3.SBN  [invalid checksum]
     108   896477   TNUX-1.3.3.SBN  [invalid checksum]
     109   537925   dsp41.8-5-3TH1-6.sbn  [invalid checksum]
     110   537925   dsp70.8-5-3TH1-6.sbn  [invalid checksum]
     111   524969   cnu45.8-5-3TH1-6.sbn  [invalid checksum]
     112   524917   cnu42.8-5-3TH1-6.sbn  [invalid checksum]
     113   524876   cnu75.8-5-3TH1-6.sbn  [invalid checksum]
     114   503753   cnu31.8-5-3TH1-6.sbn  [invalid checksum]
     115   500084   cnu70.8-5-3TH1-6.sbn  [invalid checksum]
     116   499644   cnu41.8-5-3TH1-6.sbn  [invalid checksum]
     117   496521   music-on-hold.au  [invalid checksum]
     118   340615   dsp31.8-5-3TH1-6.sbn  [invalid checksum]
     119   340615   dsp42.8-5-3TH1-6.sbn  [invalid checksum]
     120   340615   dsp45.8-5-3TH1-6.sbn  [invalid checksum]
     121   340615   dsp75.8-5-3TH1-6.sbn  [invalid checksum]
     122   264368   DSP69xx.0-0-0-3.zz  [invalid checksum]
     123   165355   B016-1-0-3.SBN  [invalid checksum]
     124   146463   B015-1-0-3.SBN  [invalid checksum]
     125   44896    BOOT69xx.0-0-0-14.zz  [invalid checksum]
     126   11601    CME-8-0-Full-Readme-v.1.0.txt  [invalid checksum]
     127   5134     7970-71-75-Background-readme-v1.txt  [invalid checksum]
     128   1916     MISC-1.3.3.SBN  [invalid checksum]
     129   4118     GUI/admin_user.html  [invalid checksum]
     130   677820   GUI/admin_user.js  [invalid checksum]
     131   1029     GUI/CiscoLogo.gif  [invalid checksum]
     132   639      GUI/CME_GUI_README.TXT  [invalid checksum]
     133   953      GUI/Delete.gif  [invalid checksum]
     134   16344    GUI/DOM.JS  [invalid checksum]
     135   864      GUI/downarrow.gif  [invalid checksum]
     136   6315     GUI/ephone_admin.html  [invalid checksum]
     137   4558     GUI/LOGOHOME.GIF  [invalid checksum]
     138   3978     GUI/normal_user.html  [invalid checksum]
     139   78428    GUI/normal_user.js  [invalid checksum]
     140   1347     GUI/Plus.gif  [invalid checksum]
     141   843      GUI/SXICONAD.GIF  [invalid checksum]
     142   174      GUI/Tab.gif  [invalid checksum]
     143   2496     GUI/telephony_service.html  [invalid checksum]
     144   870      GUI/UPARROW.GIF  [invalid checksum]
     145   10230    GUI/xml-test.html  [invalid checksum]
     146   3412     GUI/xml.template  [invalid checksum]
     147   12       OS79XX.txt
     148   130552   P00308010200.bin
     149   461      P00308010200.loads
     150   708448   P00308010200.sb2
     151   130956   P00308010200.sbn
     152   703535   cmterm-7940-7960-sccp.8-1-2.cop.sgn
    [239789964 bytes used, 281983088 available, 521773052 total]
    509544K bytes of ATA CompactFlash (Read/Write)
    RtrPod2#show telephony-service tftp-bindings
    tftp-server system:/its/united_states/7960-tones.xml alias United_States/7960-tones.xml
    tftp-server system:/its/united_states/7960-font.xml alias English_United_States/7960-font.xml
    tftp-server system:/its/united_states/7960-font.xml alias English_United_States/7920-font.xml
    tftp-server system:/its/united_states/7960-dictionary.xml alias English_United_States/7960-dictionary.xml
    tftp-server system:/its/united_states/7960-kate.xml alias English_United_States/7960-kate.xml
    tftp-server system:/its/united_states/7960-kate.xml alias English_United_States/7920-kate.xml
    tftp-server system:/its/united_states/SCCP-dictionary.xml alias English_United_States/SCCP-dictionary.xml
    tftp-server system:/its/SEPDEFAULT.cnf alias SEPDefault.cnf
    tftp-server system:/its/vrf1/XMLDefault.cnf.xml alias XMLDefault.cnf.xml

  • Creation of a shipping notification for a PO in EBP from a XML file via XI.

    Hi everybody.
    We are trying to create a shipping notification for a Purchase Order in Enterprise Buyer from a XML file via XI.
    For to do it, we are using ‘DespatchedDeliveryNotification_In’ message interface (transaction SPROXY).
    But when we execute it, the system show us next message:
    "An error occured within an XI interface: An exception with the type CX_GDT_CONVERSION occurred, but was neither handled locally, nor declared in a RAISING clause Programm: SAPLBBP_BD_MAPPING_SAPXML1; Include: LBBP_BD_MAPPING_SAPXML1F5B; Line: 4"
    No more information is available.
    Is there any additional transaction to see more information about the error message?
    Is there any documentation about this XML file, mandatory fields, examples…?
    We populated some fields in our XML file, but we do not know if the problem is with mandatory fields, data, program error…
    I will thank for any information
    Thanks in advance.
    Raúl Moncada.

    Raúl,
    This is because of the inbound UOM.
    The include LBBP_BD_MAPPING_SAPXML1F5B is in charge of mapping the item Unit Of Mesure (UOM) sent in the ASN XML file (it should be an ISO code).
    You can test FM UNIT_OF_MEASURE_ISO_TO_SAP with this inbound ISO code.
    PS: you should create an OSS message so the mapping sends back an error message instead of generating an uncatched exception (that generates a dump).
    Rgds
    Christophe
    PS: please reward points for helpfull answers

  • Need to insert values into a table from a XML file

    Hi,
    I'm an Oracle 9i/10g DBA with quite a few years experience, but I'm new to XML and dealing with it in database terms. I've been given a project that entails pulling XML values out of a file (or 100's of them) and storing them in the database so that they are searchable by end-users. The project is classified as secret so I'm unable to upload the specific XML or any info relating to the structire of the XML or the table I will use to insert the values into - sorry!! So, I've created an XML file with a similar structure to help people understand my predicament.
    The end-users only need to search on a subset of the total amount of columns from the table I'll insert data into, although the XML file has a lot more, so I dont need to store the other values - but I will need to store the name of the XML file (or a pointer to it so I know what XML file a particular set of values belong to) in another column of the table along with its associated values.
    I've been using the XMLTABLE function with some degree of success, although I had better succes using the XMLSEQUENCE function. However, I found out this is deprecated in 10g and replaced with XMLTABLE, so I guess it's better if I use this in case we ever need to upgrade to 11g.
    The main problem I've been having is that some elements in the XML files have multiple values for the one record when all the other records are the same. In terms of storing this in the database, I guess it would mean inserting multiple rows in the table for each element where the value differs. Here is a dumbed down XML file similar to what I've got along with the other SQL I've used:
    +<?xml version="1.0" encoding="UTF-8"?>+
    +<House>+
    +<Warehouse>+
    +<WarehouseId>1</WarehouseId>+
    +<WarehouseName>+
    +<Town>Southlake</Town>+
    +<State>Texas</State>+
    +</WarehouseName>+
    +<Building>Owned</Building>+
    +<Area>25000</Area>+
    +<Docks>2</Docks>+
    +<DockType>Rear load</DockType>+
    +<WaterAccess>true</WaterAccess>+
    +<RailAccess>N</RailAccess>+
    +<Parking>Street</Parking>+
    +<VClearance>10</VClearance>+
    +</Warehouse>+
    +<Warehouse>+
    +<WarehouseId>2</WarehouseId>+
    +<WarehouseName>+
    +<Town>Poole</Town>+
    +<State>Dorset</State>+
    +</WarehouseName>+
    +<WarehouseName>+
    +<Town>Solihull</Town>+
    +<County>West Midlands</State>+
    +</WarehouseName>+
    +<Building>Owned</Building>+
    +<Area>40000</Area>+
    +<Docks>5</Docks>+
    +<DockType>Rear load</DockType>+
    +<WaterAccess>true</WaterAccess>+
    +<RailAccess>N</RailAccess>+
    +<Parking>Bay</Parking>+
    +<VClearance>10</VClearance>+
    +</Warehouse>+
    +<Warehouse>+
    +<WarehouseId>3</WarehouseId>+
    +<WarehouseName>+
    +<Town>Fleet</Town>+
    +<County>Hampshire</County>+
    +</WarehouseName>+
    +<Building>Owned</Building>+
    +<Area>10000</Area>+
    +<Docks>1</Docks>+
    +<DockType>Side load</DockType>+
    +<WaterAccess>false</WaterAccess>+
    +<RailAccess>N</RailAccess>+
    +<Parking>Bay</Parking>+
    +<VClearance>20</VClearance>+
    +</Warehouse>+
    +</House>+
    CREATE TABLE xmltest OF XMLTYPE;
    INSERT INTO xmltest
    VALUES(xmltype(bfilename('XML_DIR', 'test.xml'), nls_charset_id('AL32UTF8')));
    Consequently, I need to...
    1) Retrieve the results from the XML file for all 3 warehouses where multiple values for the same sub-element are shown as 2 rowsthe result set. (I am guessing there will be 4 rows returned as warehouse sub-2 has 2 different elements for <WarehouseName>.
    2) Build a case statement into the query so that regardless of the sub-element name (i.e State or County), it is returned into the 1 column, for instance County.
    So, if I run a query similar to the following...
    select y.WarehouseId, y.Town, y.County, y.Area
    from xmltest x, xmltable('/House/Warehouse' .......
    I would like to get results back like this...
    ID Town County Area
    1 Southlake Texas 25000
    2 Poole Dorset 40000
    2 Solihull West Midlands 40000
    3 Fleet hampshire 10000
    Sorry for the non-formatting but I hope this all makessense to someone out there with what I'm trying to do.
    I appreciate any help whatsoever because, as i said before, I'm totally new to XML and trying to read the vast amount of information there is out there on XML is all a bit daunting.
    Many thanks in advance,
    Shaun.

    Hi again,
    Thanks for keeping the post open for me. I've had a look at the post illustrating the XFileHandler package, and tried to alter it to make it fit with my XML files. To help explain things, my XML file looks like this:
    <?xml version="1.0"?>
    <!DOCTYPE  CMF_Doc SYSTEM "CMF_Doc.dtd">
    <House>
        <Warehouse>
        <WarehouseId>1</WarehouseId>
        <WarehouseName>
           <Town>Southlake</Town>
           <State>Texas</State>
        </WarehouseName>
        <Building>Owned</Building>
        <Area>25000</Area>
        <Docks>2</Docks>
        <DockType>Rear load</DockType>
        <WaterAccess>true</WaterAccess>
        <RailAccess>N</RailAccess>
        <Parking>Street</Parking>
        <VClearance>10</VClearance>
      </Warehouse>
      <Warehouse>House
        <WarehouseId>2</WarehouseId>
        <WarehouseName>
           <Town>Poole</Town>
           <State>Dorset</State>
        </WarehouseName>
        <WarehouseName>
           <Town>Solihull</Town>
           <County>West Midlands</County>
        </WarehouseName>
        <Building>Owned</Building>
        <Area>40000</Area>
        <Docks>5</Docks>
        <DockType>Rear load</DockType>
        <WaterAccess>true</WaterAccess>
        <RailAccess>N</RailAccess>
        <Parking>Bay</Parking>
        <VClearance>10</VClearance>
      </Warehouse>
      <Warehouse>
        <WarehouseId>3</WarehouseId>
        <WarehouseName>
           <Town>Fleet</Town>
           <County>Hampshire</County>
        </WarehouseName>
        <Building>Owned</Building>
        <Area>10000</Area>
        <Docks>1</Docks>
        <DockType>Side load</DockType>
        <WaterAccess>false</WaterAccess>
        <RailAccess>N</RailAccess>
        <Parking>Bay</Parking>
        <VClearance>20</VClearance>
      </Warehouse>
    </House>
    <?xml version="1.0" encoding="UTF-8"?>
    <House>
        <Warehouse>
        <WarehouseId>4</WarehouseId>
        <WarehouseName>
           <Town>Dallas</Town>
           <State>Texas</State>
        </WarehouseName>
        <Building>Owned</Building>
        <Area>25000</Area>
        <Docks>2</Docks>
        <DockType>Rear load</DockType>
        <WaterAccess>true</WaterAccess>
        <RailAccess>N</RailAccess>
        <Parking>Street</Parking>
        <VClearance>10</VClearance>
      </Warehouse>
      <Warehouse>
        <WarehouseId>5</WarehouseId>
        <WarehouseName>
           <Town>Dorchester</Town>
           <State>Dorset</State>
        </WarehouseName>
        <WarehouseName>
           <Town>Solihull</Town>
           <County>West Midlands</County>
        </WarehouseName>
        <Building>Owned</Building>
        <Area>40000</Area>
        <Docks>5</Docks>
        <DockType>Rear load</DockType>
        <WaterAccess>true</WaterAccess>
        <RailAccess>N</RailAccess>
        <Parking>Bay</Parking>
        <VClearance>10</VClearance>
      </Warehouse>
      <Warehouse>
        <WarehouseId>6</WarehouseId>
        <WarehouseName>
           <Town>Farnborough</Town>
           <County>Hampshire</County>
        </WarehouseName>
        <Building>Owned</Building>
        <Area>10000</Area>
        <Docks>1</Docks>
        <DockType>Side load</DockType>
        <WaterAccess>false</WaterAccess>
        <RailAccess>N</RailAccess>
        <Parking>Bay</Parking>
        <VClearance>20</VClearance>
      </Warehouse>
    </House>
    <?xml version="1.0" encoding="UTF-8"?>
    <House>
        <Warehouse>
        <WarehouseId>7</WarehouseId>
        <WarehouseName>
           <Town>Southlake</Town>
           <State>Texas</State>
        </WarehouseName>
        <Building>Owned</Building>
        <Area>25000</Area>
        <Docks>2</Docks>
        <DockType>Rear load</DockType>
        <WaterAccess>true</WaterAccess>
        <RailAccess>N</RailAccess>
        <Parking>Street</Parking>
        <VClearance>10</VClearance>
      </Warehouse>
      <Warehouse>
        <WarehouseId>8</WarehouseId>
        <WarehouseName>
           <Town>Bournemouth</Town>
           <State>Dorset</State>
        </WarehouseName>
        <WarehouseName>
           <Town>Shirley</Town>
           <County>West Midlands</County>
        </WarehouseName>
        <Building>Owned</Building>
        <Area>30000</Area>
        <Docks>5</Docks>
        <DockType>Rear load</DockType>
        <WaterAccess>true</WaterAccess>
        <RailAccess>N</RailAccess>
        <Parking>Bay</Parking>
        <VClearance>10</VClearance>
      </Warehouse>
      <Warehouse>
        <WarehouseId>9</WarehouseId>
        <WarehouseName>
           <Town>Clapham</Town>
           <County>London</County>
        </WarehouseName>
        <Building>Owned</Building>
        <Area>10000</Area>
        <Docks>1</Docks>
        <DockType>Side load</DockType>
        <WaterAccess>false</WaterAccess>
        <RailAccess>N</RailAccess>
        <Parking>Bay</Parking>
        <VClearance>20</VClearance>
      </Warehouse>
    </House>And the XFilehandler package looks like this (I'm just trying to do a simple select only on WarehouseId & WaterAccess for the time being to keep things simple):
    create or replace package XFileHandler as
      TYPE TRECORD IS RECORD (
        WID     NUMBER(2)
      , WACCESS VARCHAR2(5)
      type TRecordTable is table of TRecord;
      function getRows (p_directory in varchar2, p_filename in varchar2) return TRecordTable pipelined;
    end;
    create or replace package body XFileHandler is
      function getRows (p_directory in varchar2, p_filename in varchar2)
       return TRecordTable pipelined
      is
        nb_rec          number := 1;
        tmp_xml        clob;
        tmp_file         clob;
        rec               TRecord;
      begin
        DBMS_LOB.CREATETEMPORARY(TMP_FILE, TRUE);
        tmp_file := dbms_xslprocessor.read2clob(p_directory, p_filename);
        LOOP
          tmp_xml := regexp_substr(tmp_file, '<\?xml[^?]+\?>\s*<([^>]+)>.*?</\1>', 1, nb_rec, 'n');
          exit when length(tmp_xml) = 0;
          --dbms_output.put_line(tmp_rec);
          nb_rec := nb_rec + 1;
        select y.WID, y.WACCESS
        into rec.WID, rec.WACCESS
        from xmltable('/House' passing xmltype(tmp_xml)
                      columns WID NUMBER(2) PATH 'Warehouse/WarehouseId',
                                  WACCESS VARCHAR2(5) PATH 'WaterAccess') y;
          pipe row ( rec );
        end loop;
        dbms_lob.freetemporary(tmp_file);
        return;
      end;
    end;Now, when I run the query:
    select * from table(XFileHandler.getRows('XML_DIR', 'XFileHandler_test.xml'));I get the error: ORA-00600: internal error code, arguments: [17285], [0x5CFE8DC8], [4], [0x45ABE1C8], [], [], [], []
    I had a look in the dump file for anything obvious, but nothing really stands out. Is there anything obvious in my code that I'm missing or something else which you may think could be causing this error, e.g in the regular expression regexp_substr?
    Many thanks,
    Shaun.

  • Crystal Report that reads from an XML file Datetime or Date

    I have a Crystal Report 2008 that reads from an XML file, the source File XML Date data looks like this: 2008-03-10
    But the Crystal Report interpreted by datatime, I need the Crystal Report to look like this: 2008/03/10 (date) not 2008-03-10T00:00:00-05:00 (datatime)
    Look at an example (source file xml, report, and parameter file to execute report) at url: http://www.5websoft.com/sample.zip
    Import the file in the design and will to verify that interpret incorrectly the fields of type date as datetime
    not mapped currently for fields..
    Help.....
    Thanks!

    You could always reformat the field to only display the date portion:
    Format Field > Date and Time tab; choose the date style you need here.
    Or create a formula to extract just the date and use this field in your report:
    date({table.field})

Maybe you are looking for