How to combine a raw xml file stored in a table field withe other sql query in . xsq

I created .xsql file like this:
<xsql:query>
select xml_file from my_table
</xsql:query>
xml_file is field in my_table,it stores raw xml files.
the xml file in the result is in text format, not in xml format,how to convert the file into xml format in the result

See the "document" demo that ships with the XSQL servlet for an example of how to do this.
It lives in the ./demo/document subdirectory.

Similar Messages

  • How do I open a PDF file stored on the iCloud drive with my iPad?

    How do I open a PDF file stored on the iCloud drive with my iPad?

    This document explains how:
                     Opening PDF Files in Reader for iOS (iPhone and iPad)

  • How to align a raw Xml file tag by tag using java

    Hi All,
    Can any one please help me in writing a java code(jdk1.3) ,which will format a raw xml file and keep the formated data in a string object.

    Ex File:
    <POSBasket><Keyword>1|51|7|4116</Keyword><LastUpdated>2008-03-31T19:01:08+01:00</LastUpdated><MajorVersion>1</MajorVersion><MinorVersion>0</MinorVersion><BasketType>Sale</BasketType><State>Processed</State><Header><DateTimeCreated>2008-03-31T18:41:51+01:00</DateTimeCreated><OriginatedBy><DeviceID>ALL.MAT.51.TILL7</DeviceID><CashierID>051ROD</CashierID><CompanyID>1</CompanyID><StoreID>51</StoreID><BranchID>51</BranchID><TerminalNumber>7</TerminalNumber><TransactionNumber>4116</TransactionNumber></OriginatedBy><TaxMethodID>1</TaxMethodID><CustomerNumber>022578200260577</CustomerNumber><CustomerPan>022578200260577</CustomerPan><LoyaltyAccountNumber>022578200260577</LoyaltyAccountNumber><BasketLanguageID>en</BasketLanguageID><BasketCountryID>GB</BasketCountryID><BasketCurrencyID>GBP</BasketCurrencyID></Header></POSBasket>
    expected format:
    <POSBasket>
    <Keyword>1|51|7|4116</Keyword>
    <LastUpdated>2008-03-31T19:01:08+01:00</LastUpdated>
    <MajorVersion>1</MajorVersion>
    <MinorVersion>0</MinorVersion>
    <BasketType>Sale</BasketType>
    <State>Processed</State>
    <Header>
    <DateTimeCreated>2008-03-31T18:41:51+01:00</DateTimeCreated>
    <OriginatedBy>
    <DeviceID>ALL.MAT.51.TILL7</DeviceID>
    <CashierID>051ROD</CashierID>
    <CompanyID>1</CompanyID>
    <StoreID>51</StoreID>
    <BranchID>51</BranchID>
    <TerminalNumber>7</TerminalNumber>
    <TransactionNumber>4116</TransactionNumber>
    </OriginatedBy>
    <TaxMethodID>1</TaxMethodID>
    <CustomerNumber>022578200260577</CustomerNumber>
    <CustomerPan>022578200260577</CustomerPan>
    <LoyaltyAccountNumber>022578200260577</LoyaltyAccountNumber>
    <BasketLanguageID>en</BasketLanguageID>
    <BasketCountryID>GB</BasketCountryID>
    <BasketCurrencyID>GBP</BasketCurrencyID>
    </Header>
    </POSBasket>
    Can anyone help me on preparing logic using core java ???

  • I would like to know how to transform a .raw format file into a 2D table ?

    I would like to know how to read a .raw format file with LabView? What I want to do is to make a 2D table from a .raw format file.
    There is already the jpg, bmp and png format reader function, but what about .raw?
    I'll wait for suggestions...
    thanks

    ...ok I got it ... the fact is that I have no idea of wich kind of format my .raw image is made with
    What I know is that I can opon it with photoshop and if I open it with "bloc-notes" it gives me something like this:
    c0h h > 5 (  9 c 9 c 1 ` N â ~ Z a T j J C S S G , @ E : 8 G 0 Z < > T 5 5 1 ( ) . F + ? m ; ^ - F ? . k / Å i Q L 7 M 9 : b 8 R T O D : ~ A M S S H H g ! ˆ H - P Z S 6 N 9 K A M 2 m Q T 4 V / : C = & B Z 2 F : L h R N [ \ d L @ 0 + M F J \ L ¦ K 5 L X d 8 ^ @ 6 E \ > * H F : V : k b = j E P P Q \ C = : U g G G > H \ _ I 2 E r ] ? E 3
    A C [ ^ U G L N P g W N H J k ; C U = [ ; 5 G E K G ? U o Q R X ; 7 X V 6 V V T 9 D A M p R M S J _ Q E G / g _ S S A ; K M Q @ ] L V C 8 < 6 m I \ ` N J Z 7 L 3 1 L “ b ` X Q P d S M O F f K ` A Q D E [ B N ^ j Y  R D L k Z E D @ Æ  G < N G d F c i T F  b . % I ^ L s Z I v ^ ¯ G G N U O q H H \ 0 G S \ N . N ` _ @ 8 Y p N 5 V K K m D 8 V \ } H R F o { P Z ` U g h D N  a I \ N ? B h P S H F W ? Q & M I G R N Y E W [ _ W K G @ J G f ‚ Y i R R v † ] D d O Y M L R 4 - 2 X H p [ d i F J T T M W # Q q g Q C M [ b › ] V ] A Ž e C 4 = a W o h P { E Q X M F _ n V
    D S z I ^ P _ S X [ T [ I L ® c ] J I W V D ] * # F ? Z S R [ b i ; > ; _ w g Z g G 1 ] F Q J X ~ A h V S V < V Y ^ G c _ [ M > S J S q ? n L E Q U N B 3 a M V $ _ C Y k S « A M e T T ^ H I
    ( ^ K R Z Y e P C n _ a V K + 2 _ V M d L N n M Ë r ` ^ ^ u Z K j L B V 1 b R Z f k P a [ M K b F f T A ` 5 4 > F ` D g Z d V n L @ ' H R ^ r s ` o B L Z S h Q f R c e u @ j O : [ _ R = K \ 9 T N Q X b X } h L _ ? B s ^ f ž V G c { A L Z P ; P Q E D z E Y U N \ _ F O  Y _ K W 6 \ T J ì ? V W Q U c [ `
    So the question now is how do I understand the original format of my .raw file?
    If I did things right I attached my zipped .raw file example (caccoletta.raw)
    I'll wait again for help
    thanks
    Attachments:
    caccoletta.zip ‏1493 KB

  • How do I import one xml file into 3 separate tables in db?

    I need to utilize xslt to import one xml file into 3 separate tables: account, accountAddress, streetAddress
    *Notice the missing values in middleName, accountType
    sample xml
    <account>
    <firstName>Joe</firstName>
    <middleName></middleName>
    <lastName>Torre</lastName>
    <accountAddress>
    <streetAddress>
    <addressLine>myAddressLine1</addressLine>
    <addressLine>myAddressLine2</addressLine>
    </streetAddress>
    <city>myCity</city>
    <state>myState</state>
    <postalCode>mypostalCode</postalCode>
    </accountAddress>
    <accountId>A001</accountId>
    <accountType></accountType>
    <account>
    I need the following 3 results in 3 separate xml files in order for me to upload into my 3 tables.
    Result #1
    <rowset>
    <row>
    <firstName>Joe</firstName>
    <lastName>Torre</lastName>
    <accountId>A001</accountId>
    <row>
    <rowset>
    Result #2
    <rowset>
    <row>
    <addressId>1</address>
    <city>myCity</city>
    <state>myState</state>
    <postalCode>myPostalCode</postalCode>
    <row>
    <rowset>
    Result #3
    <rowset>
    <row>
    <addressId>1</addressId>
    <addressLineSeq>1</addressLineSeq>
    <addressLine>myAddressLine1</addressLine>
    <row>
    <row>
    <addressId>1</addressId>
    <addressLineSeq>2</addressLineSeq>
    <addressLine>myAddressLine2</addressLine>
    <row>
    <rowset>

    Use XSU to store in multiple tables.
    "XSU can only store data in a single table. You can store XML across tables, however, by using the Oracle XSLT processor to transform a document into multiple documents and inserting them separately. You can also define views over multiple tables and perform insertions into the views. If a view is non-updatable (because of complex joins), then you can use INSTEAD OF triggers over the views to perform the inserts."
    http://download-west.oracle.com/docs/cd/B19306_01/appdev.102/b14252/adx_j_xsu.htm#i1007013

  • How to combine Camera-Raw processed files to be viewed within Windows Explorer as processed

          The problem I have with  camera processed files is that when viewed within Explorer what you did on the file, the crop, and other effects are not visible within Windows Explorer. What is visible there is the original file--this seems to be true of the original nef file in my case.  The change does appear if you save it as a .tif, .dng or .psd but not the NEF. But if you were to open again the NEF file and the RAW Window opens you can see your changes immediately.
            I know it is because  with an original raw file nothing has been done to the image except give it instructions so to speak but Bridge does see it as such so why not let Explorer (Or other viewers, for ex. XnView) view it as such as well? Perhaps this is more a Microsoft Windows issue or what-have-you but I thought I would start to present it here first.
    Where's the question? The question is not actually for someone to explain why this is so, I think I may understand this a little but rather the question is, would it be possible to let other software such as Explorer see the raw processed file--to let it see it as Bridge sees it? Yeah I guess this may be a Windows issue but.....
       Why does this bother me? Since I don't use Photoshop or Bridge professionally I view images more often in Explorer then I do in Bridge or PS (The former is instantaneously viewable while the latter take way to long to open--and Bridge vs. XnView needs an extra step.)
            Side note: Sometimes I feel I am wasting my time and yours in writing such silly questions nevertheless they present themselves in my brain and in the process I hope to learn something from it regardless of its silliness/stupidity. It is such questions which at times creates something original, therefore creativity, after all, does it not? (Or so I tell myself in order to justify it all :-)

    You can't...
    Camera Raw plug-in | Supported cameras
    Camera Raw-compatible Adobe applications

  • Transfer a binary file stored in a table field in oracle to another table different schema in oracle

    I would like to know if it is possible to use ssis to transfer a binary file of a datatype of long raw in a field in one table in oracle to a new table in a different schema of a datatype blob in oracle? The binary file is a Crystal reports executable
    which is used in a application that I support. I are trying to consolidate data fields over many schemas into one main schema to simplify the support issues.

    Hi r_peterser,
    SQL Server Integration Services maps DT_IMAGE data type to LONG RAW and BLOB in Oracle. So, you can directly use an OLE DB Source or Oracle Source adapter to extract the LONG RAW column from the Oracle database, and then load the data to the BLOB column
    of the Oracle table through an OLE DB Destination or Oracle Destination adapter.
    Reference:
    http://technet.microsoft.com/en-us/library/ms141036.aspx 
    Regards,
    Mike Yin
    If you have any feedback on our support, please click
    here
    Mike Yin
    TechNet Community Support

  • Use XML files stored in directory of Application server as a input for XI ?

    I have a scenario that there is a xml file stored in sap application server for example /inf/ERQ/XML/XXX.xml which i want to use it as an input for XI. I know that there is an adapter in XI for getting xml file stored in normal path but in my situation it's in application server of SAP so i don't know how to do this.
    Any solution or example for this? Thank you in advance.
    Best regards

    Hi,
    We can read this file through FILE adapter with FTP protocol, before that i think need permission from basis for access.  Configure source(according to xml format) and target structure according to your requirement.  But one thing should remember in XI/PI sour/target XML formats should contain Message type name & namespace name else it can't work.
    Find below link for more information.
    Introduction to simple (File-XI-File)scenario and complete walk through for starters(Part2)

  • Hello Anybody, I have a question. Can any of you please suggest me how to make an xml file from the database table with all the rows? Note:- I am having the XSD Schema file and the resulted XML file should be in that XSD format only.

    Hello Anybody, I have a question. Can any of you please suggest me how to make an xml file from the database table with all the records?
    Note:- I am having the XSD Schema file and the resulted XML file should be in that XSD format only.

    The Oracle documentation has a good overview of the options available
    Generating XML Data from the Database
    Without knowing your version, I just picked 11.2, so you made need to look for that chapter in the documentation for your version to find applicable information.
    You can also find some information in XML DB FAQ

  • How to retrieve value from xml file

    hi all,
    can somebody pls tell me how to retrieve value from xml file using SAXParser.
    I want to retrieve value of only one tag and have to perform some validation with that value.
    it's urgent .
    pls help me out
    thnx in adv.
    ritu

    hi shanu,
    the pbm is solved, now i m able to access XXX no. in action class & i m able to validate it. The only thing which i want to know is it ok to declare static ArrayList as i have done in this code. i mean will it affect the performance or functionality of the system.
    pls have a look at the following code snippet.
    public class XMLValidator {
    static ArrayList strXXX = new ArrayList();
    public void validate(){
    factory.setValidating(true);
    parser = factory.newSAXParser();
    //all factory code is here only
    parser.parse(xmlURI, new XMLErrorHandler());     
    public void setXXX(String pstrXXX){          
    strUpn.add(pstrXXX);
    public ArrayList getXXX(){
    return strXXX;
    class XMLErrorHandler extends DefaultHandler {
    String tagName = "";
    String tagValue = "";
    String applicationRefNo = "";
    String XXXValue ="";
    String XXXNo = "";          
    XMLValidator objXmlValidator = new XMLValidator();
    public void startElement(String uri, String name, String qName, Attributes atts) {
    tagName = qName;
    public void characters(char ch[], int start, int length) {
    if ("Reference".equals(tagName)) {
    tagValue = new String(ch, start, length).trim();
    if (tagValue.length() > 0) {
    RefNo = new String(ch, start, length);
    if ("XXX".equals(tagName)) {
    XXXValue = new String(ch, start, length).trim();
    if (XXXValue.length() > 0) {
    XXXNo = new String(ch, start, length);
    public void endElement(String uri, String localName, String qName) throws SAXException {                    
    if(qName.equalsIgnoreCase("XXX")) {     
    objXmlValidator.setXXX(XXXNo);
    thnx & Regards,
    ritu

  • Reading an XML file stored in Oracle

    Is it possible to read an xml file stored in Oracle via Oracle methods?

    If by "read" you mean "read as text", then you can just select the document as a CLOB and return it.
    If by "read" you mean "read and parse", then you can use the Oracle XML Parser for PL/SQL to parse the CLOB into a DOM structure.
    My Building Oracle XML Applications book has lots of examples of doing this, but especially in chapter 5, "Processing XML with PL/SQL".
    Steve Muench
    Development Lead, Oracle XSQL Pages Framework
    Lead Product Manager for BC4J and Lead XML Evangelist, Oracle Corp
    Author, Building Oracle XML Applications
    null

  • How I can create a XML file from java Aplication

    How I can create a XML file from java Aplication
    whith have a the following structure
    <users>
    <user>
    <login>anyName</login>     
    <password>xxxx</password>
    </user>
    </users>
    the password label must be encripted
    accept any suggestion

    Let us assume you have all the data from the jsp form in an java bean object..
    Now you want a xml file. This can be acheived in 2 ways
    1. Write it into a file using java.io classes. Say you have a class with name
    write("<name>"+obj.getName+</name>);
    bingo you have a flat file with the xml
    2. Use data binding to do the trick
    will recommend JiBx and Castor for the 2nd option
    Regards,
    Rajagopal

  • How to Read and Generate XML file from java code.

    hi guys,
    how to read the xml file (Condition :we know only DTD or Shema only).
    How to Generate the new xml file ?(using Shema )
    And one more how directly Generate the xml from DB?
    Pleas with code or any URL

    Using XMLbeans you can generate Java objects from an XSD schema (perhaps DTDs aswell)
    Then you can create an instance of the Document object and ask it to write itself.
    This will create an XML document complient to the schema.
    XMLBeans generates a "type" safe DOM where you can only ever have a structure compilent to you schema.
    matfud

  • How I could generate an XML file from a report in version 4.0B

    Good morning,
    How could I generate an XML file from a report? Please note that I am using version 4.0B
    I don't have access to
    Billy Vital

    Hi,
            In the Class CL_XML_DOCUMENT,
                 we have a method  EXPORT_TO_FILE to download an XML file.

  • How to extract data from xml file in owb 10.2?

    I have to load data from an xml file into a relational table , may i know how to do it in owb 10.2.

    This is a Java forum.
    JavaScript is something entirely different than Java, even though the names are similar.
    Try another website with forums about JavaScript.
    For example here: http://www.webdeveloper.com/forum/forumdisplay.php?s=&forumid=3

Maybe you are looking for

  • Change footnotes to endnotes in InDesign CC?

    I am working on a book project with extensive footnotes. The author has requested that they be changed to endnotes, and be broken up by chapters.  (so that in each chapter the first endnote will be numbered 1) Is there an efficient way to do this for

  • Standard PP work center reports in ECC or BI

    Hi All, I am new to PP so need your help urgently. Do we have standard PP workcenter reports available?  Can anyone please share the link for the same? Thanks!

  • Help!! After Mavericks update: total loss of my 5TB  of Data on my Onnto-Data-Tale- Raid

    Help!! After Mavericks update: total loss of my 5TB  of Data on my Onnto-Data-Tale- Raid.

  • Feature request: enter submits extraction form popup

    After clicking on a layer or image i would like to extract from the page, I typically fill in a name, press enter expecting the form to submit, feel dumb, and then am forced to grab my mouse again to press the save button. Can an enter on the input b

  • Pro Res/ HQ

    Hi there, Quick question folks, I'm importing footage from some AVCHD mini-cameras via log & transfer. I'm trying to import the footage as Pro Res HQ, and have set my capture preset accordingly. However, the first clip imports and it seems like it is