XML.onLoad  ... split command ?

Hi all
I am loading weather data from on external XML file into
flash.
Everything works fine and AS is loading the XML sucessfully
But I only need certain letters or characters from the XML
node.....
can you help me with some code, I only want the AS to load
the temperature data, nothing else !!!
Help is very much appreciated.... thanks :-D

YES THERE IS A WAY and I will find it ......
the split command can be used to say ...... split Node at
character 14 ..... and so on .... It is possible.
The fact that it downloads the whole XML file doesnt mean
anything. ;-D

Similar Messages

  • How to use split command in upload program

    Thanks for all ...for their quick response for my previous query.
    Iam continuing with the same upload program,now i have transfered the data from internal table to application server,now iam trying to upload this to database,while doing this iam using split command for spliting the records,but its not at all spliting,can u give me a solution for this.

    OPEN DATASET p_file FOR INPUT IN TEXT MODE ENCODING DEFAULT.
      if sy-subrc <> 0.
        PERFORM messaging USING 'E' '001' text-e10 p_file space space.
      else.
        DO.
          READ DATASET P_file INTO WA .
          IF SY-SUBRC <> 0.
            EXIT.
          ENDIF.
          REPLACE ALL OCCURRENCES OF '"' IN WA WITH ''.
          CONDENSE WA NO-GAPS.
          SPLIT WA AT CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB
          INTO wa_infile.
          append wa_infile to it_infile.
          clear wa_infile.
        ENDDO.
      endif.
    try this...
    vijay

  • XML-RPC PHP Command Execution

    The follow captured packet is said to have caused the signature called “XML-RPC PHP Command Execution” (SIGID: 3254 SubSig: 0) to trigger
    ..~...........E..$..@.=....C....'O....QxE..+.UP....j....<?xml version="1.0"?>..<methodCall>..<methodName>test.method..</methodName>..<params>..<param>..<value><name>','')); echo ..'______BEGIN______'; ..passthru('id'); ..echo ..'_____FIM_____';..exit;/*</name></value>..</param>..</params>..</methodCall>....{.
    The signature looks for 2 criteria before sending the alert to the console.
    HeaderRegex:
    [Cc][Oo][Nn][Tt][Ee][Nn][Tt][-][Tt][Yy][Pp][Ee][:]\x20?([Aa][Pp][Pp][Ll][Ii][Cc][Aa][Tt][Ii][Oo][Nn]|[Tt][Ee][Xx][Tt])[/\\][Xx][Mm][Ll]
    RequestRegex:
    [^\x5c]['][);\x0a\x0d\x20]+([Ee][Cc][Hh][Oo]|[Ss][Yy][Ss][Tt][Ee][Mm])
    I am looking for the part in the triggered packet that has caused the event to trigger.
    Could someone from the list please point out which part in the trigged packet caused the event?

    Hi Darin,
    This signature is indeed firing because the following part is included into the XML file being posted:
    ','')); echo ..'______BEGIN______';
    I'm not too sure if this is legitimate or not in your case, but that definitely looks like a code injection!
    It is indeed pretty similar to the exploits related to this vulnerability:
    http://www.securityfocus.com/bid/14088/exploit
    JF

  • GarageBand 3 - Split command deletes the 2nd half of a track

    I want to divide an audio track into two sections at the playhead. I've tried the split command, and it does split the track - but the second half of the track appears to be deleted. Looking on other help topics, it doesn't seem like other people are experiencing this behavior.
    Is there a way to split a track and keep both sections?

    eleret_salven,
    Are you attempting to divide a software instrument track or a real instrument track?
    If you're referring to a software instrument track where you are splitting a single note, then the second portion of the track will disappear, in my experience.
    However, if you are splitting a real instrument track, the second half should not be deleted as the other posted noted.
    Carson

  • LoadMovie() &  XML.onLoad query(AS2)

    Hi all :)
    I have a Flash file that uses the loadMovie () to load JPG
    files successfully, example:
    imageuri = "../images/00_proto" + var1 + ".jpg";
    holder_mc.holder0.loadMovie(this["imageuri"]);
    Working
    Example
    'holder_mc' is the container clip and 'holder0' is the clip
    that stores the loaded JPG file, this works fine.
    I am upgrading the Flash file using an XML database, code
    example:
    var statesXML:XML = new XML();
    statesXML.ignoreWhite = true;
    statesXML.load("../XML/USA.xml");
    statesXML.onLoad = function(success)
    // XML loading excluded
    // Problem code
    imageuri = "../images/00_proto" + var1 + ".jpg";
    _parent.holder_mc.holder0.loadMovie(this["imageuri"]);
    The JPG's are not being loaded into the 'holder0' clip from
    inside the XML.onLoad() method. Spent hours trying to fix this,
    still have not resolved the problem. Any responses much welcomed!
    regards
    John
    www.javono.com

    Hi John,
    Its diffcult as I don't know what you've tried before, but my
    first stop would be to trace out imageurl to make sure the path to
    the image is correct (although usually you'll get an error message
    if not). Are you sure you need _parent. on the start of that path?
    Have you tried it without that?
    Tom.

  • XML File splitting in PI

    Hi all,
    We have a requirement that the receiving application can accept files only of size 2MB. So this is a limitation from the receiving application
    The source system is SAP ECC system and the receiving application is a legacy application.
    Technically it is a ABAP Proxy to File scenario. Receiving application can accept files only in XML format.
    SAP ABAP Proxy code is written in such a way to read all the records in a SAP table and the full table load is sent as an proxy xml message to PI, PI has to split this  full xml file  in to chunks based on some condition and then transfer it to receiving legacy application.
    Can we achieve file splitting in PI for XML files based on no.of records or size.
    Please share your inputs/pointers to provide the best solution to this requirement.
    regards,
    Younus

    Hi,
    Yes this can be done by the amount of records you send through at a time.
    So lets there is 10000 records. You might only send 200 at a time and that will keep it under the 2mb limitation.
    This is a simple if function on your nodes. Please see the links below that would help you.
    Split source message into multiple target messages
    Defining Message Splits - SAP NetWeaver Process Integration - SAP Library
    Configuring Mapping-Based Message Splits - Integration Directory - SAP Library
    Split mapping created no messages SAP PI 7.11
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/30ea2fdf-f047-2a10-d3a2-955a634bde6b?overridelayout=t…
    Regards,
    Jannus Botha

  • How do you add start parameters in opmn.xml with a command?

    I'm trying to make a shell script to install an OC4J automatically. What I need to do now is adding start-parameters to the opmn.xml. Obviously, I don't want to go into the file itself and manually add the text. Is there a command to set them?? Or is there any other way around this?
    I.e., I want to add -Duser.country=SE and -Duser.language=sv as below:
    <process-type id="OC4J_I413" module-id="OC4J" status="enabled">
    <module-data>
    <category id="start-parameters">
    <data id="java-options" value="-Doc4j.formauth.redirect=true
    -Dhttp.session.debug=true
    -Duser.country=SE
    -Duser.language=sv"/>
    </category>
    </module-data>
    </process-type>
    Thanks a lot!
    Kerstin

    Hi again,
    Solved the issue simply by editing the xml file with sed:
    VAR1='OC4J_I413\/config\/java2\.policy -Djava\.awt\.headless\=true -Dhttp\.webdir\.enable\=false -XX\:MaxPermSize\=128M -Xms512M -Xmx1024M -XX\:AppendRatio\=3\"\/\>'
    VAR2='OC4J_I413\/config\/java2\.policy -Djava\.awt\.headless\=true -Dhttp\.webdir\.enable\=false -XX\:MaxPermSize\=256M -Xms512M -Xmx1024M -XX\:AppendRatio\=3 -Duser\.country\=SE -Duser\.language\=sv\"\/\>'
    sed "s/$VAR1/$VAR2/" opmn.xml > Newopmn.xml; cp Newopmn.xml opmn.xml
    This is a text string that contains start parameters and it can be found here:
    <category id="start-parameters">
    <data id="java-options" value="-server -Djava.security.policy=$ORACLE_HOME/j2ee/OC4J_I413/config/java2.policy -Djava.awt.headless=true -Dhttp.webdir.enable=false -XX:MaxPermSize=128M -Xms512M -Xmx1024M -XX:AppendRatio=3"/>
    //Kerstin

  • XML onLoad execution context

    i am loading data from an XML file using the XML object. the
    XML handling is being done in a class i have defined. the basic
    class definition is below (with extraneous code removed).
    the issue is that when that "trace" fires, it displays the
    contents of the XML object. in other words, the onLoad handler is
    executing in the context of the XML object rather than in the
    context of the class. so i cannot reference the XML object in the
    onLoad handler (ie using "xmlVideo.firstChild"). if i try to access
    any of the properties of the XML object using this (ie:
    "this.firstChild"), Flash gives me a compile error because the
    class does not have any such property.
    i have used a similar process to load XML with the
    actionscript on a frame rather than in a class. in that case, the
    onLoad handler executed in the context of the MovieClip not the
    context of the XML object. can anyone tell me how to deal with
    this? how can i access the properties of the XML object in the
    onLoad handler? better still, how can i persuade the onLoad handler
    to execute in the context of the class?

    ah... i see. i have used a similar technique in other
    circumstances, but i didn't see how to apply it here. thank
    you.

  • XML onLoad problem

    I'm calling an external xml file and loading it into Flash.
    I can only pull the varables out in the onLoad function. Here
    it is.
    var courseXML:XML = new XML();
    courseXML.ignoreWhite = true;
    courseXML.load("presentSlidesOne.xml");
    courseXML.onLoad = function(bSuccess:Boolean):Void {
    if (bSuccess && this.status == 0) {
    var xnRoot:XMLNode = new XMLNode(3, this.firstChild);
    var xnHelpText:XMLNode = new XMLNode(3,
    this.firstChild.firstChild);
    trace(xnHelpText.nodeValue);
    else {
    trace("document failed to load or parse.");
    //stop();
    All these trace statements produce the desired result.
    However, I can't get the data out and available globally. In
    other words, I want the same variable statements to exist outside
    the onLoad function call, so that I can actually use the data.
    Anybody know how to do this?
    Thanks,

    That is because that is what you are telling Flash to do. Any
    variable declared with "var" is going to be local to the function
    where it is created. So your choice is to drop var. But of course
    if you truly want a global variable, then declare it as a _global
    variable!
    PS: The courseXML object is its own object and exists outside
    the onLoad event handler function. Once it is loaded it stays there
    until you remove it. So the data is there an freely available even
    after it loads.

  • Windows 7 autounattend.xml first logon commands

    Hi
    Within autounattend my first logon command are not running,  I am using the local administrator account! as when my build is finished it is logged in under the local administrator account (so that cant be my issue)
    Anyway, is there any log file output I can get out of the autouattend.xml to see whats going wrong for me? can i enable logging ? is yes how do i do that ?
    john

    I'm running into the same issue.  Everything in my unattend.xml takes effect, but a simple registry edit fails.
    Tracy, unless they modified their post, per your own link your response is not the answer:  When a user with administrative
    privileges logs in for the first time, these commands are run with elevated access privileges.
    Example code that fails:
          <FirstLogonCommands>
            <SynchronousCommand wcm:action="add">
              <Order>1</Order>
              <CommandLine>cmd /c reg.exe ADD HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\ /v HideFileExt /t REG_DWORD /d 0 /f</CommandLine>
              <Description>ChangeHideFiles</Description>
            </SynchronousCommand>
          </FirstLogonCommands>
    Alternatively,
          <FirstLogonCommands>
            <SynchronousCommand wcm:action="add">
              <Order>1</Order>
              <CommandLine>C:\windows\system32\reg.exe ADD HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\ /v HideFileExt /t REG_DWORD /d 0 /f</CommandLine>
              <Description>ChangeHideFiles</Description>
            </SynchronousCommand>
          </FirstLogonCommands>
    Full example unattend.  Maybe I don't have it in the right spot or wrong syntax?
    <?xml version="1.0" encoding="utf-8"?>
    <unattend xmlns="urn:schemas-microsoft-com:unattend">
    <settings pass="specialize">
    <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <ComputerName>EXAM</ComputerName>
    <TimeZone>Eastern Standard Time</TimeZone>
    </component>
    </settings>
    <settings pass="oobeSystem">
    <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <UserAccounts>
    <AdministratorPassword>
    <Value>p@ssw0rd!</Value>
    <PlainText>true</PlainText>
    </AdministratorPassword>
    </UserAccounts>
    <AutoLogon>
    <Password>
    <Value>p@ssw0rd!</Value>
    <PlainText>true</PlainText>
    </Password>
    <Username>administrator</Username>
    <LogonCount>2</LogonCount>
    <Enabled>true</Enabled>
    </AutoLogon>
    <FirstLogonCommands>
    <SynchronousCommand wcm:action="add">
    <Order>1</Order>
    <CommandLine>cmd /c reg.exe ADD HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\ /v HideFileExt /t REG_DWORD /d 0 /f</CommandLine>
    <Description>ChangeHideFiles</Description>
    </SynchronousCommand>
    </FirstLogonCommands>
    <RegisteredOrganization>ORG</RegisteredOrganization>
    <RegisteredOwner>USER</RegisteredOwner>
    <OOBE>
    <HideEULAPage>true</HideEULAPage>
    <SkipMachineOOBE>true</SkipMachineOOBE>
    </OOBE>
    </component>
    </settings>
    <cpi:offlineImage cpi:source="" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
    </unattend>
     

  • Adobe Reader importing XML data using command line reference

    Financial Gonverment in Poland prepared new VAT declarations, which are protected from changing.
    Restrictions summary is as follows: Printing, Commenting, Filling of form fields: Allowed; other restrictions are not allowed.
    I am able to export xml data, using Acrobat Reader, change it to have desired data and than import it and everything works fine. In ERP program I need to fill this document with data from the system. Normally we were doing this using FDF printing channel, but for this document it shows an error with bad user password. We were talking with people from government and only answer was that it is not possible to change document restrictions... We find out the way to create xml document, but we want it now to open from the command line (UNIX commands). But we only find the way to open pdf file with specified fdf file... But when I'm trying to open PDF document with specified fdf URL (url is linked to xml file... i don't know if it is proper... if not than how to create fdf file with desired xml?)
    Is there any possible to open a pdf with specified xml url to load to that PDF?

    I found the mistakes I made and I corrected them. The newly revised/corrected code is:
    USE OPENXMLtesting1
    GO
    With XmlFile (Contents) AS (
    SELECT CONVERT (XML, BulkColumn)
    FROM OPENROWSET (BULK 'C:\Temp\books.xml', SINGLE_BLOB) AS XmlData
    SELECT *
    FROM XmlFile
    GO
    It worked: Results
         Contents
    1  <catalog><book.id="bk101"><author>Gambardella.M...
    If I clicked on this, I got a listing of the whole book.xml!!  I don't know what it means.  Please comment and respond.
    Thanks,
    Scott Chang

  • Xml.onLoad variables undefined outside function

    Hi all,
    I've been searching this problem for a while and have tried a number of solutions found on google but nothing has worked so far. I'm sure this is a common problem, but due to my lack of flash knowledge I can't logically work through it as I'm used to windows form development, it makes sense to me that the function could access the variables I have defined but they dissapear after the .onLoad event. Does anyone know the common solution to this problem? I want to be able to pass the xml details into the local variables so I can pass on the details into a dynamic text field when movies are hovered over etc.
    Thanks in advance for any help.
    var myXML:XML = new XML();
    myXML.ignoreWhite=true
    var nav1TitleText:String;
    var nav1Text:String;
    var nav2TitleText:String;
    var nav2Text:String;
    var nav3TitleText:String;
    var nav3Text:String;
    var nav4TitleText:String;
    var nav4Text:String;
    myXML.load("navigation.xml");
    myXML.onLoad = function(success){
    if (success){
    nav1TitleText = myXML.firstChild.childNodes[0].childNodes[1].firstChild.nodeValue;
    trace(nav1TitleText); \\ This one shows the text from the xml file
    nav1Text = myXML.firstChild.childNodes[0].childNodes[2].firstChild.nodeValue;
    nav2TitleText = myXML.firstChild.childNodes[1].childNodes[1].firstChild.nodeValue;
    nav2Text = myXML.firstChild.childNodes[1].childNodes[2].firstChild.nodeValue;
    nav3TitleText = myXML.firstChild.childNodes[2].childNodes[1].firstChild.nodeValue;
    nav3Text = myXML.firstChild.childNodes[2].childNodes[2].firstChild.nodeValue;
    nav4TitleText = myXML.firstChild.childNodes[3].childNodes[1].firstChild.nodeValue;
    nav4Text = myXML.firstChild.childNodes[3].childNodes[2].firstChild.nodeValue;
    trace(nav1TitleText);  // This one traces undefined

    Thanks for your help, I have got it working now by doing as you suggested. In .net programming when you specify something to load, it will run the onload first, and then continue through to the rest of the code. I'm assuming flash runs all of the code (non-functions) regardless of order of code. So it was running the trace below the onLoad before the onLoad, even though I told it to myXML.Load() before the other code...
    Seriously doesn't make sense to me.. lol
    var myXML:XML = new XML();
    myXML.ignoreWhite=true
    var nav1TitleText:String;
    var nav1Text:String;
    var nav2TitleText:String;
    var nav2Text:String;
    var nav3TitleText:String;
    var nav3Text:String;
    var nav4TitleText:String;
    var nav4Text:String;
    myXML.load("navigation.xml");
    myXML.onLoad = function(success){
    if (success){
    nav1TitleText = myXML.firstChild.childNodes[0].childNodes[1].firstChild.nodeValue;
    trace(nav1TitleText);
    nav1Text = myXML.firstChild.childNodes[0].childNodes[2].firstChild.nodeValue;
    nav2TitleText = myXML.firstChild.childNodes[1].childNodes[1].firstChild.nodeValue;
    nav2Text = myXML.firstChild.childNodes[1].childNodes[2].firstChild.nodeValue;
    nav3TitleText = myXML.firstChild.childNodes[2].childNodes[1].firstChild.nodeValue;
    nav3Text = myXML.firstChild.childNodes[2].childNodes[2].firstChild.nodeValue;
    nav4TitleText = myXML.firstChild.childNodes[3].childNodes[1].firstChild.nodeValue;
    nav4Text = myXML.firstChild.childNodes[3].childNodes[2].firstChild.nodeValue;
    loadedValues();
    function loadedValues()
    trace(nav1TitleText);
    navItem1.title1.text = nav1TitleText;
    navItem2.title2.text = nav2TitleText;
    navItem3.title3.text = nav3TitleText;
    navItem4.title4.text = nav4TitleText;
    Thank you again for your reply!
    Bex

  • Xml.onLoad variables undefined outside

    Hi all,
    I've been searching this problem for a while and have tried a number of solutions found on google but nothing has worked so far. I'm sure this is a common problem, but due to my lack of flash knowledge I can't logically work through it as I'm used to windows form development, it makes sense to me that the function could access the variables I have defined but they dissapear after the .onLoad event. Does anyone know the common solution to this problem? I want to be able to pass the xml details into the local variables so I can pass on the details into a dynamic text field when movies are hovered over etc.
    var myXML:XML = new XML();
    myXML.ignoreWhite=true
    var nav1TitleText:String;
    var nav1Text:String;
    var nav2TitleText:String;
    var nav2Text:String;
    var nav3TitleText:String;
    var nav3Text:String;
    var nav4TitleText:String;
    var nav4Text:String;
    myXML.load("navigation.xml");
    myXML.onLoad = function(success){
    if (success){
    nav1TitleText = myXML.firstChild.childNodes[0].childNodes[1].firstChild.nodeValue;
    trace(nav1TitleText); \\ This one shows the text from the xml file
    nav1Text = myXML.firstChild.childNodes[0].childNodes[2].firstChild.nodeValue;
    nav2TitleText = myXML.firstChild.childNodes[1].childNodes[1].firstChild.nodeValue;
    nav2Text = myXML.firstChild.childNodes[1].childNodes[2].firstChild.nodeValue;
    nav3TitleText = myXML.firstChild.childNodes[2].childNodes[1].firstChild.nodeValue;
    nav3Text = myXML.firstChild.childNodes[2].childNodes[2].firstChild.nodeValue;
    nav4TitleText = myXML.firstChild.childNodes[3].childNodes[1].firstChild.nodeValue;
    nav4Text = myXML.firstChild.childNodes[3].childNodes[2].firstChild.nodeValue;
    trace(nav1TitleText);  // This one traces undefined

    Hi, thanks for your reply. For some reason I've ended up with two of the same posts.
    The other one is here: http://forums.adobe.com/message/2204418#2204418 and has been answered.
    Cheers,
    Bex

  • Extract Pages- and Split- Commands

    I have a document created in Illustrator (CS4) which has multiple artboards. I want it split into multiple documents, one art board—> one document with only that artwork. When I use the Extract PAges… and the Split… comands to generate multiple documents, I get the multiple docs (same number of docs created as pages in original doc).
    Only thing is every doc has all the artboards and all the artwork as the original doc. I could understand all the artwork being there but all the artboards also?? What's going on?
    Appreciate any pointers on this.
    Trying to write a JSX to run in AI but struggling so far.

    Maybe you should invest in Acrobat...
    On Wed, Aug 20, 2014 at 11:28 AM, methebeachbum <[email protected]>

  • Split command for theTAB spacing in file.

    Hi all,
    Requirement is to read a file from the application server and process it.
    The file has the TAB spacings and seen from AL11 shows # for tabs.
    I have read the line in a character of 1024. Now on splitting at delimiter '/h/' as seen in debug it does not split the line as reqired.
    How to split the columns with tab space.
    appreciate your inputs.
    Thanks,
    Stock

    Hi stock,
    sorry but you can use
    CONSTANTS: CON_NEWL TYPE X VALUE '0D', "OK for non Unicode
                          CON_TAB  TYPE X VALUE '09'. "OK for non Unicode
    or
    CONSTANTS: CON_NEWL TYPE X VALUE %_NEWLINE,
                          CON_TAB  TYPE X VALUE %_HORIZONTAL_TAB.
    Regards, Dieter

Maybe you are looking for