Xml from a php file does not load

hi
i have a php file that output an xml ,in order to use it in
flash.
when i test the php file in the browser i get the xml i need
but in flash i get this error message:
TypeError: Error #1088: The markup in the document following
the root element must be well-formed.
at taakexml_fla::MainTimeline/seexml()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/onComplete()
i took the xml i get and made it a separate file (an xml one)
and i can load it.
what am i doing wrong?
best regards
ron

Try this php file:
$xml_output .= "<posts>";
while($row=mysql_fetch_array($Result)){
$xml_output .= "<post>";
$xml_output .=
"<title>".$row['title']."</title>";
$xml_output .= "<date>".$row['date']."</date>";
$xml_output .=
"<shortdesc>".$row['short_desc']."</shortdesc>";
$xml_output .=
"<thepost>".$row['thepost']."</thepost>";
$xml_output .= "</post>";
$xml_output .= "</posts>";
echo $xml_output;
Flash should do the rest.

Similar Messages

  • PDF file does not load

    Just downloaded  Adobe Reader. A file will not load to the reader and then it clicks off.  Never happened before.  Running WIN 7.

    Are these local or online documents?  If online, in what browser?
    Sorry, I do not understand the meaning of "clicks off".

  • Parsing XML from a socket that does not close

    Hi -
    I've seen similar questions to this already posted, but either they did not really apply to my situation or they were not answered.
    I have to read messages from a server and process them individually, but the protocol does not indicate the message length or give any sort of terminating character. You only know you have a complete message because it will be a well formed XML fragment. To complicate matters more, there could be extra binary data preceding each XML message. I must stress that I did not write this server, and I have no influence over the protocol at all, so while I certainly agree that this is not such a good protocol, changing it is not an option.
    I'm hoping that there is a reasonable way to deal with this with an existing parser. Ironically, I don't really need to parse the XML at all, I just need to know when the current message is over but the only indication I get is that it will be the end of an XML fragment.
    I do have the ability to strip off the non-XML binary data, so if there is some way that I can give the stream to a SAX (or other) parser when I know XML is coming and have it inform me when tags begin and end, or ideally inform me when it is done a complete XML fragment, that would be perfect. I'm aware of how to do this using SAX normally, but it seems that it will not function correctly when there is no EOF or other indication that the document has ended.
    The best algorithm I have come up with (and it's pretty cheesy) is:
    1. Start with a string buffer.
    2. Append data from the socket to the buffer one byte at a time.
    3. Keep checking if there is a '<' character that is not followed by '?' or '!'. (ie - don't concern myself with the special XML elements that don't close with '/>' or </tagName>. I keep them in the buffer to pass on when I'm done though.)
    4. When I get my first tag with <tagName> I make note of what this tag is and increment a counter. If the tag is self closing, then I'm done.
    5. Anytime I see this tag I increment the counter.
    6. Anytime I see </tagName> I decrement the counter. If the counter = 0, I am done.
    7. I pass on the entire message, preceding binary data, special XML tags and the fragment to the module that actually processes it.
    This has a few problems. I'll have to go out of my way to support multiple character encodings, I'll have to be careful to catch all the special XML tags, and its quite CPU intensive to be interested in every single character that comes down the pipe (but I suppose this is not avoidable). Also, I just don't like to re-invent the wheel because I'm likely to make an error that a well established parser would not make.
    Does anyone have any suggestions for this, or know of a parser that will deal with fragments using streams that don't close?
    Thanks!

    The parser expects to read to the end of the stream. If you closed the stream right after you wrote to it, I bet it would work. You wouldn't want to close the stream though would you? Try sending the string using a DataOuputStream and calling DataOutputStream.writeUTF(String) on the client side. Then, on the server side call String str = in.readUTF() (where 'in' is a DataInputStream). Then wrap the string in a StringReader and give the StringReader to the parser as it's input source.

  • 2nd Audio track from merged .m4v files does not play on iPod Touch

    I used Handbrake to encode two .m4v files of a concert DVD that spans two DVDs. I then took those two files and combined them into Quicktime Pro to create a single .m4v file. The file plays fine in QT but when I transfer the file to my ipod, only the first audio track (from the first file) plays. Once the video from the second file plays, the audio is silent. Here's what the movie properties look like:
    Enabled Name Start Time Duration Format
    ====================================================
    Y Video Track -- 0:00:00:00 -- 2:21:53:90 -- H.264
    Y Audio Track1 -- 0:00:00:00 -- 2:21:53:90 -- AAC
    Y Audio Track2 -- 1:27:28:87 -- 0:54:24:02 -- AAC
    N Text Track -- 0:00:00:00 -- 2:21:53:90 -- Text
    Any suggestions?
    Thanks,
    Dan

    So basically, anytime I combine more than one mp4 file in QT7 Pro, it will always create multiple audio tracks when doing a simple "save as" (vs. export as)
    Not exactly. QT has it own set of rules. As you noted, the video track had no problem merging into a single track. This would not have happened if you had merged video compressed differently or added an image/stretched image sequence. Not knowing your specific work flow or settings, I hesitate to make any claims here. Frankly, when merging audio, I normally prefer to use GarageBand when I want to create a single master audio track and still retain control of the other tracks for mixing purposes. However, I could just as well have exported the audio in the original file using QT Pro to a single audio file and used that audio track to replace both original tracks keeping both the original video and chapter tracks. It is all a matter of which work flow you consider easiest for a particular job or project.
    If I've exported out my chapter file as a plain text file, how do I go about reintegrating that withing the final mp4 file using QT?
    http://www.apple.com/quicktime/tutorials/chaptertracks.html
    The above link is a somewhat old tutorial explaining how to create a chapter text track from scratch. Since you already have the chapter track, just refer to the steps indicating how to add the text file back to your main movie file. (Ignore the step that says to set a "Preload" option as this pop-up has been removed.)

  • War file does not load drivers.

    Hello All,
    I have made a web application in jsf framework which runs fine in netbeans on 8084 port.
    but when I copy the war file in my webapps of tomcat which runs on 8080 port.
    The login page gets loaded but when I click login to validate user in database, it
    gives error that the "cannot load jdbc driver".
    Also in netbeans when I run my appplication its runs as "http://localhost:8080/"
    amd my page gets loaded but from tomcat I have to run as
    "http://localhost:8080/trial_web_portal"
    If I just type "http://localhost:8080/" my tomcat page get displayed.
    Please help.
    Also let me know whether is this a jsf issue.

    Vish_1x1 wrote:
    ..Also let me know whether is this a jsf issue.Don't know, what I can tell you is that whatever issue it is, has nothing to do with Java Web Start & JNLP.

  • Applet does not load in IE when hosted in form via SHDocVw.dll

    Hi
    I have a signed applet that usually works well in IE and Mozilla FireFox.
    It shows a popup window with the security question Yes/No/Always and works great thereafter.
    However
    We have now developed a Vb.Net application which hosts the SHDocVw.dll and now when for example I navigate to the web page within this embedded browser control from Microsoft the applet does not load and the popup window does not appear, when trying to access it via clientside scriptring it does not find the applet object.
    // this fails when called from embedded browser control
    <script>
    document.applets[0].prepareControl();
    </script>
    Please help me I would really like to get the applet to work when using this new vb.net application with the embedded browser control because it is becoming our company's standard to hos apps in this new app and not open a new instance of IE for each application.
    Thanks
    Ian Coetzer

    What does the trace say?
    To turn the full trace on (windows) you can start the java console, to be found here:
    C:\Program Files\Java\j2re1.4...\bin\jpicpl32.exe
    In the advanced tab you can fill in something for runtime parameters fill in this:
    -Djavaplugin.trace=true -Djavaplugin.trace.option=basic|net|security|ext|liveconnect
    if you cannot start the java console check here:
    C:\Documents and Settings\userName\Application Data\Sun\Java\Deployment\deployment.properties
    I think for linux this is somewhere in youruserdir/java (hidden directory)
    add or change the following line:
    javaplugin.jre.params=-Djavaplugin.trace\=true -Djavaplugin.trace.option\=basic|net|security|ext|liveconnect
    for 1.5:
    deployment.javapi.jre.1.5.0.args=-Djavaplugin.trace\=true -Djavaplugin.trace.option\=basic|net|security|ext|liveconnect
    The trace is here:
    C:\Documents and Settings\your user\Application Data\Sun\Java\Deployment\log\plugin...log
    I think for linux this is somewhere in youruserdir/java (hidden directory)
    Print out the full trace of the exception:
    try{...}catch(Exception e){e.printStackTrace();}
    If no trace is created my guess is that the jre is never started, try the <object tag
    instead for your applet (html page) because your browser tries to run the applet with msjvm.

  • JDEV 10.1.3  XML Editor does not load XML file

    I am trying to edit a large (300MB+) xml file with JDEV 10.1.3 running on a Windows XP Pro workstation with a 2.8 ghz processor and 1GB of memory. The XML file has application data in it. The file loads just fine into the Oracle database using the XML Developer's toolkit so I don't thing there is anything wrong with the XML.
    I'm finding that the XML editor does not load the file. Many minutes elapse, then JDEV appears to simply give up - JDEV is no longer busy. There's no XML data to edit - that window is empty. There are no error messages displayed.
    I'm new to JDEV so I need to know if there is an error log file I should examine.
    BTW, other XML editors (XML Spy, Stylus Studio, etc) simply run out of memory and lock up the machine - it appears they are tryign to convert the XML file contents into 32-bit unicode in memory, build a list of pointers to impose a DOM-like structure, and then load their editor.

    Do you really want to manually edit the 300MB file? how much scrolling will you need to do to get to the last row?
    In any case it is likely that JDeveloper also runs out of memory - you can try running the [jdev-root]\jdev\bin\jdev.exe file and see if you get any error message in the log window.

  • Xml does not load in browser

    i made an applet that loads an .xml to get data. it works fine when i compile it in netbeans but when i try to use it in my browser in does not load the xml. Tha paths are ok. Is there something that could be done?

    Is the XML file on the local hard drive?
    By default applets cannot read local media (like the hard drive). You can get around that by signing the applet and having the user permit signed applets to read local media (which may or may not be the default; I don't know).
    A possibly better solution is to rework your applet so it either comes bundled with the XML file (say, in the jar file it's deployed in), or have it retrieve the XML from the server it came from. Both of these solutions do not require signing the applet or having the user give special permission.

  • File does not exist: /www/public_html/null, referer:  - error in log file from IE8 and IE9

    I just updated an existing slide show that was created several months back. Since loading my new set of files to our web server, we keep getting the following error in our server log files when someone loads our page in IE8 and IE9:
    File does not exist: /www/public_html/null, referer:
    One of our programmers tracked the error to this line of code, but we're not sure what's causing it:
    Muse.Utils.addSelectorFn('#slideshowu70', function(elem) { new WebPro.Widget.ContentSlideShow(elem, {autoPlay:true,displayInterval:6000,slideLinkStopsSlideShow:false,transitionStyle:'horizo ntal',lightboxEnabled_runtime:false,shuffle:false}); });/* #slideshowu70 */
    Any suggestions?
    Thanks!

    The errors aren't showing up on the client side, only in the server access logs. Every time the page is loaded with IE8 or IE9 and the Muse.Utils.addSelectorFn with the #slideshowu70 line is hit, it generates four errors in the server access logs.
    Our admin guy pulled the errors from where it was clicked on from the Adobe forum. He said it also appeared that you tested it with www added to the url (if this was when you were testing it)...
    [Mon Feb 04 13:58:57 2013] [error] [client 121.242.198.2] File does not exist: /www/public_html/null, referer:http://stingrayboats.com/
    [Mon Feb 04 13:59:00 2013] [error] [client 121.242.198.2] File does not exist: /www/public_html/null, referer:http://stingrayboats.com/
    [Mon Feb 04 13:59:08 2013] [error] [client 121.242.198.2] File does not exist: /www/public_html/null, referer:http://stingrayboats.com/
    [Mon Feb 04 13:59:33 2013] [error] [client 121.242.198.2] File does not exist: /www/public_html/null, referer:http://www.stingrayboats.com/
    [Mon Feb 04 13:59:43 2013] [error] [client 121.242.198.2] File does not exist: /www/public_html/null, referer:http://www.stingrayboats.com/
    The reason we find it strange is because it did not result in errors with the previous version of the slideshow. The only thing that changed this time around is that I removed some slides and added additional ones, but I noticed that there is a lot of difference in the code and even the scripts that are used. And I did copy over all of the scripts, css files, etc., so it's using all of the new source files.
    I was hoping it was something that you guys had noticed if you review the access logs when you're testing. While it works perfectly on the client side, the IT guys do go through our access logs, so it would be nice to eliminate the errors.
    Thanks for looking at it!

  • Load file does not exist

    We have several users using OLS V4.2 on one of our citrix servers. However, one of our users can upload an excel sheet into OLS. She always gets the error :
    Package Result = Error]
    Package:                     Import excel V2
    Appset:                      Blagden
    Application:                 SALES
    Request Time:                2009-04-14 16:56:18
    Start   Time:                2009-04-14 16:56:18
    End     Time:                2009-04-14 16:56:18
    Total   Time:                00:00:00
    TOTAL STEPS  8
    1. Assign initial parameters:        completed  in 0 sec.
    2. Create Temp Table:                completed  in 0 sec.
    3. Transform Data Task1:             completed  in 0 sec.
    4. update:                           completed  in 0 sec.
    5. update rejected:                  completed  in 0 sec.
    6. Transform Data Task2:             completed  in 0 sec.
    7. Convert data:                     completed  in 0 sec.
    8. Load and process:                 Failed  in 0 sec.
    [Selection]
    XLFILE= DATAMANAGER\DATAFILES\FL_sales reporting outlooksoft_FL1_FL3_A2009_03.xls
    SHEET=TOTAL
    TRANSFORMATION= DATAMANGER\TRANSFORMATIONFILES\my Files\import historical data.xls
    CLEARDATA= No
    RUNLOGIC= Yes
    [Messages]
    [ The load file does not exist ]
    I deleted the user from the userlist and reprocessed security. I added the user again in the admin group and reporcessed user security. Same error.
    When the user logs on on citrix using her profile  and starts Webexcel using my profile - no problem.
    My profile has administrator rights and she may not have them. So I really want her into the usergroup.
    We renamed the file to upload to a file with 8 characters - same problem.
    Anyone any experience with this error and how to solve it ?
    Thanks for your reply.
    Johan

    Hello,
        From what I understand from your log file, this is a custom import package. It is failing into the last step, loading data into the cube and it seems there is no file to be loaded. If the same package is working well for the other users, this means that the user has not enough security rights to load data from that file (maybe the file contains data for which the user is not authorized to see).
       To understand better what is happening, just try to activate the debug using the DEBUG(ON) instruction into EvModifyPackage. This will create more information regarding the parameters passed to your tasks and you will be able to identify the file name passed to Dump&Load task.
    You can verify then into Private publication\user name\Temp files the content of file (and the content of all temporary files generated by your package) and this will help you to understand where is the problem.
    Hope this can help you,
    Mihaela

  • WebPartPagesWebService.GetWebPartProperties gives The file is not available. Either the file does not exist or it cannot be edited from its current location.

    Hi,
        I am trying to get all web parts from our sharepoint site by calling web service method GetWebPartProperties of WebPartsPages service. The method works fine for the root page (Home Page) but for pages in sub site i get this in the xml
    node, Outer XML - <WebParts xmlns="http://microsoft.com/sharepoint/webpartpages"><!--The file is not available. Either the file does not exist or it cannot be edited from its current location.--></WebParts>. I am struck here.
    Please help me understand why i am getting this?
    Regards,
    Kalim

    Hi,
    We can do as follows:
    1. Mark sure the page URL is correct.
    2. Check whether current user has permission to access  the page.
    3. Use SPServices to get web part properties.
    http://spservices.codeplex.com/wikipage?title=WebPartPages
    Best Regards
    Dennis Guo
    TechNet Community Support

  • ITunes 9.2 XML file does NOT contain any iBooks information

    I have a little script that I have that generates a webpage to list what is in my iTunes library. I noticed that the XML file does not contain ANY information about iBooks or PDFs that you import. Any idea why that is? If my main library file gets corrupt, and I have to use the XML file to rebuild, I would lose all the iBook information....
    Seems like a oversight by the iTunes people

    why did Apple even make an XML file in the first place as initially most things in iTunes (following your logic) would be purchases from the iTunes store.
    Incorrect. The existence and use of iTunes significantly predates the existence of the iTunes Store. iTunes was initially designed to get its content from CDs. The XML file was for use by other apps such as iMovie or third-party apps to have access to the iTunes library so as to be able to locate tracks and playlists for use in the app.
    Anyway, I'm not interested in arguing with you about the matter.
    Apple, plus put iBooks stuff in the XML file!
    http://www.apple.com/feedback

  • This XML file does not appear to have any style information associated with

    Hi All,
    I have IDOC to XML file scenario.
    In SXMB_MONI, it showed the message processed successfully (checkered flag).
    I open the payload in the target, I'm able to see the XML format without error.
    then I checked in RWB the overall status is successful.
    But when I checked the detail (message content) I got the following message:
    "This XML file does not appear to have any style information associated with it".
    So physical file created is like corrupted.
    If using XML marker to open the file it show warning "Invalid Unicode Sequence".
    The thing is when rerun the whole interface again, which is mean the same idoc send from the source, the file created successfully. Sometimes need to rerun twice or more than that to get the file.
    Anyone has idea on what is wrong here?
    Thanks,
    Victor.

    Hi Baskar,
    Thanks for your reply.
    It's PI 7.0.
    Overall status is successful but when I go to RWB to check the message content i got the error message above.
    Target system is only normal FTPS server.
    XML file is created as well but it's showing error when we open it.
    The weird thing is without fixing anything if we rerun the same interface with same set of data sometimes the error is gone by itself.
    Thanks,
    Victor.

  • I keep getting the message This XML file does not appear to have any style information axxociated with it. The document tree is shown below Is this a serious problem?

    My daughter and i use same computer she uses firefox and recently we have noticed on facebook apps we get the message This XML file does not appear to have any style information axxociated with it. The document tree is shown below

    Clear the cache and the cookies from sites that cause problems.
    * "Clear the Cache": Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    * "Remove the Cookies" from sites causing problems: Tools > Options > Privacy > Cookies: "Show Cookies"
    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Appearance/Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]

  • I keep getting "This XML file does not appear to have any style information associated with it."

    I keep getting a message that reads "This XML file does not appear to have any style information associated with it. The document tree is shown below." when I try to view certain images with the document tree reading something like this:
    <Error>
    <Code>AccessDenied</Code>
    <Message>Access Denied</Message>
    <RequestId>BCC4C0545EAAB7AE</RequestId><HostId>3LxcI9VY5wksYdmblAgu2dYu9ZfkLVZJWYhDtoIdRIE4HyARxC+ogJXkApL6U+tT</HostId>
    </Error>
    I tried updating Firefox and that didn't work. All I could find was that it could be a proxy thing, but I'm set to "no proxy" in my network settings so I'm stumped.

    You can try these steps in case of issues with web pages:
    You can reload web page(s) and bypass the cache to refresh possibly outdated or corrupted files.
    *Hold down the Shift key and left-click the Reload button
    *Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
    *Press "Command + Shift + R" (Mac)
    Clear the cache and remove cookies only from websites that cause problems.
    "Clear the Cache":
    *Firefox/Tools > Options > Advanced > Network > Cached Web Content: "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Firefox/Tools > Options > Privacy > "Use custom settings for history" > Cookies: "Show Cookies"
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem.
    *Switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance
    *Do NOT click the Reset button on the Safe Mode start window
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

Maybe you are looking for

  • 2.1 Upgrade causes Pandora app to crash and then iTunes

    After listening to Pandora for about 30 minutes, it started to switch back and forth to unrelated songs on iTunes. Finally, iTunes seemed to take over, and then it shuttles through all my songs, playing a few seconds of each, no matter what I do with

  • Message "Lost" in a JMS adapter.

    hi to all, i need to connect XI to IBM Websphere MQ, using JMS adapter. I did it well, i can exchange the message perfectly, but i have a strange behavior when websphere send message(XML) on queue with same_msgId for all message. In this case i recei

  • Order Settlement Problems

    Hello Experts I had settled many Production and Process Orders for July Month End but I did it directly without running the variance calculations (KKS1). I found that many orders did not get settled in this process. Did this happen because I did not

  • TS1398 GPRS problem did not work in the iPad 2 after the update to version 5.1.1

    I update my iPad 2 WIFI  for the issuance and after the update 5.1.1 and found a problem that GPRS does not work I tried but without much interest please help in solving it, or the way back to the old version 4.3.3

  • Two customs Invoices for a single PO item

    Hi,   For a Purchase Order line item we have already posted a custom invoice and goods receipt done for partial qty. The Customs invoice was also done for Partial qty. Now the second consignment is arrived and we want to post the custome invoice for