XSQL file "Invalid at the top level of the document"

I am trying to insert HTML form parameters into database using <xsql:insert-request>. It worked fine except that it displays <xsql-status action="xsql:insert-request" rows="1"/> after it inserts the data into the database. I am trying to follow the insertnewsform example in Steve's book "building oracle xml applications" to return user a thank-you note. Here is my problem:
I have four files:
faqform.html (html form, action=faqfeed.xsql)
faqfeed.xsql
request-to-faq.xsl (used as transform for faqfeed.xsql)
thankyou.xsl (used for returning user a thank-you)
When I submit the html form, I get an error saying:
"The XML page cannot be displayed
Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.
Invalid at the top level of the document. Line 1, Position 43
<?xml version = '1.0' encoding = 'UTF-8'?>"
I didn't put "encoding..." in any of my xsql files, not sure where that came from. When I used faqfeed.xsql?xml-stylesheet=none in the url and it showed up as a well-formed xml file with all the info I need. Here is my faqfeed.xsql and thankyou.xsl
********* faqfeed.xsql ***********
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="thankyou.xsl"?>
<page connection="template" xmlns:xsql="urn:oracle-xsql">
<xsql:insert-request table="faq" transform="request-to-faq.xsl"/>
<xsql:query tag-case="lower" max-rows="5" rowset-element="" row-element="faq">
select * from faq
</xsql:query>
</page>
********* thankyou.xsl **********
<html xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xsl:version="1.0">
<head><title>Thank you!</title></head>
<body>
<h3>Thank you for your faq!</h3>
Your faq has been successfully inserted to the database!
<table>
<xsl:for-each select="page/faq">
<tr>
<td><xsl:value-of select="question"/></td>
<td><xsl:value-of select="answer"/></td>
</tr>
</xsl:for-each>
</table>
</body>
</html>
Anything I am missing here that caused that error? Any hints would be greatly appreciated!
Wenqi
null

Do the XSQL Demos work correctly on your system?
The error you're getting seems like maybe the *.xsql extension is not mapped properly to the oracle.xml.xsql.XSQLServlet class in your servlet engine.

Similar Messages

  • XSQL-001: Cannot locate requested XSQL file. Check the name.

    I downloaded oracle 9i and the latest beta of XDK for Java and
    encountered the following error:
    Oracle XSQL Servlet Page Processor 9.0.2.0.0C (Beta)
    XSQL-001: Cannot locate requested XSQL file. Check the name.
    Since I am using JBuilder5, I configured the bundled Tomcat to
    reference the XSQL Servlet as per the described docbase setting.
    n.b.: I am not running a web or application server at this time.
    Tomcat is my servlet container which I directly connect to from
    my browser.
    I extracted the XDK into the oracle\ora90 folders. I extracted
    XDK to my oracle\ora90 folder, since
    the "bundled" XDK is located there already, and it appeared to
    be lacking the XDK for Java.
    I read the xdkload.bat, and it appeared to be required to
    resolve earlier undefined methods
    issues as per the documentation, so I gambled and ran it. BTW,
    unresolved methods was my initial problem.
    The attached files describe a method not defined error. Not sure
    how to proceed. Thanks.

    I should have added the associated Tomcat trace. Note the
    exception, java.lang.NoSuchMethodError, which is possibly the
    real issue.
    2001-10-21 06:23:07 - ContextManager: Adding context Ctx
    ( /examples )
    2001-10-21 06:23:07 - ContextManager: Adding context Ctx
    ( /admin )
    2001-10-21 06:23:07 - ContextManager: Adding context Ctx( /test )
    2001-10-21 06:23:07 - Ctx( /xsql ): Set debug to 1
    2001-10-21 06:23:07 - ContextManager: Adding context Ctx( /xsql )
    2001-10-21 06:23:07 - ContextManager: Adding context Ctx( )
    2001-10-21 06:23:07 - Ctx( /xsql ): XmlReader - init /xsql
    E:\oracle\ora90\xdk\demo\java\xsql
    2001-10-21 06:23:07 - Ctx( /xsql ): Reading E:\oracle\ora90
    \xdk\demo\java\xsql\WEB-INF\web.xml
    2001-10-21 06:23:07 - Ctx( /xsql ): Loading -2147483646 jsp
    2001-10-21 06:23:08 - PoolTcpConnector: Starting
    HttpConnectionHandler on 8080
    2001-10-21 06:23:08 - PoolTcpConnector: Starting
    Ajp12ConnectionHandler on 8007
    2001-10-21 06:31:37 - Ctx( /xsql ): Exception in: R( /xsql
    + /fly/index.xsql + null) - java.lang.NoSuchMethodError
         at oracle.xml.xsql.XSQLConfigManager.reloadConfigFile
    (XSQLConfigManager.java:480)
         at
    oracle.xml.xsql.XSQLConfigManager.insureConfigurationIsLoaded
    (XSQLConfigManager.java:190)
         at oracle.xml.xsql.XSQLPageManager.getPage
    (XSQLPageManager.java:73)
         at oracle.xml.xsql.XSQLPageRequestImpl.getXSQLPage
    (XSQLPageRequestImpl.java:454)
         at oracle.xml.xsql.XSQLPageProcessor.process
    (XSQLPageProcessor.java:85)
         at oracle.xml.xsql.XSQLServlet.doGet(XSQLServlet.java:60)
         at javax.servlet.http.HttpServlet.service
    (HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service
    (HttpServlet.java:853)
         at org.apache.tomcat.core.ServletWrapper.doService
    (ServletWrapper.java:404)
         at org.apache.tomcat.core.Handler.service
    (Handler.java:286)
         at org.apache.tomcat.core.ServletWrapper.service
    (ServletWrapper.java:372)
         at org.apache.tomcat.core.ContextManager.internalService
    (ContextManager.java:797)
         at org.apache.tomcat.core.ContextManager.service
    (ContextManager.java:743)
         at
    org.apache.tomcat.service.http.HttpConnectionHandler.processConne
    ction(HttpConnectionHandler.java:210)
         at org.apache.tomcat.service.TcpWorkerThread.runIt
    (PoolTcpEndpoint.java:416)
         at org.apache.tomcat.util.ThreadPool$ControlRunnable.run
    (ThreadPool.java:498)
         at java.lang.Thread.run(Thread.java:484)

  • I have to print two labels using single XML file.Error:Only one top level e

    Hi,
    I have to print two labels using single XML file. But its giving error:
    [Error] Error -1072896683 - Line: 38 Pos: 2 Error: Only one top level element is allowed in an XML document.
    Below is my XMl file:
    <?xml version="1.0" encoding="UTF-8" ?>
    <!DOCTYPE labels SYSTEM "label.dtd">
    <labels FORMAT="lib://FRD/PurchasedDoor.btw"  PRINTERNAME="IBM 6700-R80 (300 dpi)" _QUANTITY="1">
    <label>
    <variable name= "Color">AUTUMN</variable>
    <variable name= "Special_Message_Attribute">MSG*</variable>
    <variable name= "Special_Message">This is special Message Label</variable>
    <variable name= "Model"></variable>
    <variable name= "Build_Date">09-APR-12</variable>
    <variable name= "Assy_Cart"></variable>
    <variable name= "Assy_Slot"></variable>
    <variable name= "Finish_Cart"></variable>
    <variable name= "Finish_Slot"></variable>
    <variable name= "Serial_Number">1945.1.1.2-1</variable>
    <variable name= "Serial_Number_Barcode">1945.1.1.2-1</variable>
    <variable name= "Specie">BIRCH</variable>
    <variable name= "Truck_Group"></variable>
    <variable name= "Label_Sequence_No">1</variable>
    <variable name= "WIP_Cart"></variable>
    <variable name= "WIP_Slot"></variable>
    <variable name= "Cabinet_Sequence_No">110</variable>
    <variable name= "JC"></variable>
    <variable name= "Thickness"> </variable>
    <variable name= "Width"> </variable>
    <variable name= "Length"> </variable>
    <variable name= "Overlay"></variable>
    <variable name= "Options">B30</variable>
    <variable name= "Profile_No"></variable>
    <variable name= "Door_Style">NEWBERRY</variable>
    <variable name= "Glaze"></variable>
    <variable name= "Shape"></variable>
    <variable name= "Glass"></variable>
    <variable name= "Hinge_Side"></variable>
    <variable name= "Hinge_Type"></variable>
    <variable name= "EGE"></variable>
    </label>
    <labels FORMAT="lib://FRD/SpecialMessage.btw"  PRINTERNAME="IBM 6700-R80 (300 dpi)" _QUANTITY="1">
    <label>
    <variable name= "Serial_Number">1945.1.1.2-1</variable>
    <variable name= "Special_Message">This is special Message Label</variable>
    <variable name= "Cabinet_Sequence_No">110</variable>
    </label>
    </labels>
    Please suggest.

    >
    XML can only have one root element per file.
    >
    from XML Document: The Root Element

  • Get File Information using the Document ID in Javascript

    I store in a custom list the Document Id of a linked document. I need to retrieve some metadata - at least the filename - of that document. I have tried using the Search REST API specifying something like "DocID:INGX1-2-26" in my search query,
    but nothing is returned, nothing found.
    Is there any other way to get the file info when all I have is the Document ID? In the managed code, I could use the Microsoft.Office.DocumentManagement.dll which provides a way to get the file info using the DocId, but this is not available in Javascript.
    Any ideas?
    thanks.

    Hi,
    As a workaround, we can create a custom web service with the Microsoft.Office.DocumentManagement.dll, then you can call the web service using JavaScript.
    Here are some links about Building and Consuming Custom WCF Services hosted in SharePoint for your reference:
    http://nikpatel.net/2012/02/29/step-by-step-building-custom-wcf-services-hosted-in-sharepoint-part-i/
    http://www.c-sharpcorner.com/uploadfile/sridhar_subra/consuming-wcf-asmx-rest-service-using-jquery/
    http://leonidius2010.wordpress.com/2011/05/06/custom-web-service-for-sharepoint-an-easy-way/
    Thanks
    Patrick Liang
    Forum Support
    Please remember to mark the replies as answers if they
    help and unmark them if they provide no help. If you have feedback for TechNet
    Subscriber Support, contact [email protected]
    Patrick Liang
    TechNet Community Support

  • Specify file name of the document returned on the HTTP post

    Hello,
    we are submitting a PDF form by calling submitForm function:
    doc.submitForm
            cURL: "http://localhost/script",
            cSubmitAs: "XML"
    The server returnes data of type "Content-type: application/pdf" and as a result this aplication/pdf data is displayed in a new window in Acrobat Reader.
    The document in new window has name e.g. A9R3347.tmp, is it possible to force some concrete name ?
    We tried to send from server the http header:
    Content-Disposition: attachment; filename=\"custom_name.pdf\"
    or   
    Content-Type: application/pdf;         filename=custom_name.pdf
    but non of this works.
    1/ is it possible to set some custom name of the document, which is returned from a server in response of HTTP Post submit ?
    2/ is it possible to return other kind of data then application/pdf ? ( my tests with AR 9.3 with other formats failed).
    Thanks for any advice.

    See Oracle Metalink,
    ..Oracle Portal Technical Forum,
    ....Subject: PORTAL - uploading files (file attachments) with file names.
    This message thread outlines javascript code that automatically captures the filename during an upload.

  • Getting Canon 4770 to scan multipages into a PDF file while using the document feeder

    Hi All
    I'm new to this forum.  So if I break any rules with my questions below, kindly forgive me.
    But my questions are about my Canon MF4770 printer.
    1.  Why can't I used the document feeder to scan multiple pages into one PDF file?
    2.  Why do I have to constantly select the remote scanner option when the printer is connected to my computer?
    Any help I can get will be very appreciated.
    Starlene

    Hi Starlene and welcome to the Canon forum,
    The ability to scan multi-page documents can depend on your operating system and version, and if the scanning software being used supports the feature.  However, the MF Toolbox application that accompanies your laser product offers this option when scanning via a USB connection to your computer.
    For example, if you are using Windows, below are the steps that would be performed:
    1.  Place documents.
    Note: Up to 35 documents can be loaded in the feeder.  Be sure to fan the stack, place it face up, and align the document guides to the width of document.
    2. Press [SCAN].
    3. Press [^] or [v] to highlight <Remote Scanner>, and then press [OK].
    The machine is now waiting to be scanned.
    4. Double-click the [Canon MF Toolbox 4.9] icon on the desktop.
    The MF Toolbox starts.
    5. Click [PDF].
    Select [PDF (Multiple Pages)] in [Save as Type].
    7. Specify the required settings as needed and click [PDF Settings].
    The [PDF Settings] dialog box appears.
    8. Specify the required settings as needed and click [OK]:
    [Create Searchable PDF] Converts the characters in the document to text data and makes the PDF document searchable with keywords.
    [Text Language] Select the language of the text to be scanned. The characters may be recognized more accurately if you select [English] from the drop-down list and set [Image Quality] to [300 dpi] or higher in [Scanner Settings].
    [PDF Compression] Select [High] for color images such as photos or illustrations to reduce file sizes.
    9. Click [Start].
    Note:
    A folder with the scanning date will be created in the [MY PICTURES] folder in the [MY DOCUMENTS] folder, and your document will be saved in this folder. If there is no [MY PICTURES] folder, the folder with the scanning date will be created in the [MY DOCUMENTS] folder and your document saved in this folder.
    For text documents or black-and-white documents, it is recommended you select either [BLACK and WHITE] or [GRAYSCALE] in [SCAN MODE].
    If making a Multiple PDF with color documents ([IMAGE QUALITY] set to [300 dpi]), it is recommended that the PDF have fewer than 20 pages.
    The MF toolbox can be loaded from your software CD or downloaded here from the "Drivers & Software" tab on the Canon USA website.
    I can understand some confusion on having to select "Remote Scanner" when you have a direct computer connection to your product.  The reason for this is that first, the "Remote Scanner" mode refers to seeing your computer as a stand alone, or remote, device; however, the "Computer" scanning mode option allows you to select which computer will be performing a scan when doing so over a network (Max: up to 10 computers).
    Another reason for having to select the scan mode is that the selection is not programmed but selected based on the type of scan you will be performing at the time.
    If this does not answer your questions or we can offer further assistance, please feel free to Contact Us.
    Did this answer your question? Please click the Accept as Solution button so that others may find the answer as well.

  • Lower .swf file affecting mouse on top level .swf

    I have a zooming map .swf file loading in behind a navigation button interface .swf. The map.swf turns your mouse to a hand cursor so you can pan when you zoom in on it.
    Eveb though the map file is behind my nav file,when I roll over my nav file, the mouse is still turning to a hand cursor. Is there any way around this? The only time it turns to an actually pointer is when it rolls over the actual buttons on the nav file, so the mouse flickers back and forth between the hand and the pointer.
    How can I get the lower .swf to not effect the .swf on top?
    Any suggestions?

    You're welcome... mark this as answered if you still can
    The movieclip should have worked, but you need to place the code on the timeline to code a movieclip to work with a mouse.  A button will serve the same purpose without any code.

  • TS2039 After saving an Excel document on my Mac ( I do have Office Mac), it will not reopen and gives error code -43. It will also say that there is no such file, although the file is in the document box. Has happened twice now with big files.

    I work on Excel files through my Office Mac program. On two occasions, a large Excel file, (about 1.5 MB) will not save and is not recoverable. It gives me an error code -43.
    I work on many such files without problem, but this has now happened on two occasions with important files.

    If it only happens with very large spread sheets, and only happens randomly, then one possibility is a buffer overflow, i.e., some piece of data is so large as to clobber the data that follows it.  If that is the case then the problem would only manifest itself if (a) you happen to access that data, (b) write beyond its allocation, and (c) what's just beyond that gets clobbered is something involved with the file's pathname.  Then when the pathname is needed it can't be found resulting in the -43.
    In other words, more "quality" programming from Microsoft...not.
    Just a theory.

  • "AdobeFnt13.lst" file missing in the document fonts folder

    Hello,
    I have a bug with Indesign CS5, the "AdobeFnt13.lst" file is now missing in my document fonts folders, even after reinstall of ID.
    I deleted the Preferences folder, font cache etc. nothing works so far.
    An idea someone ?

    YES !
    It's solved now.
    In fact I had a bug with the colour panel a week before this problem and I reinstalled ID a first time (back to the 7.0 version).
    I didn't know about this patch.
    Thank you very much !

  • How can I save an indd file as an idml file without opening the document?

    I cannot open an InDesign file that was made in a later version of InDesign because I don't have the right plugins. How can I convert this indd file to an idml file without opening it?

    Well..... sort of depends on your version.
    If you have any version as part of CC subscription, the latest updates are supposed to be using a cloud-based service to generate the IDML for you so that you can open the newer files seamlessly.

  • I am having trouble saving a document. I go to file, save, name the document and when i enter i receive a message "the file "untitled" couldn't be opened. What am I doing wrong?

    Is this the only way to save a document in pages 5?

    The solution to this was given by Kreklo in 2 posts in the following thread:
    https://discussions.apple.com/message/19175531#19175531
    Good luck!

  • To retrieve the PRT document (a PDF file) and insert the doc in PM order

    Hello guys,
    I have a challenging task in from printing as follows,
    By using TC: IW3D we get print preview of PM Order Set (PM Print Program: YIPRJT01), currently the PRT document number prints in the PM Order. Now we have to insert the PRT documents (a PDF file) into the PM Order set rather than printing the PRT document number ( By using TC: IW33 by going OPERTIONAL TAB we will get the PRT document(a PDF file))
    The requirement is to retrieve the PRT document (a PDF file) and insert the document in PM  order set with out navigating separately by using the TC: IW33.
    If you run the script in the print preview we can able to see PM the order set along with the PRT document (a PDF file).
    Thanks & Regards
    Vishnu

    I'm also trying to print PRT document with shop papers and still not able to do so. I selected "P" for print on the control key and it should print but still didn't print.
    If I understand it right, I think you are trying to do the same.
    Have you resolved this issue ?
    Thank you,
    Sam

  • How to import a XML file into the document?

    Hai,
    i had created a table using xml file....
    Now i want to import that xml file tabel into the document...
    Can any one tell me how to import the xml file into the document?
    thanks
    senthil

    Hai...
    this is senthil...
    i'm beginner for creating adobe indesign plugins..
    i want to import a html file in the document...
    i want to create a table by using html tags and
    that table will be imported into the document..
    How shall i do it?
    can any one plzz explain me?

  • When viewing documents on a Web Server, IE automatically opens a blank page and then opens the document in the default program. The blank screen should close automatically but isn't happening.

    So here is the situation, my company uses a third party scanning software, that puts documents scanned or created onto a webserver. We use a program that grants a user access to view the documents on the webserver. The user will have to log into the system
    using credentials, we have Kerberos doing this. Once the user is logged onto the system they navigate to the document they want to view or edit. So the user wants to view a .pdf file, they click the document they want, and it is supposed to open in the default
    program associated with file extension. ie: .doc would open Word, .xls would open Excel. When the document is loading in the default program Internet Explorer opens a blank page, this page is supposed to prompt the user if they want to open or save the document.
    (I changed the registry to have the files selected to automatically open without this prompt.) The blank screen generated is still staying open, this screen is supposed to close automatically after the prompt or close automatically after the document is opened.
    So when a user is looking at several documents, this floods the screen with all these blank Internet Explorer pages. This problem is only occurring for users that have Windows 7 PC's, XP users do not have this problem at all. My PC is the only one in the company
    that is Windows 7 64-bit, and working properly with the IE blank page automatically closing. I'm wondering what can be done to fix this problem, is it as simple as registering some .dll files or do I need to make a registry change? Any help would greatly be
    appreciated.

    What is the registry change exactly?  Sounds like one which is supposed to avoid the prompt.  I know
    that there used to be such a thing, before the new prompt and I know that some users think that there should be such a thing for any program but I'm not sure if that expectation is valid or not.  I think this may also be related to a concurrent change
    in the OS.  E.g. in XP we had File Types Options editor but starting in Vista that was removed.  You might get some more clues on this tack from NirSoft's FileTypesMan utility.
    The registry change that I did was to remove the open and save prompt. I will be sure to look into that. Our company
    isn't worried about the user's automatically opening the files since they are all trusted. They also do not have the ability to install anything, so if they were to download a potentially harmful file they could never install it. We monitor downloads as well,
    if they download files off the internet that aren't work related we remove their download capabilities.
    Sounds like a scenario for using ProcMon to take two traces and compare them for their essential differences.
    I talked to my boss about using this tool and he is worried about using it. I'm only an intern at my office and do not have the authority to use a program without their knowledge or consent. I will run the idea by them again and see if it's okay I use this.
    I'll maybe make some presentation about how it can help us with our problem and how much time and money it will save. Because I really want to get down to the bottom of this.
    Probably the most significant thing is going to be the Content-type that the files are being served by. 
    You could use the Developer Tools, Network Capture to check on that and ProcMon could help explain what happens after that.  A related workaround to change the symptom when the Content-type is not what is expected is to disable MIME Sniffing (e.g. in
    Security options, Miscellaneous section).  In fact, perhaps that could explain your machine's difference with anyone else?  MIME Sniffing is a default, previously known as "save according to type not extension" (or some such wording).
    Okay I will be completely honest I have no idea how to use Developer Tools (F12), yes I could google it, when I tried using it on the blank pages it would never work, I also have no idea what I'm looking at. I should mention that I do not have access to
    the web server. Our programming and development side only has access to our AS400, which is where the web server is located. I do have MIME Sniffing enabled and so does everyone else. I may be wrong but, I believe it is needed in order to open the file extension
    in the correct default program, yes? I thought MIME Sniffing would see a .docx file and then find the appropriate program to open that .docx file in. I may be wrong but I know it's used somehow along these lines.

  • NFS client problem "The document X could not be saved"

    Hi,
    Briefly: Debian Linux server (Lenny), OS X 10.5.7 client. NFS server config is simple enough:
    /global 192.168.72.0/255.255.255.0(rw,rootsquash,sync,insecure,no_subtreecheck)
    This works well without our Linux clients, and generally it is Ok with my OS X iMac. OS X NFS client is configured through Directory Utility, with no "Advanced" options. Client can authenticate with NIS nicely, and NFS, on the whole, works. I can manipulate files with Finder, and create files on the commandline with the usual tools.
    The problem is TextEdit, iWork and other Cocoa apps (not all). They can save a file once, but subsequently saving a file produces a "The document X.txt cannot be saved" error dialog. If I remove the file on the commandline and re-save, then the save succeeds. It is as if re-saving the document with the same name as an existing file causes issues. There seems to be no problem with file permissions. When I save in a non NFS exported directory everything is fine.
    Has anyone spotted this problem before?
    Lawrence

    I doubt that "OS X NFS is fundamentally broken" seeing as how many people use it successfully.
    tcpdump (or more preferably: wireshark) might be useful in tracking down what's happening between the NFS client and NFS server. Sometimes utilities like fs_usage can be useful in tracking down the application/filesystem interaction.
    It's usually a good idea to check the logs (e.g. /var/log/system.log) for possible clues in case an error/warning is getting logged around the same time as the failure. And if you can't reproduce the problem from the command line, then that can be a good indication that the issue is with the higher layers of the system.
    Oh, and if you think there's a bug in the OS, it never hurts to officially tell Apple that via a bug report:
    http://developer.apple.com/bugreporter/
    Even if it isn't a bug, they should still be able to work with you to help you figure out what's going on. They'll likely want know details about what exactly isn't working and will probably ask for things like a tcpdump capture file and/or an fs_usage trace.
    HTH
    --macko

Maybe you are looking for

  • Setting up dual screens in XP

    After no luck with Vista, I switched to XP. Now I have the problem that the Intel driver forces me to use the Notebook as the primary display if operating in a dual screen configuration. Is there any way to force it to use the external display as the

  • JDeveloper 11.1.1.2.0 does not recognize some CVS files

    Hi, We have been using JDev 11.1.1.1.0 with no problems. We installed 11.1.1.2.0 into a SEPARATE directory (and did NOT migrate settings). We configured 11.1.1.2.0 as we had for 11.1.1.1.0. All our applications use CVS for source control - we normall

  • Constructor in applet?

    hi..... Can we do provide constructor in an applet for initialization or can applet support constructor? regards.

  • Why can't i save the same bookmarks in different locations?

    Why can't I save a bookmark for a particular site in multiple locations? If I already have it saved, for instance, in the bookmarks menu, and I then try to save an additional copy into the bookmarks folder, the copy in the bookmarks menu will disappe

  • Why I can't install this update?

    This thank you!