Using XML to persist data

Im developing a small application and choosed to use XML instead of MySql because it's smaller and do not require to install a database on the client after software distribution.
The strategy was not keep all data in the XML file, so some parts are shared over folders.
Example:
Let's say I have 10 logins (remember that login can't be repeated) so I have 10 foldes (packges) eah one with it's on xml file about the login info.
So far, it's working very fast.
The problem is that I don't know what parser (read/write) to use.
1)
There's a lot over the web, but I'm affraid abaout memory and application size (I'd like to keep it small and readable later) ... so should I use Suns DOM or Stax?
2)
There are simple things I really need: read the xml, change it if needed and display the data. So I need to populate my objects, change them and persist again. Also, I'd like to persist only the nodes that were actualy changed, keeping the unchanged data.

No 1.
First of all, let me apologize. I kinda lost myself on my own explanation! Sorry.
No. 2.
.....Yeah, I ended up finding an easy way to read those small xml files (the way I'm trying to keep them so far)...You're right, could be even SAX or DOM. I've choosed SAX by now.
.....The big problem was to understand all those acronyms over the web...beyond learning Java, XML we must remember all those words too. Not an easy task.
No. 3.
Can anyone tell me EXACTLY how to use StaX ? Cause I will have to use it later by some xml on demand files i'll need to work with.
No. 4.
As I've choosed SAX, how do I change only the tags that matter on the xml file? Is it possible?
Thaks a LOT for all the patient people from this forum.... You are the BEST

Similar Messages

  • Using XML as a Data Source

    In http://download.oracle.com/docs/cd/E14571_01/bi.1111/e10540/datasource.htm#CHDBCAIJ it states you can use XML as your data source and mentions...
    URLs can include repository or session variables, providing support for HTTP data sources that accept user IDs and passwords embedded in the URL. For example:
    http://somewebserver/cgi.pl?userid=valueof(session_variable1)&password=valueof(session_variable2)
    I'm trying to pass this:
    http://somewebserver/cgi.pl?userid=valueof(NQ_SESSION.USER)
    but when I try that I can see in my web server logs that the content of the userid variable is 'valueof(NQ_SESSION.USER)' so it's not passing the results to the web server, just the text. Any ideas what's going on? Is my syntax correct? Thanks!

    Hey,
    There are a few things to look at when using session and repository variables within the RPD.
    One of the first documents you need to reference is the "What is the Syntax for Referencing Variable?" section within the OBI documentation. In addition look at this section on how to use variables in the RPD, http://download.oracle.com/docs/cd/E14571_01/bi.1111/e10540/variables.htm#BIEMG3104
    Basically you are trying to use NQ_SESSION.USER which is the syntax for trying to show the user name is Presentation Services. Of course you can see this in your web server logs because that is the correct syntax for presentation services web tier but not the RPD where you define your XML Source.
    You need to try either use VALUEOF("USER") or you are simply forgeting to put the syntax surrounded by single-quotes like, http://somewebserver/cgi.pl?userid='valueof(NQ_SESSION.USER)' to pull the system session variable into the XML URL as needed.
    Try those options and let me know if that works.
    Please mark this as the correct answer or helpful.
    Cheers,
    Christian
    http://www.artofbi.com
    Edited by: Christian Screen on May 8, 2011 10:32 AM

  • When / why use XML to store data instead of database table ?

    Hi All,
    I still not use XML much in applications and don't know much about its utilization.
    I read here and there about storing data as XML instead of into database tables.
    - could any body please tell me when / why use XML to store data instead of database table ?
    e.g : store inventory per warehouse in XML format. ?
    - What is the other cases or reasons of extracting database records into XML or vice versa ?
    - is there any good pdf on this ?
    Thank you for your help,
    xtanto

    It depends entirely what you want to accomplish with the 'XML in the database'. There are basically 3 independent methods: As CLOB, as XMLType views or as native XMLType 'columns'
    Each method has advantages and disadvantages, especially in the performance vs purpose tradeoff.
    The Oracled Press book "Oracle Database 10g XML & SQL Design, Build, & Manage XML Applications in Java, C, C++, & PL/SQL" is highly recommended for anyone interested in Oracle and XML. http://books.mcgraw-hill.com/getbook.php?isbn=0072229527&template=oraclepress

  • Using XML as persistance

    I'm re-writing a swing client that uses regular serialization to files in order to save user data. The data that needs to be persisted to file is very hierarchical by nature. I'm using MVC throughout the application.
    Now, I'm considering using XML as the file format for the persistence. I've written an XML schema (xsd) that dictates the data model.
    As I've stumbled upon XStream before I first had a look at that for marshalling/unmarshalling my XML. XStream is wonderful but it kind of makes the XML schema validation useless as I see it. So, now I'm looking at JAXB (or maybe XMLBeans) instead as the API between my XML files model layer in the application.
    Basically, what I'm looking for is a convenient way to read XML data from file into my data model. Obviously I want to be able to create XML from my data model as well. Will JAXB really save me from doing all the mapping between the XML and data model (POJO's) based on my XML schema?
    Am I barking at the wrong tree here? Also, please stop me if you think that XML are a ridiculous way of persisting application data.
    Thanks in advance!

    Thank you for your input DrClap!
    My Swing app is kind of a CAD app where users can make drawings of marinas. Objects can be moved, rotated, connected to each other and grouped and each object has a set of properties. The drawing layout, object props and calculation parameters needs to be persistent. Think MS Visio... Target audience is marine engineers that needs to make force calulations.
    Generating an xml file from my xml schema produces a file on about 7Kb (about 200 lines). A real life file would probably be at least 10 times bigger.
    I don't see an issue with updating or adding single elements in the XML. This is only done when the user saves to file, in all other cases the application would store data in the model layer. And as I understand it JAXB would handle all XML marhsalling/unmarshalling automagically.
    The only thing I'm worried about is having JAXB generating the model classes from my xml schema (xsd). Since I'm working with MVC my current model classes all fire property change events to its controllers whenever a setter is called. This would be lost if JAXB would generate the model for me. Am I right? My assumption with JAXB/XMLBeans is that you update the model by changing your xml schema and then generate/compile you model classes (and ObjectFactory).
    Thank you for taking your time to read this!

  • XML Export, persistent data and exporting to RPT

    We're using CR4E SP1 with CR 2008 Designer to create reports that are delivered via a web application on Windows.
    The lack of XML export (particulalrly disapointing that the new 2008 XSLT stuff is not there) means we're resorting to some extraordinary steps to get XML out of a report by using jiwam to call the CRPE COM engine.
    We create a report using XI or 2008 that uses a JDBC driver.  The report is copied to our server where users run it in CR4E to view output in Word,  Excel and PDF (we do the connection replacement on the fly).
    To get the XML output, we are attempting to save the report as a temporary RPT (Crystal) file, then invoke CRPE via COM to export the persistent data within the file as XML.
    The COM stuff works fine on a normal RPT file that contains data, but the creation of this temporary file is proving very problematic.
    We have tried SaveAs (just saves what is already in the report) and Export to RPT without success.
    Has anbody got any ideas ?
    A simple question - when is the data within a report actually refreshed?  Is it when the connection is replaced or when the export is initiated?  Is there a method to call that will refresh the data?
    Thanks,
    Steve

    Use CR4E version 2.

  • HOW to use xml to transfer data from database?

    Hi,
    Would you please give me some suggestion on how to use xml connect with a table in oracle/MS_access database?
    Thanks a lot
    Zhao

    Have you already had a look at our online documentation here on OTN, or at a book like Building Oracle XML Applications? There are lots of examples in those.
    If you have a specific question about using the API's that's not working for you, we can help out here.

  • Using XML to exchange data between different databases?

    Hi,
    Does anyone know of any case-studies or tutorial's where XML has been used to transfer data between different databases... i.e. oracle to sql server?
    I basically looking into the differences between two schema's and what sort of tranformations need to take place.
    Thanks in advance guys!

    Hi,
    Does anyone know of any case-studies or tutorial's where XML has been used to transfer data between different databases... i.e. oracle to sql server?
    I basically looking into the differences between two schema's and what sort of tranformations need to take place.
    Thanks in advance guys!

  • Using XML to save data

    Hi,
    I am planning an eLearning project for an AS3 version of a family health history diagram (pedigree/genogram). A major consideration would be whether the diagram (created by the user by their inserting square, circle, other symbols, connecting lines, text labels, etc.) can be saved and re-opened for editing, so the user can build their family health history diagram, edit, change/add to it over time.
    I've seen XML mentioned as a possible method for saving data and wondered if it (maybe by adding a server-side script-ASP, PHP) can save/re-open for editing, x,y positions of shapes, line positions, angles, length, type, etc. An SO could also work, but I'm not sure if 100 kb is enough for this data (if the Max storage is not changed in player settings, by each user).
    I would appreciate any clarification so I can figure out if the project can work in AS3 and if yes, how to begin this challenging task.
    Regards,
    saratogacoach

    Hi turbosqqel,
    Thanks for the additional explanation. That sounds more doable for me.
    What I can try next, is to set up a small working 'test of concept' sample in AS3, that can take 2 data items (for example, posX=100, posY=200), save their values (100 and 200) to XML with the help of a PHP script, then see if I can get the Flash sample to retrieve these 2 values (ultimately for use in re-positioning a shape at 100,200 when the SWF is booted up). Whew!
    But if I can do something like that first, then I will have a model to build on for data storing/retrieving.
    I'll look around online for any AS3, PHP basic samples like that. Maybe won't have to 're-invent the wheel.'
    Again, thanks for your help.
    Regards,

  • Using XML for Live Data- How do you get the XML file to pull data from another xls file?

    Post Author: joseph_atkinson
    CA Forum: Xcelsius and Live Office
    I was wondering you can help me.
    I am currently receiving an *.xls reports on a daily basis (same report, same format, different data). I have put this report into Crystal Xcelcius Designer 4.5 Professional version and created the dashboard I want.
    I am aware of the xml mapping functionality where I can map from the *.swf straight to a database. However, is it possible to map to an xls file that will change on a daily basis? (obviously I can you the refresh button in Designer, but I need to automate this process).
    Your help really would be appreciated.
    Joe

    In Firefox, I'm seeing a bad icon for your zip files. I can
    download it,
    but it looks like something might be amiss with your zip
    files
    themselves.
    Al Sparber - PVII
    http://www.projectseven.com
    Popup Menus | Image Galleries | CSS Tutorials & Templates
    Newsgroup: news://forums.projectseven.com/pviiwebdev/
    CSS Newsgroup: news://forums.projectseven.com/css/
    DW Newsgroup: news://forums.projectseven.com/dreamweaver/
    "Conjurer" <[email protected]> wrote in message
    news:e8upg1$kee$[email protected]..
    > Conjurer wrote:
    >> Boy - I thought this was as simple as creating an
    <a> tag link to the
    >> file like you do with Word docs and Excel xls files.
    So I wrote my
    >> link as follows:
    >>
    >> <li><a
    href="OMGMASalSvy/Survey.zip">2006 Adminsistrators
    >> Survey.zip</a></li>
    >>
    >> But when I click on it I get a big nothing!
    >>
    >> I put the files out there on the host and the
    Word/Excel links all
    >> work great.
    >>
    >> Is there some secret magic to this one?
    >>
    >> My page links are at:
    http://www.omgma.com/surveyforms.htm#Documents
    >>
    >> Thanks for any help.
    >
    >
    > I guess it is working in IE but not in Firefox.... hmmm

  • No Error, No Data When Using XML Source in Data Flow Task

    Hi! I want to transfer XML Source to SQL DB. The SSIS version is 2008 and I use inline schema. The package works fine without error but there's no input records in the destination.  
    Execution without error and no record counts. 
    Here is my XML (generated by C# Web Service Project), can you help me find out what the problem is . 
    <?xml version="1.0" encoding="utf-16"?>
    <DataTable>
    <xs:schema id="NewDataSet" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
    <xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:MainDataTable="dt_fuzzy" msdata:UseCurrentLocale="true">
    <xs:complexType>
    <xs:choice minOccurs="0" maxOccurs="unbounded">
    <xs:element name="dt_fuzzy">
    <xs:complexType>
    <xs:sequence>
    <xs:element name="ACCNT_NAME_SUGGEST" minOccurs="0">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:maxLength value="200" />
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    <xs:element name="_Similarity" type="xs:float" minOccurs="0" />
    <xs:element name="_Confidence" type="xs:float" minOccurs="0" />
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    </xs:choice>
    </xs:complexType>
    </xs:element>
    </xs:schema>
    <diffgr:diffgram xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1">
    <DocumentElement>
    <dt_fuzzy diffgr:id="dt_fuzzy1" msdata:rowOrder="0">
    <ACCNT_NAME_SUGGEST>AIRMES</ACCNT_NAME_SUGGEST>
    <_Similarity>1</_Similarity>
    <_Confidence>1</_Confidence>
    </dt_fuzzy>
    <dt_fuzzy diffgr:id="dt_fuzzy2" msdata:rowOrder="1">
    <ACCNT_NAME_SUGGEST>SIRMET</ACCNT_NAME_SUGGEST>
    <_Similarity>0.6214263</_Similarity>
    <_Confidence>0.03890347</_Confidence>
    </dt_fuzzy>
    <dt_fuzzy diffgr:id="dt_fuzzy3" msdata:rowOrder="2">
    <ACCNT_NAME_SUGGEST>SIRMEL</ACCNT_NAME_SUGGEST>
    <_Similarity>0.6190274</_Similarity>
    <_Confidence>0.03705673</_Confidence>
    </dt_fuzzy>
    <dt_fuzzy diffgr:id="dt_fuzzy4" msdata:rowOrder="3">
    <ACCNT_NAME_SUGGEST>GRUPO AIRMET GESTION COMERCIAL, S.L.</ACCNT_NAME_SUGGEST>
    <_Similarity>0.483897179</_Similarity>
    <_Confidence>0.000368847366</_Confidence>
    </dt_fuzzy>
    <dt_fuzzy diffgr:id="dt_fuzzy5" msdata:rowOrder="4">
    <ACCNT_NAME_SUGGEST>FIRME INFORMATIQUE</ACCNT_NAME_SUGGEST>
    <_Similarity>0.4699396</_Similarity>
    <_Confidence>0.000164090918</_Confidence>
    </dt_fuzzy>
    <dt_fuzzy diffgr:id="dt_fuzzy6" msdata:rowOrder="5">
    <ACCNT_NAME_SUGGEST>STEFAN HIRMER</ACCNT_NAME_SUGGEST>
    <_Similarity>0.434566617</_Similarity>
    <_Confidence>1.28168531E-05</_Confidence>
    </dt_fuzzy>
    <dt_fuzzy diffgr:id="dt_fuzzy7" msdata:rowOrder="6">
    <ACCNT_NAME_SUGGEST>Sirmet</ACCNT_NAME_SUGGEST>
    <_Similarity>0.4278418</_Similarity>
    <_Confidence>7.149945E-06</_Confidence>
    </dt_fuzzy>
    <dt_fuzzy diffgr:id="dt_fuzzy8" msdata:rowOrder="7">
    <ACCNT_NAME_SUGGEST>FIRME ARQUITECTOS,S.L.P.</ACCNT_NAME_SUGGEST>
    <_Similarity>0.328356117</_Similarity>
    <_Confidence>1.35651484E-12</_Confidence>
    </dt_fuzzy>
    <dt_fuzzy diffgr:id="dt_fuzzy9" msdata:rowOrder="8">
    <ACCNT_NAME_SUGGEST>Tirme S.A.</ACCNT_NAME_SUGGEST>
    <_Similarity>0.3022916</_Similarity>
    <_Confidence>4.76196153E-16</_Confidence>
    </dt_fuzzy>
    <dt_fuzzy diffgr:id="dt_fuzzy10" msdata:rowOrder="9">
    <ACCNT_NAME_SUGGEST>OEUVRE DES JEUNES INFIRMES</ACCNT_NAME_SUGGEST>
    <_Similarity>0.261523962</_Similarity>
    <_Confidence>1.31722347E-24</_Confidence>
    </dt_fuzzy>
    </DocumentElement>
    </diffgr:diffgram>
    </DataTable>

    I think problem is your namespaces are different.
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Using XML to create files through API

    Hi.
    I created a new custom type - a subclass of "Document", with a few private attributes.
    I wrote a small XML file that creates an instance of that type.
    I have no problem using that XML with FTP or with the web interface - it parses the XML automatically and creates my custom file.
    However, when I try to use the java API to do the same, it just copies the XML file into IFS, but doesn't parse it or creates the custom file that is defined in it.
    I am using the IFSFileSystem.createDocument method, with parsing set to true, and "null" for the callback parameter.
    Of course, the XML parser is registered (as I said, it works with FTP and web interface).
    Please help.
    Thanks, Edo.

    Sure .. you can use XML as the data source. If you have DW8,
    you can even
    do it right in the Dreamweaver Interface.
    Nancy Gill
    Adobe Community Expert
    BLOG:
    http://www.dmxwishes.com/blog.asp
    Author: Dreamweaver 8 e-book for the DMX Zone
    Co-Author: Dreamweaver MX: Instant Troubleshooter (August,
    2003)
    Technical Editor: DMX 2004: The Complete Reference, DMX 2004:
    A Beginner's
    Guide, Mastering Macromedia Contribute
    Technical Reviewer: Dynamic Dreamweaver MX/DMX: Advanced PHP
    Web Development
    "melneum" <[email protected]> wrote in
    message
    news:e7n37t$40m$[email protected]..
    > Is it possable to use xml to create user lists that can
    then be searched
    > to
    > allow access to a section of a site like you can do with
    asp? I would
    > prefer
    > not to use any database stuff on a site i am currently
    working on but need
    > a
    > secured login area.
    >
    > Any ideas??
    >

  • Why use XML

    I can't find any true tangible benefits to using XML
    to transfer data from legacy systems, in comparison to say, using an external file and loading into existing
    schema objects, which we do use.
    We have 4-6 internal systems, and many many external systems, that currently use text or DB links to transfer data around, and of course the manager hears the catch-phrase-of-the-day XML, all time time and wants us to use it. We do a lot of complicated reading of the files, i.e. headers and multiple layers of detail (header & detail lines can have infinite detail lines)
    Can somebody offer up why use XML? (white pages, something I can get proof with) or why not to use it.
    To me, completly different layer of technology, everybody has a "standard", nobody has the same standard.
    More storage in the database (being a DBA I don't like this), and seems to need its own full time employee to manage it (the IT director won't like that).

    SO... you STILL have to get what the file looks like... can't be read from inside the file (like a decent CSV), hasn't somebody realized that keep layout seperate from the data during outside transfers is stupid?
    I understand the tags etc, I guess because disk is free, and networks are faster, lets clog them up with useless info <the tags>. I have loaded/extracted XML from the database (what a PITA that is) before I asked this question.
    My question is, can somebody please point me in a direction of the benefits of using XML to transfer data between systems.
    Why use XML? Why is XML better than a CSV (or formatted text file)????
    What benefits does it have over those file types??
    A great list of pro/cons would be nice... everything on oracle web sites, and google say all basically say the same thing... "use it because it's new and neat"
    Why should we spend hundreds of man hours reinventing the wheel?
    What tangible benefits are there to using it?
    Might be the wrong forum, if so, please point me in the right direction.

  • Change the width of a field using XML

    Hi,
    I customize a report -set the width of a field- using XML but my
    data is truncated.
    Is it posible to set vertical elasticity for this field using
    XML?
    My XML file is:
    <?xml version="1.0"?>
    <report name="Rep" DTDVersion="1.0">
    <layout>
    <section name="main">
    <field name="F_1" source="CP_FIELD" textColor="red" width="0.5"/>
    <field name="F_2" source="CP_FIELD" width="0.5"
    alignment="center"/>
    <field name="F_3" source="CP_FIELD" width="1"/>
    </section>
    </layout>
    </report>
    I will appreciate any suggestion.
    Thank you

    You can change the size of the label, the text input box, and the field itself (border around the field in the design tab) - however there is one exception to being able to control the size of every field individually:
    Fields that have "Labels left" or "Labels right" that are also the first field in a row will all share the same label width.
    This is probably what you are encountering, this is how the fields work for now, those first in a row label left/right labels are all the same width.
    Thanks,
    Josh

  • How to create a report using XML data source from Crystal Report Designer

    Hi,
    Iu2019m having Crystal Report Designer XI R2 SP4. Iu2019m trying to create a report using XML data source stored on disk. This is a customer order report and the xml is structured in such a way that it has an order details header part (master) and then it has several order lines (detail). One order line can have several order line characteristics (detail-detail). So what I need to know is now I can design this layout from the designer. If this was done using views I can do it with sub-reports but using xml data this seems to be different. Can you help me to design this layout? I have included the xml and xsd as well.
    Thank you in advance.
    Regards,
    Chanaka
    XML
    <?xml version="1.0" encoding="UTF-8"?>
    <CUSTOMER_ORDER_CONF_REP_REQUEST xmlns:xsi="http://www.w3.org/2001/XMLSchema" xmlns="urn:ifsworld-com:customer_order_conf_rep">
        <CUSTOMER_ORDER_CONF_REP>
            <ORDER_NO>D555809</ORDER_NO>
            <PRINTED_DATE>2009-03-26T08:52:54</PRINTED_DATE>
            <AUTHORIZE_NAME>Chanaka</AUTHORIZE_NAME>
            <CUSTOMER_NO>CU-1473-INV</CUSTOMER_NO>
            <CUST_NAME>Mr.Johan Matts</CUST_NAME>
            <SHIP_ADDR_1>93,Main Street</SHIP_ADDR_1>
            <SHIP_ADDR_2>Negambo Road</SHIP_ADDR_2>
            <SHIP_ADDR_3>Watthala</SHIP_ADDR_3>
            <SHIP_ADDR_4>SRI LANKA</SHIP_ADDR_4>
            <BILL_ADDR_1>93,Main Street</BILL_ADDR_1>
            <BILL_ADDR_2>Negambo Road</BILL_ADDR_2>
            <BILL_ADDR_3>Watthala</BILL_ADDR_3>
            <BILL_ADDR_4>SRI LANKA</BILL_ADDR_4>
            <CUSTOMER_PO_NO>112984638</CUSTOMER_PO_NO>
            <CUSTOMER_FAX>112984639</CUSTOMER_FAX>
            <CUSTOMER_EMAIL>abcbababab</CUSTOMER_EMAIL>
            <ORDER_LINES>
                <ORDER_LINE>
                    <LINE_NO>1</LINE_NO>
                    <CUSTOMER_PART_NO>NW-IP11</CUSTOMER_PART_NO>
                    <CUSTOMER_PART_DESC>iPod</CUSTOMER_PART_DESC>
                    <SALE_UNIT_PRICE>1200</SALE_UNIT_PRICE>
                    <PRICE_TOTAL>1200</PRICE_TOTAL>
                    <DISCOUNT>0</DISCOUNT>
                    <PRICE_QTY>1</PRICE_QTY>
                    <ORDER_LINE_CHARACTERSTICS>
                        <CHARACTERISTIC_ITEM>
                            <CHARACTERISTIC_ID xsi:nil="1"/>
                            <CHARACTERISTIC_VALUE xsi:nil="1"/>
                        </CHARACTERISTIC_ITEM>
                    </ORDER_LINE_CHARACTERSTICS>
                </ORDER_LINE>
                <ORDER_LINE>
                    <LINE_NO>2</LINE_NO>
                    <CUSTOMER_PART_NO>NW-IP24</CUSTOMER_PART_NO>
                    <CUSTOMER_PART_DESC>XGA Projector</CUSTOMER_PART_DESC>
                    <SALE_UNIT_PRICE>500</SALE_UNIT_PRICE>
                    <PRICE_TOTAL>1500</PRICE_TOTAL>
                    <DISCOUNT>0</DISCOUNT>
                    <PRICE_QTY>3</PRICE_QTY>
                    <ORDER_LINE_CHARACTERSTICS>
                        <CHARACTERISTIC_ITEM>
                            <CHARACTERISTIC_ID>1</CHARACTERISTIC_ID>
                            <CHARACTERISTIC_VALUE>Free Instalation</CHARACTERISTIC_VALUE>
                        </CHARACTERISTIC_ITEM>
                    </ORDER_LINE_CHARACTERSTICS>
                </ORDER_LINE>
                <ORDER_LINE>
                    <LINE_NO>3</LINE_NO>
                    <CUSTOMER_PART_NO>NW-IP02</CUSTOMER_PART_NO>
                    <CUSTOMER_PART_DESC>Sony DVD Player</CUSTOMER_PART_DESC>
                    <SALE_UNIT_PRICE>1000</SALE_UNIT_PRICE>
                    <PRICE_TOTAL>1000</PRICE_TOTAL>
                    <DISCOUNT>0</DISCOUNT>
                    <PRICE_QTY>1</PRICE_QTY>
                    <ORDER_LINE_CHARACTERSTICS>
                        <CHARACTERISTIC_ITEM>
                            <CHARACTERISTIC_ID>1</CHARACTERISTIC_ID>
                            <CHARACTERISTIC_VALUE>Free 5 DVDs</CHARACTERISTIC_VALUE>
                        </CHARACTERISTIC_ITEM>
                    </ORDER_LINE_CHARACTERSTICS>
                </ORDER_LINE>
                <ORDER_LINE>
                    <LINE_NO>4</LINE_NO>
                    <CUSTOMER_PART_NO>NW-IP99</CUSTOMER_PART_NO>
                    <CUSTOMER_PART_DESC>Flatscreen TV</CUSTOMER_PART_DESC>
                    <SALE_UNIT_PRICE>1500</SALE_UNIT_PRICE>
                    <PRICE_TOTAL>1350</PRICE_TOTAL>
                    <DISCOUNT>10</DISCOUNT>
                    <PRICE_QTY>1</PRICE_QTY>
                    <ORDER_LINE_CHARACTERSTICS>
                        <CHARACTERISTIC_ITEM>
                            <CHARACTERISTIC_ID>1</CHARACTERISTIC_ID>
                            <CHARACTERISTIC_VALUE>Free Delivery</CHARACTERISTIC_VALUE>
                        </CHARACTERISTIC_ITEM>
                        <CHARACTERISTIC_ITEM>
                            <CHARACTERISTIC_ID>2</CHARACTERISTIC_ID>
                            <CHARACTERISTIC_VALUE>1 year additional warranty</CHARACTERISTIC_VALUE>
                        </CHARACTERISTIC_ITEM>
                    </ORDER_LINE_CHARACTERSTICS>
                </ORDER_LINE>
                <ORDER_LINE>
                    <LINE_NO>5</LINE_NO>
                    <CUSTOMER_PART_NO>NW-IP56</CUSTOMER_PART_NO>
                    <CUSTOMER_PART_DESC>Sony MP3 Player</CUSTOMER_PART_DESC>
                    <SALE_UNIT_PRICE>200</SALE_UNIT_PRICE>
                    <PRICE_TOTAL>400</PRICE_TOTAL>
                    <DISCOUNT>0</DISCOUNT>
                    <PRICE_QTY>2</PRICE_QTY>
                    <ORDER_LINE_CHARACTERSTICS>
                        <CHARACTERISTIC_ITEM>
                            <CHARACTERISTIC_ID>1</CHARACTERISTIC_ID>
                            <CHARACTERISTIC_VALUE>Free carry belt</CHARACTERISTIC_VALUE>
                        </CHARACTERISTIC_ITEM>
                        <CHARACTERISTIC_ITEM>
                            <CHARACTERISTIC_ID>2</CHARACTERISTIC_ID>
                            <CHARACTERISTIC_VALUE>Free promotional 4GB memory bar</CHARACTERISTIC_VALUE>
                        </CHARACTERISTIC_ITEM>
                        <CHARACTERISTIC_ITEM>
                            <CHARACTERISTIC_ID>3</CHARACTERISTIC_ID>
                            <CHARACTERISTIC_VALUE>No warranty on memory bar</CHARACTERISTIC_VALUE>
                        </CHARACTERISTIC_ITEM>
                    </ORDER_LINE_CHARACTERSTICS>
                </ORDER_LINE>
            </ORDER_LINES>
        </CUSTOMER_ORDER_CONF_REP>
    </CUSTOMER_ORDER_CONF_REP_REQUEST>
    XSD
    <?xml version="1.0" encoding="UTF-8"?>
    <?report  module="ORDER" package="CUSTOMER_ORDER_CONF_REP" ?>
    <xs:schema targetNamespace="urn:ifsworld-com:customer_order_conf_rep" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="urn:ifsworld-com:customer_order_conf_rep" elementFormDefault="qualified" attributeFormDefault="unqualified">
    <xs:element name="CUSTOMER_ORDER_CONF_REP_REQUEST">
    <xs:complexType>
    <xs:all minOccurs="1" maxOccurs="1">
    <xs:element name="CUSTOMER_ORDER_CONF_REP">
    <xs:complexType>
    <xs:choice minOccurs="0" maxOccurs="50">
    <xs:element name="ORDER_NO" nillable="true" minOccurs="0">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:maxLength value="2000"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    <xs:element name="PRINTED_DATE" type="xs:dateTime" nillable="true" minOccurs="0"/>
    <xs:element name="AUTHORIZE_NAME" nillable="true" minOccurs="0">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:maxLength value="2000"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    <xs:element name="CUSTOMER_NO" nillable="true" minOccurs="0">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:maxLength value="2000"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    <xs:element name="CUSTOMER_PO_NO" nillable="true" minOccurs="0">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:maxLength value="2000"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    <xs:element name="CUST_NAME" nillable="true" minOccurs="0">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:maxLength value="2000"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    <xs:element name="SHIP_ADDR_1" nillable="true" minOccurs="0">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:maxLength value="2000"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    <xs:element name="SHIP_ADDR_2" nillable="true" minOccurs="0">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:maxLength value="2000"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    <xs:element name="SHIP_ADDR_3" nillable="true" minOccurs="0">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:maxLength value="2000"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    <xs:element name="SHIP_ADDR_4" nillable="true" minOccurs="0">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:maxLength value="2000"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    <xs:element name="BILL_ADDR_1" nillable="true" minOccurs="0">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:maxLength value="2000"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    <xs:element name="BILL_ADDR_2" nillable="true" minOccurs="0">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:maxLength value="2000"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    <xs:element name="BILL_ADDR_3" nillable="true" minOccurs="0">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:maxLength value="2000"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    <xs:element name="BILL_ADDR_4" nillable="true" minOccurs="0">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:maxLength value="2000"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    <xs:element name="CUSTOMER_FAX" nillable="true" minOccurs="0">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:maxLength value="2000"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    <xs:element name="CUSTOMER_EMAIL" nillable="true" minOccurs="0">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:maxLength value="2000"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    <xs:element name="ORDER_LINES" nillable="true" minOccurs="0">
    <xs:complexType>
    <xs:sequence minOccurs="0" maxOccurs="unbounded">
    <xs:element name="ORDER_LINE">
    <xs:complexType>
    <xs:choice minOccurs="0" maxOccurs="39">
    <xs:element name="LINE_NO" nillable="true" minOccurs="0">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:maxLength value="2000"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    <xs:element name="SALE_UNIT_PRICE" type="xs:float" nillable="true" minOccurs="0"/>
    <xs:element name="PRICE_TOTAL" type="xs:float" nillable="true" minOccurs="0"/>
    <xs:element name="DISCOUNT" type="xs:float" nillable="true" minOccurs="0"/>
    <xs:element name="PRICE_QTY" type="xs:float" nillable="true" minOccurs="0"/>
    <xs:element name="CUSTOMER_PART_NO" nillable="true" minOccurs="0">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:maxLength value="4000"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    <xs:element name="CUSTOMER_PART_DESC" nillable="true" minOccurs="0">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:maxLength value="4000"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    <xs:element name="ORDER_LINE_CHARACTERSTICS" nillable="true" minOccurs="0">
    <xs:complexType>
    <xs:sequence minOccurs="0" maxOccurs="unbounded">
    <xs:element name="CHARACTERISTIC_ITEM">
    <xs:complexType>
    <xs:choice minOccurs="0" maxOccurs="6">
    <xs:element name="CHARACTERISTIC_ID" nillable="true" minOccurs="0">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:maxLength value="2000"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    <xs:element name="CHARACTERISTIC_VALUE" nillable="true" minOccurs="0">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:maxLength value="2000"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    </xs:choice>
    </xs:complexType>
    </xs:element>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    </xs:choice>
    </xs:complexType>
    </xs:element>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    </xs:choice>
    </xs:complexType>
    </xs:element>
    </xs:all>
    </xs:complexType>
    </xs:element>
    </xs:schema>

    Hi Sourashree,
    Thank you for the response and ideas you have given me so far. I can get the fetch the data from the data source without any problem. That is I do the following,
    1.     New Report
    2.     From Create New Connection-> XML
    3.     Provide the u201CLocal XML Fileu201D and have u201CSpecify Schema Fileu201D checked -> Next
    4.     Provide the u201CLocal Schema Fileu201D  -> Finish
    Then I can see the following under XML
    + CUSTOMER_ORDER_CONF_REP_REQUEST
            CUSTOMER_ORDER_CONF_REP_REQUEST
         CUSTOMER_ORDER_CONF_REP_REQUEST/CUSTOMER_ORDER_CONF_REP
         CUSTOMER_ORDER_CONF_REP_REQUEST/ CUSTOMER_ORDER_CONF_REP/ORDER_LINES
         CUSTOMER_ORDER_CONF_REP_REQUEST/ CUSTOMER_ORDER_CONF_REP/ORDER_LINES/ORDER_LINE
         CUSTOMER_ORDER_CONF_REP_REQUEST/ CUSTOMER_ORDER_CONF_REP/ORDER_LINES/ORDER_LINE/ORDER_LINE_CHARACTERSTICS
         CUSTOMER_ORDER_CONF_REP_REQUEST/ CUSTOMER_ORDER_CONF_REP/ORDER_LINES/ORDER_LINE/ORDER_LINE_CHARACTERSTICS/CHARACTERSTIC_ITEM
    And from here if I add the following three I can get all the fields I need to the report
         CUSTOMER_ORDER_CONF_REP_REQUEST/CUSTOMER_ORDER_CONF_REP
         CUSTOMER_ORDER_CONF_REP_REQUEST/ CUSTOMER_ORDER_CONF_REP/ORDER_LINES/ORDER_LINE
         CUSTOMER_ORDER_CONF_REP_REQUEST/ CUSTOMER_ORDER_CONF_REP/ORDER_LINES/ORDER_LINE/ORDER_LINE_CHARACTERSTICS/CHARACTERSTIC_ITEM
    Then I come to the Linking section. Here I canu2019t link anything. There is a common field called u201CInternal_IDu201D but I canu2019t link using it. So I get a message when I click Next. From here I add all the fields.
    For this point onwards only I need help. How do I group, add fields and design the layout so I can get an report output as follows.
    Date
    Order number                                   Authorized code
    Customer No
    Name
    Phone
    Fax email
    Shipping address 1                              Billing Address 1
    Shipping address 2                              Billing Address 2
    Shipping address 3                              Billing Address 3
    Shipping address 4                              Billing Address 4
    Order Line 1 detailsu2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026                      LINE_NO     CUSTOMER_PART_NO          CUSTOMER_PART_DESC     SALE_UNIT_PRICE     PRICE_QTY     DISCOUNT     PRICE_TOTAL
    Characteristic details belonging to Order line 1       CHARACTERISTIC_ID 1  CHARACTERISTIC_VALUE1
                                           CHARACTERISTIC_ID 2  CHARACTERISTIC_VALUE2
                                           CHARACTERISTIC_ID 3  CHARACTERISTIC_VALUE3
    Order Line 2 detailsu2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026
    Characteristic details belonging to Order line 2
    Order Line 3 detailsu2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026
    Characteristic details belonging to Order line 3
    Order Line 4 detailsu2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026
    Characteristic details belonging to Order line 4
    Order Line 5 detailsu2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026
    Characteristic details belonging to Order line 5
    How can I achieve this kind of a layout using the give xml and xsd? Should I use grouping if so how should I do the grouping?
    I have included the full xml and xsd in the first mail I posted but I canu2019t see it now. I can include that again if you want.
    Regards,
    Chanaka

  • How can i use FNDLOAD for XML reports and data defnitions

    I registerd concurrent program and linked xml reports and data defnitions in staging instance, and successfully moved to DEV.. after that stage is refreshed and when i download the details from DEV and uploaded to Stage only concurrent program i can upload...Wheteher we can use FNDLOAD Command for the Data definitions or Data template for the XML Report,used FNDLOAD for the concurrent program, it uploaded only concurrent program details.

    Hi,
    Use XDOLoader.
    Note: 469585.1 - How To Use XDOLoader?
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=469585.1
    Regards,
    Hussein

Maybe you are looking for

  • IPv6 ACLs for ZBFW with changing IPv6 prefix?

    Hi all Is there a trick to keep IPv6 ACLs for ZBFW working when the IPv6 prefix will change ? Background: 6RD based residential internet access. Provider has a /28 6RD-Prefix, and will append the whole 32bits of the DHCP assigned public IPv4 address,

  • Weblogic 7.0.0.1 - Publish To Topic No Consumer Server dies

    We have been working on a problem using Weblogic Tuxedo Connection           whereby we called an EJB which published to a topic at around 200mps.           Using Solaris 2.8           Tuxedo 7.1           We got a case number 347073.           Zach/

  • How to get list of TCODE allowed to be executed for a user

    abap program..to get the list of TCODES allowed by the basis person for a user/me.....code plz....

  • Save Datafiles in Jar File

    Hi, I'm not used to JAR files. Can anyone tell me the best way to save a data File e.g. a config.txt file or serialized object to my application which is a runnable JAR? I think I cannot write to a JAR archive like a filesystem. So get the JAR path a

  • Changing Site Location

    Is there a way to change where the site name information is stored in Dreamweaver? I have Deep Freeze installed in my lab and when we create a site I put the local root folder on the network but the site that I create under New Sites gets deleted whe