XML to Browser not a File

Hi gurus,
I need your help, I am generating a XML (site map) for SEO of my apex app.
I was reading http://www.apexninjas.com/blog/f?p=100:1:0::::P1_ARTICLE:1940
This is my procedure for generate XML
create or replace PROCEDURE SITEMAP
IS
v_xml blob;
BEGIN
SELECT
XMLElement("urlset",
XMLAttributes('http://www.sitemaps.org/schemas/sitemap/0.9' as "xmlns",
'http://www.w3.org/2001/XMLSchema-instance' as "xmlns:xsi",
'http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd' as "xsi:schemaLocation"
XMLAgg(
XMLElement("url",
XMLElement("loc", 'http://myname.co/a/f?p=URL:1:0'),
XMLElement("lastmod", '2012-02-11' ),
XMLElement("changefreq",'daily'),
XMLElement("priority", '1.0'))
) .getblobval(nls_charset_id('AL32UTF8')) INTO v_xml
from dual;
owa_util.mime_header('text/xml',FALSE);
--htp.prn('Content-Disposition: attachment; filename="sitemap.xml"');
owa_util.http_header_close;
wpg_docload.download_file(v_xml);
dbms_lob.freetemporary(v_xml);
end sitemap;
and dont work
this is the error
This page contains the following errors:
error on line 10 at column 1: Extra content at the end of the document
Below is a rendering of the page up to the first error.
http://myname.co/a/f?p=URL:1:0 2012-02-11 daily 1.0
If I remove the comment --htp.prn('Content-Disposition: attachment; filename="sitemap.xml"');
it works, but generating a file xml and I need is show xml content in a browser.
Linux 6.1
APEX 4.1
Oracle SE ONE
Thanks and excuseme my English.
Oscar

Thanks Roel for your answer.
I dont use IE.
I do it but
Continue error
This page contains the following errors:
error on line 10 at column 1: Extra content at the end of the document
Below is a rendering of the page up to the first error.
http://mysite.cof?p=URL:1:0 2012-02-11 daily 1.0

Similar Messages

  • Applet within browser not releasing file resource

    hi,
    I have an applet for ftp images upload.
    run from eclipse IDE (which uses applet viewer) the applet is ok.
    if i run my applet from browser here is what happens:
    i upload a file .& leave the browser opened.
    i then open this same file with gimp or photo-shop & get file in use error.
    if i close browser & try opening file .it works ok.
    why the file isn't released when applet instance still on browser ?
    is there a fix to this issue ?
    thanks for helping .

    thanks for prompt reply.
    yes i close all streams...
    the core method i use to upload files is below (client is a FTPClient object)
    private synchronized void putFile(File file, String remoteFile)
                   throws FileUploadException {
              String sFile = null;
              try {
                   sFile = r.chomp(remoteFile, '/');
                   client.put(file.getAbsolutePath(), sFile + file.getName());
                   r.numBytes += file.length();
              } catch (Exception e) {
                   //e.printStackTrace();
                   try {
                        retry(file, sFile);
                   } catch (Exception e1) {
                        throw new FileUploadException(e1.getMessage());
         }what am i doing wrong ?

  • Local Test site will not transfer files to prview in browser

    I designed a web site in DW the remote site works/views correctly, but the local testing site index page will not preview below the header in any browser with the files it need to view corrrectly. 
    I am working on a mac 10.6.8 using DW 5.5. I had my local testing server working correctly viewing these files from a browser for about 1.5 year then it stopped working and stopped transfering some files from the index page.
    The activity report lists all the files that were not transferred.
    and this report;
    File activity incomplete. 2 file(s) or folder(s) were not completed.
    Files updated: 2
    Files skipped: 20

    Just to clarify, you have defined a Local Testing Server in Dreamweaver.
    What are the setup details for your testing server?
    You have installed either MAMPP, XAMP or WAMP  on your computer.
    Are you sure your server is running?
    Does your index page contain valid code?
    Code Validation Tools
    CSS - http://jigsaw.w3.org/css-validator/
    HTML - http://validator.w3.org/
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • Firefox crashes continually. Now I'm getting this error and cannot open firefox at all: XML Parsing Error: not well-formed Location: chrome://browser/content/browser.xul Line Number 1068, Column 87:

    SInce the latest update Firefox has crashed continually for about two weeks now. Continually means at least 10 times a day. Now it does not open at all and I get this message when launching Firefox:
    XML Parsing Error: not well-formed Location: chrome://browser/content/browser.xul Line Number 1068, Column 87:

    SInce the latest update Firefox has crashed continually for about two weeks now. Continually means at least 10 times a day. Now it does not open at all and I get this message when launching Firefox:
    XML Parsing Error: not well-formed Location: chrome://browser/content/browser.xul Line Number 1068, Column 87:

  • Create Business Partner from XMl String not a file

    Hi,
    Is it possible to create a BP from an XML string. 
    I know about GetBusinessPartnerFromXml(string FileName, int index)
    but I dont want to save the string in a file before creating a BP from it
    Hope there's a method to do that

    Marc,
    This looks like it is a duplicate of this post, so I am closing this thread as it looks like you answered your own question!
    Create Business Partner from XMl String not a file
    Eddy

  • Browser links return "Could not load file/URL specified:"

    The JWS application manager works great, but the links in my browser return an error saying "Could not load file/URL specified:" followed by the path to my temporary internet files. Why does JWS, through my browser, always look to my temporary internet files? I go to the demo page at http://java.sun.com/products/javawebstart/demos.html and any link there returns the same error. The JWS app manager will download and run the demo's just fine, which makes me think there is something wrong with my browser. I am running the following:
    JWS 1.2
    JRE 1.4.1
    IE 5.50
    Any help at all would be greatly appreciated.

    often your browser cache may get corrupted for certain sites/pages... your best bet is to clear your cache and try again... you could also change the settings for how long to keep your cache before re-loading as fresh... :-) it's a shame that this happens, but other than what i have suggested, i don't know any other work-arounds...

  • "scrips : chrome://browser/content/tabbrowser.xml:1628" have not responding

    Sometimes when I closed tab firefox report "scrips : chrome://browser/content/tabbrowser.xml:1628" have not responding.Then I have 2 choice stop it or continue when I have choosed continue It is crash or I have choosed stop it. Its working not crash but I can't closed tabs.

    Uygulama temelleri
    Adı
    Firefox
    Sürüm
    9.0.1
    Kullanıcı aracı
    Mozilla/5.0 (Windows NT 6.1; WOW64; rv:9.0.1) Gecko/20100101 Firefox/9.0.1
    Kimlik dizini
    Bulunduğu dizini aç
    Devredeki yan uygulamalar
    about:plugins
    Yapılandırma
    about:buildconfig
    Crash Reports
    about:crashes
    Memory Use
    about:memory
    Eklentiler
    Adı
    Sürüm
    Devrede
    Kimlik
    Adblock Plus
    2.0.3
    true
    {d10d0bf8-f5b5-c8b4-a8b2-2b9879e08c5d}
    Alexa Toolbar
    2.14
    true
    [email protected]
    DownloadHelper
    4.9.8
    true
    {b9db16a4-6edc-47ec-a1f4-b86292ed211d}
    Java Console
    6.0.30
    false
    {CAFEEFAC-0016-0000-0030-ABCDEFFEDCBA}
    Değiştirilen tercihler
    Adı
    Değer
    accessibility.typeaheadfind.flashBar
    0
    browser.places.smartBookmarksVersion
    2
    browser.startup.homepage_override.buildID
    20111220165912
    browser.startup.homepage_override.mstone
    rv:9.0.1
    extensions.lastAppVersion
    9.0.1
    general.useragent.extra.ALX_NS_PH
    AlexaToolbar/alxf-2.14
    network.cookie.prefsMigrated
    true
    places.database.lastMaintenance
    1327252727
    places.history.expiration.transient_current_max_pages
    80508
    places.history.expiration.transient_optimal_database_size
    128811990
    privacy.sanitize.migrateFx3Prefs
    true
    security.warn_viewing_mixed
    false
    Çizimler
    Bağdaştırıcı açıklaması
    ATI Radeon HD 4800 Series
    Satıcı kimliği
    1002
    Aygıt kimliği
    944c
    Bağdaştırıcı RAM
    512
    Bağdaştırıcı sürücüleri
    aticfx64 aticfx64 aticfx64 aticfx32 aticfx32 aticfx32 atiumd64 atidxx64 atidxx64 atiumdag atidxx32 atidxx32 atiumdva atiumd6a atitmm64
    Sürücü sürümü
    8.920.0.0
    Sürücü tarihi
    11-9-2011
    Adapter RAM (GPU #2)
    Unknown
    Adapter Drivers (GPU #2)
    Unknown
    Direct2D etkin
    true
    DirectWrite etkin değil
    true (6.1.7601.17563)
    ClearType Parameters
    ClearType parameters not found
    WebGL çizici
    Google Inc. -- ANGLE (ATI Radeon HD 4800 Series) -- OpenGL ES 2.0 (ANGLE 0.0.0.809)
    Grafik ivmelendirilmiş pencereler
    1/1 Direct3D 10

  • XML parsing error: not well formed Location:file///c:users/

    I have been trying to download tax info from the I.R.S site. When I try to open the downloads I get this error message:
    XML parsing error: not well formed
    Location: file///c:/Users/John/Downloads/available Transcripts.xhtml
    line number 1, Column 9

    Are you sure that this is an XML file and not some other file type like PDF that got saved with the wrong file extension?
    You can try to rename the file and change the file extension to .pdf to see if that works.

  • JSON.parse Response parse failed. I can not open files and JSON.parse Response parse failed. shows up it dosn't happen with I E browser

    JSON.parse Response parse failed.
    I can not open files. And JSON.parse Response parse failed. shows up.
    It doesn't happen when i use the I E browser, so I can't use firefox

    Hi
    I'm trying to make a movie from the JpegImagesToMovie class. But i get a null point exception :(
    java.lang.NullPointerException
         at com.sun.media.multiplexer.video.QuicktimeMux.writeVideoSampleDescription(QuicktimeMux.java:936)
         at com.sun.media.multiplexer.video.QuicktimeMux.writeSTSD(QuicktimeMux.java:925)
         at com.sun.media.multiplexer.video.QuicktimeMux.writeSTBL(QuicktimeMux.java:905)
         at com.sun.media.multiplexer.video.QuicktimeMux.writeMINF(QuicktimeMux.java:806)
         at com.sun.media.multiplexer.video.QuicktimeMux.writeMDIA(QuicktimeMux.java:727)
         at com.sun.media.multiplexer.video.QuicktimeMux.writeTRAK(QuicktimeMux.java:644)
         at com.sun.media.multiplexer.video.QuicktimeMux.writeMOOV(QuicktimeMux.java:582)
         at com.sun.media.multiplexer.video.QuicktimeMux.writeFooter(QuicktimeMux.java:519)
         at com.sun.media.multiplexer.BasicMux.close(BasicMux.java:142)
         at com.sun.media.BasicMuxModule.doClose(BasicMuxModule.java:172)
         at com.sun.media.PlaybackEngine.doClose(PlaybackEngine.java:872)
         at com.sun.media.BasicController.close(BasicController.java:261)
         at com.sun.media.BasicPlayer.doClose(BasicPlayer.java:229)
         at com.sun.media.BasicController.close(BasicController.java:261)
         at movieclear.MovieManager.JpegImagesToMovie.controllerUpdate(JpegImagesToMovie.java:179)
         at com.sun.media.BasicController.dispatchEvent(BasicController.java:1254)
         at com.sun.media.SendEventQueue.processEvent(BasicController.java:1286)
         at com.sun.media.util.ThreadedEventQueue.dispatchEvents(ThreadedEventQueue.java:65)
         at com.sun.media.util.ThreadedEventQueue.run(ThreadedEventQueue.java:92)
    Please please help me out.. I'm totally stuck in this thing. A MOV file is created, but it's a 0kb file.
    Please help me out..
    Sootie.

  • 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.

  • Why Oracle XML parser do not compile this file and Apache does?

    Hi:
    I am trying to parse this xml file:
    http://cvs.apache.org/viewcvs.cgi/xml-cocoon2/documentation/xdocs/userdocs/xsp/logicsheet-concepts.xml?rev=1.2&content-type=text/vnd.viewcvs-markup
    and fails with the tag <anchor id="logicsheet"/>, if I change
    "logicsheet" to "id_lg" it works fine.
    Apache XML parsers do not have this problem.
    Best regards, Marcelo.

    I tried downloading the file and (after removing the DOCTYPE
    since I didn't want to download the whole set of DTD's) it
    parses fine with XDK 9.0.2C
    Which XDK are you using?
    If you remove the <!DOCTYPE> line for a test, does it still fail?

  • After o download the browser ,i get message that says can not open file what do i need to do to download the browser i have tried 5 times get same message

    its the same shit i asked before after i download the browser i get message can not open file what do i do to dwonload the browser

    That message is usually a sign that you tried to roll back to an earlier build of iTunes, but occasionally I've seen it connected to a new upgrade. This technique should fix things.
    Empty/corrupt library after upgrade/crash
    Hopefully it's not been too long since you last upgraded iTunes, in fact if you get an empty/incomplete library immediately after upgrading then with the following steps you shouldn't lose a thing or need to do any further housekeeping. In the Previous iTunes Libraries folder should be a number of dated iTunes Library files. Take the most recent of these and copy it into the iTunes folder. Rename iTunes Library.itl as iTunes Library (Corrupt).itl and then rename the restored file as iTunes Library.itl. Start iTunes. Should all be good, bar any recent additions to or deletions from your library.
    See iTunes Folder Watch for a tool to catch up with any changes since the backup file was created.
    When you get it all working make a backup!
    tt2

  • My new users can not upload files via browse

    Hi there;
    When my recent created users can not download files via the browse within the Internet interface.
    When I hit the via browse I face the following:
    500 Internal Server Error
    oracle.ifs.common.IfsException: IFS-10406: Invalid AttributeValue conversion (DIRECTORYOBJECT to Java DirectoryObject)
    oracle.ifs.common.IfsException: IFS-10200: Unable to access object (insufficient privileges)
    Any hint?
    Sasan Ebadian

    Hi Sasan,
    These are the ACL's of IFS:
    PRIVATE Grants no permissions to any other user. Other users cannot view, modify, or delete a user’s document in any way, unless changed by the owner.
    PROTECTED For folders only. Enables other users to see the files in the folder, add documents and folders to the folder, and remove documents and folders they have created from the folder, but are not allowed to delete the folder itself.
    PUBLIC Allows full access to the item. All users can make any changes that the owner can make.
    PUBLISHED Allows other users to view the contents, but they are not allowed to modify or delete the document.
    If you attach the ACL Public it must work!
    Bob

  • Could not load file/URL (file not found) error for JNLP file

    I am completely baffled in trying to figure out why I am getting the following error for some JNLP files but not others:
    Error: could not load file/URL specified: C:\Users\tom\AppData\Local\Temp\javaws2
    java.io.FileNotFoundException: C:\Users\tom\AppData\Local\Temp\javaws2 (The system cannot find the file specified)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(Unknown Source)
    at java.io.FileInputStream.<init>(Unknown Source)
    at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source)
    at com.sun.javaws.Main.launchApp(Unknown Source)
    at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
    at com.sun.javaws.Main$1.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)I have Googled around this forum and elsewhere, and have seen reports that this error is IE-specific, and seems to have something to do with no-cache headers being sent, or with the client browser's cache being full or turned off (which is not my case). I saw the information in the JavaWS FAQ, which recommended turning off security constraints for the JNLP's URI. I tried that, and it didn't help. One of the very baffling things is that I have created several variations of the JNLP file, with varying combinations of jars and property resources, and some combinations always work while other combinations never work. Here's an example:
    <jnlp spec="1.0+" codebase="$$codebase">
       <information>
          <title>demo app</title>
          <description>illustrates weird bug</description>
       </information>
       <resources>
          <j2se version="1.5+"/>
          <jar href="randomFile.jar"/>
          <property name="xxx" value="xxxx"/>
          <property name="swing.metalTheme" value="steel"/>
       </resources>
    </jnlp>The above file always fails with the error shown at the top of this message. However, if I remove either of the two properties, it works fine. And I have created other variations with lots of properties, some of which work. All of these variations are in the same directory in the war file, served by the exact same servlet (a slightly modified version of the jnlp.sample.servlet.JnlpDownloadServlet provided with JDK 1.6.0_3). Assuming that a no-cache header is the problem, what on earth could be causing some JNLP files to always be served with a no-cache header, while others are never served with a no-cache header?
    On a related note, any recommended debugging techniques for seeing what headers are being transmitted? I tried adding a simple check for a "debug=true" parameter in the servlet that causes it to set the content type to "text/plain" instead of JNLP, and that allows me to see (rather than execute) the JNLP XML that's being returned, but it doesn't show me the HTTP headers that are being sent back. If any caching headers are being set, I think it must be being set by the servlet container itself, as it's nothing being set in the servlet code that I can see. So I don't see any way on the server side Java code to output or log the actual HTTP response (or is there?). Any tips in that regard much appreciated.
    Edited by: TomC125468 on Aug 19, 2009 1:35 PM

    Hi Luca-Sanna,
    Thanks for the response. Re browsers, yes, it fails in IE but it succeeds in Firefox. The info on the JavaWS FAQ and other places all seem to indicate that it's an IE issue concerning handling of the cache-control headers.
    I should check in my webserver forum (Sun WebServer 7) to see about logging options. Sniffing on the client side is not possible, as my app is required to use HTTPS exclusively, and unfortunately that also precludes a telnet GET request.

  • Restoring from backup to new location + not wanting files renamed

    Hi there - I am a newbie to this forum.
    I have a Win XP machine that recently needed to have the hard drive wiped and the OS re-installed. Fortunately I had a recent backup of all my data so I'm in a good starting position for a restore. However I have some questions as the re-install of the OS has had a change in profile name.
    Before my machine was wiped, I had a "Daniel" profile and so my "iTunes Media folder location" was set to C:\Documents and Settings\Daniel\My Documents\My Music.
    After my PC was rebuilt, a new profile was created called "dnl". iTunes has been re-installed (version 10.1.2.17). The first time I launched iTunes the "iTunes Media folder location" was set to C:\Documents and Settings\dnl\My Documents\My Music. I did NOT choose to have iTunes browse/load my files and so currently iTunes shows no files or playlists.
    I have recreated the C:\Documents and Settings\Daniel\My Documents\My Music folder from my backup so all the music files and the previous libraries are presently in this location. However even if I change the "iTunes Media folder location" within iTunes to point to the "old" location, it doesn’t find the files or libraries.
    I have tried deleting the following files from C:\Documents and Settings\dnl\My Documents\My Music\iTunes:
    iTunes Library Extras.itdb
    iTunes Library Genius.itdb
    iTunes Library.itl
    iTunes Music Library.xml
    I did this assuming that the next time iTunes was launched, it would refer to the old location (as specified as my "iTunes Media folder location"), find the old library files there and use them. However it seems to ignore them and simply re-creates the files above in the location I deleted them from.
    So…I am unclear as to the best strategy to have iTunes point back to the old location to find the music files and retain all the playlists I had.
    I found this thread: http://support.apple.com/kb/ht1364. It mentions a method that will find all the files in the old location and move them to the new location, retaining playlists, artwork etc. Once the data has been copied, it advises to delete the files from the original location.
    However I see that it mentions checking the ‘Keep iTunes Media folder organized’ option. From reading other threads I know this to be a source of one very irritating problem – it renames all the file names. I have specifically ripped my music using software other than iTunes for the express purpose of being able to tag the filenames with more specific info than iTunes would. I like the files to named <artist>-<album>-<track no>-<track title>.<file extension> and am not a fan of the very basic filenames that iTunes assigns.
    So…I want to have iTunes simply point back to the old location and not do any file renaming. I am happy enough to have iTunes simply point to a location that isn’t technically part of my current profile. I don’t have a desperate need for the files to be moved to the dnl profile.
    So…I am guessing there has to be some other file (or registry setting?) that knows where best to point to? Can this modified?
    I would be appreciative of any assistance.
    Thanks!

    Hi Daniel, welcome to Apple Discussions.
    The default location for the iTunes library folder is <Profile><Music>iTunes with the media folder at *<Profile>\<Music>\iTunes\iTunes Media*. For XP the <Music> folder is My Documents\My Music.
    When iTunes starts up it looks for a set of library files in the last location it used. If that location is also the default location and it can't find the library files it assumes it has just been installed and creates a new set.
    Changing the location of the *iTunes Media* folder in preferences does not change which set of library files it opens, nor will it automatically detect all the media in that location.
    Ideally you should restore the folder iTunes and all its subfolders from your backup into *C:\Documents and Settings\dnl\My Documents\My Music* and start iTunes. All should work perfectly and, as far as iTunes is concerned, you will be using the same library as you used to. Any iDevices should sync without problems.
    If you media was not is the usual locations or you are unable to restore the entire iTunes folder then things become more complicated. Post back if you still have trouble and I will try to go into more detail.
    tt2

Maybe you are looking for