How do I remove certain data being imported from a php file

I have data being loaded from a php into an xml class.
My host (which is free for testing purposes) keeps adding data to the php file which causes errors.  I need to know how I can delete this extra text before I put the data into an XML class so I do not get the error.  I did a trace of the data and this is what comes up below.  I need everything below the </data> tag to be removed but do not know how to do this.  Can someone please help me.
<?xml version='1.0' encoding='UTF-8'?><data>
    <google rate='21' />
    <yahoo rate='3' />
    <msn rate='2' />
    <tv rate='10' />
    <diger rate='4' />
</data>
<!-- www.000webhost.com Analytics Code -->
<script type="text/javascript" src="http://analytics.hosting24.com/count.php"></script>
<noscript><a href="http://www.hosting24.com/"><img src="http://analytics.hosting24.com/count.php" alt="web hosting" /></a></noscript>
<!-- End Of Analytics Code -->
Thanks,
Jason

in your load complete function:
var s:String=e.target.data;
var xml:XML=XML(s.split("<!-- www.000")[0]));

Similar Messages

  • How to remove noisy data points read from a text file

    Reading data measurements taken in from a txt file.  How do I get rid of noise aside from going into the text file and deciding point by point what to delete.

    Well going in point by point and deleting is certainly one way of going about it. Of course that would defeat the entire purpose of having this great programming enviroment that is capable of doing that kind of thing for us.
    Is your text file small enough to upload? Obviously you know what the criteria are for judging whether or not a data point is acceptable so it should be simple enough to program. Give us a bit more information and I can assure you there will be a race between LabVIEW experts to see who can post the cleanest, simplest, and fastest piece of code that will do what you need. My wager is on altenbach, but there are a few others here that are almost as impressive.

  • How do you remove the date/time stamp from a photo before printing?

    I have one group of photos in an event that have the date and time stamp on them.  I don't know how to remove the date/time stamp before printing. 

    If you have your camera set to imprint the date/time on the photo you can not "remove it - it is a part of the photo - depending on the surounding photo you might be able to retouch it out
    LN

  • How to know which class is being loaded from which jar file & path location

    Hi,
    I have some Java code using several jar files.
    I want to remove those jar files which are not being used by the code.
    So , I want the JVM to output which class is being loaded from which jar .
    Using "java -verbose" option doesnt solve the problem because the required info is printed only for the classes/jars native to the J2SE package .
    Can anyone provide a solution which does not require me to modify the code?
    Thanks,
    Danish

    Classpath Helper

  • How can i remove tool bar permanently in from my PDF file

    i am creating a web application, which will display adobe file. however i dont want to show any toolbar in browser. how can i achieve this? i want to make changes in my PDF file to happen this.

    @Thanks Pat.
    However in Acrobat XI, when move mouse over the document, toolbar pan is displaying, which help user to show toolbar window.
    is there anyway to hide below window in IE? (this pan is not showing in chrome)

  • How can I remove all the drawing canvases from a Word file?

    Hi,
    There are many drawing canvases in the document, which were created by pressing 'edit' on embedded EMF files.
    I would like to replace the embedded figures with object references, so I searched for a way to delete all the drawing canvases but couldn't find the result.
    Is there a macro that will delete all the drawing canvases in the document? Or, is the drawing canvas defined as an object type at all?
    Thanks in advance.

    Hi,
    According to your description, do you want to change the shapes or other content's figures with object references of the drawing canvases in Word?
    If you need to use a macro, I recommend you post the question to MDSN forum for Word:
    http://social.msdn.microsoft.com/Forums/en-US/home?forum=worddev&filter=alltypes&sort=lastpostdesc
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.
    George Zhao
    TechNet Community Support

  • How to find out what was imported from a dump file

    Hi.
    I got the dump file from a group and they told me to import it. Import job went successfully without errors as following:
    Import: Release 9.2.0.6.0 - Production on Mon Oct 16 20:53:12 2006
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    Connected to: Oracle9i Enterprise Edition Release 9.2.0.6.0 - 64bit Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.6.0 - Production
    Export file created by EXPORT:V09.02.00 via conventional path
    Warning: the objects were exported by OPS$ORACLETS, not by you
    import done in US7ASCII character set and UTF8 NCHAR character set
    import server uses WE8ISO8859P1 character set (possible charset conversion)
    export server uses AL16UTF16 NCHAR character set (possible ncharset conversion)
    . importing OPS$ORACLETS's objects into SYS
    . importing BDS_APP's objects into BDS_APP
    Import terminated successfully without warnings.
    How do i find out what was imported from a dump file?

    another way would be to just list the contents of the dump file
    imp user/pass file=dumpfile show=Y

  • How do I remove "other" data from my phone?

    I recently tried downloading a movie in the SD format that was around 2gb or so. I had over 2gb of empty spac eon my phone to rent the movie. the movie started to download fine and I left it to download. I went to videos and the rental shows up however it says there isn't enough room to download it. there is no data under videos howver there is over 2gb of added data to my phone under the "other". Itunes continually wants me to download this rental but I can't with 190mb. I'm guessing the movie already downloaded and something went wrong and it wants me to download it again. I did get a refund for the movie but the space it takes up is still there. Does anyone know how can I remove this data? I tried restoring a backup and emailing customer support and nothing has changed.

    Kappy's User Tip to deal with "Other": https://discussions.apple.com/docs/DOC-5142
    Delete your messages. Remove the attached files such as pictures and videos.

  • How to create the Export Data and Import Data using flat file interface

    Hi,
    Request to let me know based on the requirement below on how to export and import data using flat file interface.....
    Please provide the steps involved for the same.......
    BW/BI - Recovery Process for SNP data. 
    For each SNP InfoProvider,
    create:
    1) Export Data:
    1.a)  Create an export data source, InfoPackage, comm structure, etc. necessary to create an ASCII fixed length flat file on the XI
    ctnhsappdata\iface\SCPI063\Out folder for each SNP InfoProvider. 
    1.b)  All fields in each InfoProvider should be exported and included in the flat file. 
    1.c)  A process chain should be created for each InfoProvider with a start event. 
    1.d)  If the file exists on the target drive it should be overwritten. 
    1.e)  The exported data file name should include the InfoProvider technical name.
    1.f)  Include APO Planning Version, Date of Planning Run, APO Location, Calendar Year/Month, Material and BW Plant as selection criteria.
    2) Import Data:
    2.a) Create a flat file source system InfoPackage, comm structure, etc. necessary to import ASCII fixed length flat files from the XI
    ctnhsappdata\iface\SCPI063\Out folder for each SNP InfoProvider.
    2.b)  All fields for each InfoProvider should be mapped and imported from the flat file.
    2.c)  A process chain should be created for each InfoProvider with a start event. 
    2.d)  The file should be archived in the
    ctnhsappdata\iface\SCPI063\Archive directory.  Each file name should have the date appended in YYYYMMDD format.  Each file should be deleted from the \Out directory after it is archived. 
    Thanks in advance.
    Tyson

    Here's some info on working with plists:
    http://developer.apple.com/documentation/Cocoa/Conceptual/PropertyLists/Introduc tion/chapter1_section1.html
    They can be edited with any text editor. Xcode provides a graphical editor for them - make sure to use the .plist extension so Xcode will recognize it.

  • How do I remove a date and time mark on a stored photo so I can put it into a calendar

    How do I remove a date and time mark on a stored photo so I can put it into a calendar.....?

    In Iphoto, yes.  You can use PhotoShop Elements or some other editor.  You can also crop.  (You might be able to make the retouch brush smaller.)

  • Lost my old iPhone ..... how do i remove the data in other Apple devices?

    My old iPhone (3GS on IOS 4.1 before iCloud was introduced) is lost. It was synchronized using iTunes. I have other devices (iPad, iMac). How do I remove the data created in that iPhone from Calendar, etc. The recurring event created in that old iPhone will continue until I remove them.
    Appreciate the help

    Settings -> General -> Reset -> Erase all Content and Settings
    or restore it to factory settings:
    http://support.apple.com/kb/HT1414
    Regards.

  • How do I remove all data in OS 10.9.4 ?

    How do I remove all data from OS X 10.9.4?  This is a late 2010 MacBook Air I want to donate to a friend.  Thanks.

    Click here and follow the instructions. When you reach step 5, connect its original thumbdrive, restart with the C key held down, use the Disk Utility to erase the internal drive, and install a fresh OS.
    (111185)

  • How can I remove birthday date on my iPhone 4

    How can I remove birthday date on my iPhone 4

    Find the person whose birthday you want to delete in your contacts and check if their birthdate is there. If yes, simply edit the contact and delete the birthday field.

  • How to bulk import data into CQ5 from MySQL and file system

    Is there an easy way to bulk import data into CQ5 from MySQL and file system?  Some of the files are ~50MB each (instrument files).  There are a total of ~1,500 records spread over about 5 tables.
    Thanks

    What problem are you having writing it to a file?
    You can't use FORALL to write the data out to a file, you can only loop through the entries in the collection 1 by 1 and write them out to the file like that.
    FORALL can only be used for SQL statements.

  • How can I remove all photos and directories from iPhoto?

    How can I remove all photos and directories from iPhoto as if it was a brand new install?
    I am new to iPhoto and was unaware of how it works, honestly I still am a little confused as to when pics I am using 1/2 the time, some from iPhoto and some from MyPics.
    Anyhow, I am looking to remove all photos from iPhoto because during the migration of all my photos from PC to MAC, somehow my timeline became messed up and all my photos that have been logged my dates since 1998 are now all messed up.
    Although all my year folders are still in tact, IE 1998-2006, the subfolders and like pics are all intertwined somehow.
    And when I search iPhoto for a given year, photos from 2,4, 8 yrs back show up in 2006.
    Anyhow, I have selected and deleted all photos and folders within iPhoto, and then import the desired photos from MyPics, only to have the photos double up in the library. ( The old ones that should be deleted and the new imports)
    I simply don't get it, they fill the trash and disappear when it's emptied, then reappear when iPhoto re-opens!
    Can someone help????
    I have completely reworked all my photos so that they are all in the correct folders outside of iPhoto, and now I want to import those and only those pics with that file structure.
    IE Structure = YEAR > MONTH > DAY ( or if needed) > DAY/EVENT

    Do you want to remove the existing full sized image files also? If so then just drag the iPhoto Library folder from the Pictures folder to the Trash and empty it. But be warned you'll lose all of your image files.
    You are dragging the files to the iPhoto Trash bin and then using the iPhoto->Empty Trash menu, right?
    In copying your photos to myspace and then back the original capture date may not be retained and then either the created date or modified date will be used by iPhoto. If the files in the current library are the originals from your camera then those have the best chance of retaining the correct Captured Date. You can check that out by dragging the Originals folder from your iPhoto Library folder to the desktop and then trash what remains of the iPhoto Library folder. Then launch iPhoto and it will ask you to create an new library. Then import that Originals folder and it's subfolders by dragging it into iPhoto's open window. You'll keep the same rolls that was. The roll dates may change but you can check the captured date of the files by using the calendar in the Source pane.
    You won't be able to keep your folder structure within iPhoto. Each outside folder will result in a roll with the same title as the folder. You'll be able to create folders in the Source pane to put albums inside. You can create a smart album to include all photos in a certain date range, line one month.
    Do you Twango?
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    G5 Dual Core 2GHz, 2G RAM, 250G HD; G4 Dual 1Ghz, 1.5G RAM, 80G HD,   Mac OS X (10.4.7)   22 LCD Display, 200G & 160G FW HDs, Canon S400, i850 & LIDE 50, Epson R200

Maybe you are looking for

  • How can I use Apple Caching Service on a Network with Multiple Public IPs?

    Hello! I help manage a network of ~4000 clients for a small liberal arts college in Michigan. I'm looking into the possibility of implimenting Apple Caching Server for our network. We have one 400mbit pipe out to the internet, and all of our clients

  • AE CC Pre-Comp Issue

    Please review the screen shots. As you can see the Comp preview in After Effects looks quite a bit different than what Media Encoder and Premiere Pro is displaying. This seems to be related to pre-comping because if I pre-comp the layers in AE I get

  • Strange issue creating a BCP xml format file with double dagger '‡' (alt + 0135) as column terminator with bcp.exe

    Hi, I'm having issues generating a BCP XML format file using a fairly unusual column terminator, a double dagger symbol ‡ (alt + 0135) which I need to support. I'm experiencing this problem with bcp.exe for SQL2008 R2 and SQL2012. If I run the follow

  • Scenario for Report Painter

    Hello, Can anyone provide me some scenarios to prepare some reports in Report Painter. basically I am BW but trying to learn little more abt FICO and its related reporting tools. I already have the one which is @ http://www.virtuosollc.com/PDF/Get_Re

  • Question on DBMS_SCHEDULER.PUT_FILE - permission

    Hello All, I am trying to execute a sqlplus script within a Shell script within a stored procedure. How do I do a chmod U+x on the shell script that I generate without explicitly setting it? Is there a way I can do this within DBMS_SCHEDULER command?