Xml or database

Hello,
I'm writing a program that stores pictures (architectural) and emails, letters,... belonging to certain projects. Is it usefull to store the information (place of the file, content of email,...) in xml pages or should i only use a database?
Thanks Bert

The natue of your data mentioned seems to be document centric and not data centric. That means that these data are more hierarchic and semi-structured and not rigid or structured. With this, it is better to use XML to store them. If you are going to make use of searching , you can use XSLT for this. One more thing about XML vs. databases : you can go to Ron Bourret's site for his explanations, visit http://www.rpbourret.com. Hope this helps

Similar Messages

  • Generating XML from database

    I'm a total newbie in XML DB and need advice on generating XML from database.
    The situation is the following: there is a legacy web application which uses an XML document as a configuration file. This document conforms to some well-defined schema. For instance:
    <config>
         <title value="TITLE" />
         <subtitle value="SUBTITLE" />
         <style url="default.css" />
         <widgets>
              <widget id="1" opened="true" />
              <widget id="2" opened="false" />
         </widgets>
    </config>
    It contains portions of static data which are common for all users as well as dynamic personal data.
    Dynamic data comes from two sources:
    1) security considerations (for instance, not all widgets are available for some users) - thus the "master" configuration content must be filtered, but not otherwise modified;
    2) user preferences (for instance, user can set widget2 to be opened by default) - thus values of some attributes must be different for each user. When the user saves her preferences, the entire document with new values is posted back to server.
    We want to try to store user preferences, apply security and generate personalized configuration documents using XML DB.
    So we need advice on storage models and generation procedures - which should be more efficient and easy to support or extend.
    Please note, that there is no requirement to actually store data as XML.
    Thanks in advance!
    P.S.: Sorry for the incomplete initial post.
    Edited by: WxD on 27.09.2010 11:45

    Hi,
    See this link for more details
    http://www.stanford.edu/dept/itss/docs/oracle/10g/appdev.101/b10790/xdb13gen.htm

  • I cannot open my muse project anymore (error: corrupt xml in database)

    I am trying to open my muse project in Muse cc 2014.2 (mac version). This error occured when i am opening the project
    "adobe muse has encountered an error and wil now exit. please report the last few actions you took leading up to this error to the abode muse cc team
    Corrupt xml in database record U1175 class RectPageItem"
    I placed same rollovers before i saved the project yesterday.
    I tried the solve the problem bij uninstal and install Muse again.
    Can anyone help me?

    Hi,
    Could you please share your .muse file with us to investigate? Please email it to [email protected] If your file is greater than 20MB you can use something like Adobe SendNow or SendThisFile or Dropbox. Please do not forget to mention the link to this forum thread in your e-mail so that we can identify the file.

  • Cannot open muse file Error Assert: "Corrupt XML in database record U1 class MuseSite"

    I cannot open the .muse file.  The site was saved as a .muse the saved as html and uploaded to web.  Customer has a change and the .muse file will not open.  The error I get is Error Assert: "Corrupt XML in database record U1 class MuseSite".  How can this be fixed? What happened? Please help. I took the html version to DreamWeaver but it is very discombobulated on the design screen and strange coding on the code view.  Please help, customer needs this change asap.
    The error from the muse log is : 
    Build 8: Sun Jun 9 12:23:11 2013 UTC: Assert: Corrupt XML in database record U1 class MuseSite-DataBase/createPersistFromDataBaseRecord+DataBase/instantiate+DataBase/getRootPe rsist+DocumentConversion$/runConversion+DataBase/open+MuseSite$/openSite+NativeOpenProvide r/openThisFile+MuseImportManager/processFile+MuseImportManager/selectMultipleFilesHandler+ end stack
    Build 8: Sun Jun 9 12:23:11 2013 UTC: EXCEPTION:TypeError: Error #1095: XML parser failure: Unterminated attribute.-DataBase/createPersistFromDataBaseRecord+DataBase/instantiate+DataBase/getRoot Persist+DocumentConversion$/runConversion+DataBase/open+MuseSite$/openSite+NativeOpenProvi der/openThisFile+MuseImportManager/processFile+MuseImportManager/selectMultipleFilesHandle r+end stack

    I sent you the file and the info concerning where the file was stored via email.  I am posting that info here as well.
    You Asked:
    The object that's reporting as damaged is a very important one. We may, or may not, be able to repair the file.
    Was the file stored in a shared folder (i.e. Dropbox, Creative Cloud Files, Box, etc.)? No
    Was it stored on a file server that was accessed from two separate copies of Muse? No
    The file was stored  on my personal Network Storage unit utilizing  an Intellinet NAS with 2 1.5TB drives in a raid array. The file was created on  a Mac Pro v 10.6.8
      Model Name:    Mac Pro
      Model Identifier:    MacPro4,1
      Processor Name:    Quad-Core Intel Xeon
      Processor Speed:    2.66 GHz
      Number Of Processors:    1
      Total Number Of Cores:    4
      L2 Cache (per core):    256 KB
      L3 Cache:    8 MB
      Memory:    8 GB
      Processor Interconnect Speed:    4.8 GT/s

  • Generate database schema in XML from database structure

    hi
    I want to generate the entire database schema in XML from database structure. (Same feature is provided by Altova XMLSpy).
    It would be great if there was some API that does the process of parsing the database structure and generating the XML automatically. A similiar feature is provided by Apache DdlUtils' API, but a stable version is not yet available...
    Please help!
    Thanks in advance.

    Nikhil,
    There is a wealth of information available on the Internet regarding the XML capabilities of the Oracle database.
    Have you done an Internet search for "SQL XML Oracle"?
    Good Luck,
    Avi.

  • Looking for an XML-enabled database system

    Dear all,
    I am looking for a RDBMS (Relational Database Management System) that provides management of XML data in a relational fashion.
    I found the IBM DB 2 XML Extender. However, I am not sure if this system is already in use (because the latest release was in 2003).
    I would be very grateful to you if you could help me to find what I am looking for.
    PS. For RDBMS handling XML data, we find two categories: XML-enabled systems (they store XML data using a special data type like BLOB, CLOB,...), or the native XML systems (which stor XML data in its hierarchical structure, so the fundamental unit of storage is XML document). So, I precise that I am looking for an XML-enabled system and NOT a native XML system.
    Thanks in advance.
    Best regards,

    Thanks for your help,
    To be more clear, I am looking for an XML-enabled database system (which provides only relational techniques to manage XML data).
    Oracle is a Hybrid system (it means that it provides both native and relational fashions to manage XML data, e.g. you can store XML document as XMLType column (native way) or using BLOB data type (relational data type). I am collecting information about the three broad categories of XML database systems (native, XML-enabled, and Hybrid), and I would like to give example of each system. For example, there is BaseX and eXist-db for the first category (native systems), Oracle and IBM DB2 for the third category (each of theme manage XML data in both native and relational fashions). However, for the second category (XML-enabled systems), I don't find more information about the existing systems, there is for instance postgreSQL which is an XML-enabled system, but I don't find more information about its architecture, its XML data storage model, API for querying and updating, and so on.
    Please don't hesitate to help me if you get some documentation about postgreSQL or about another XML-enabled database system.
    Thank you again.
    Best regards.

  • XML and database of documents

    Please help to a newcomer to XML:
    I intend to create XML based database of documents and present
    it on Web.
    Documents are of fixed structure however few elements will be up
    to ;K of size. They will be static.
    Total size of a document is less then 4K, expect some 10,000+
    entries ?
    Need to
    - Search in DB by keywords and also support free search in
    documents. Once found and selected,full document is displayed.
    - Create discussion topic with threads, where contributions may
    have pointers to selected elements of these documents and these
    links are higlighted.
    Please advise how to work on it and also how to handle inserts
    into DB.
    - Should one store the whole documents including element tags as
    CLOB ?
    Data will be prepared from scratch so my though is to
    prepare some templates to be used by a XML editor to prepare
    XML files. Create DTD (or use an existing one) and use parser
    (which one is suitable?) to validate correctness.
    Q1: Some elements ttheoreticallyv ask for being handled as
    attributes. There are, however some 50+ possible values and I
    donFt think a DTD should be prepared to handle this by itself!
    Is this appropirate ?
    Q2: How to insert data ? Are there tools available or should
    one process data using Java or PL/SQL and then insert into
    appropriate tables?
    Q3: Use interMedia to search DB, then XSQL to retrieve relevant
    data and present via XSL ?
    Thanks !
    Peter
    null

    Hi,
    Thank you for your answer,
    Actually this is the way I'm doing the merge process today: using Java code with DOM to merge all documents to one XML document.
    I'm looking for ways to not using the DOM parsing becasue it is very expensive in CPU and memory (DOM is the worst XML parser in a performance point of view).
    SAX parsing is also not appropriate because the merge process that I need to do is vey complicated.
    This is the reason why I thought of using XSLT.
    My question is if XSLT can do the work or is it way off?
    Thanks,

  • Newbie:need help to use xml as database

    helo experts ,
    i am totally new to Xml/java api
    i need to develop a application in which my java program interact with a xml file
    which will contain product inventory of a online seller store(i means what goods they are selling their price and something) and i ll use this xml file to search by my java program to find a specified product and it's price range,
    now i want also a resource so that less educated person can enter their inventory information in xml file(i means less educated person here who have no knowledge about xml like if i use a databse like oracle or simple msaccess,
    for this purpose i ll simple provide an interface to the user to enter inforfation without let him knowing about any database detail)
    so is it possible what do i want and please give me some guidence to do this task..i am reading about xml but am not understanding is there any special software that provide interface to enter and delete elements in xml file or i have to create it with java language ....s

    hello exzperts
    any suggestion ..............

  • How to create an XML Oracle database schema

    Hello, I would like to generate an XML file that contains the schema of my Oracle database so that I can reference one file for column names and table names. I do not need any data from the tables, just the basic layout: e.g. table names, their respective column names.
    Obviously, I would like the ability to generate this file each time we make changes to our DB, so its generation will be an ongoing process.
    My question is, what is the best tool for this? Or the most widely accepted? Can anyone help with this?

    To get database metadata as XML use Oracle Web RowSet.
    //Import the oracle.jdbc.rowset package classes.
    import oracle.jdbc.rowset.*;
    //Import the RowSetMetaDataImpl class.
    import javax.sql.rowset.RowSetMetaDataImpl;
    //Create a OracleWebRowSet class.
    OracleWebRowSet webRowSet=new OracleWebRowSet();
    /*Set the datasource name to obtain a JDBC connection with the database. The datasource name is configured in the data-sources.xml file. */
    webRowSet.setDataSourceName("jdbc/OracleDataSource");
    //Set the SQL query command for the OracleWebRowSet class object.
    webRowSet.setCommand(selectQuery);
    selectQuery is a SQL command variable which is input from a JSP.
    //Set the username and password to obtain a JDBC connection.
    webRowSet.setUsername("OE");
    webRowSet.setPassword("<password>");
    //Set the read only, fetch size and max rows attributes of the OracleWebRowSet object.
    webRowSet.setReadOnly(false);
    webRowSet.setFetchSize(5);
    webRowSet.setMaxRows(3);
    //Run the SQL command specified in the setCommand() method.
    webRowSet.execute();
    /*A Web RowSet gets created consisting of the data retrieved from the database table with the SQL query.  Generate an XML document from the WebRowSet.*/
    OutputStreamWriter output=new OutputStreamWriter( new
    FileOutputStream(new File("c:/output/output.xml")));
    webRowSet.writeXml(output);

  • Help required in writing And Reading Xml From Database

    Hi
    i m new to java.
    i m facing problem while writing Xml file from Mysql Database in java i m using the WebRowSet
    and also for Reading WebRowSet
    after reading the Xml i have to save this in Database
    (required source code)
    is there any one to help me in this way
    regards
    aamir

    shadab_think_globally wrote:
    {noformat}*hi everybody,
    please send me a ajax with jsp application
    suppose i enter a word in text area ajax will populate/suggest all string from database ,who started
    from that entering character(s).like a google string search.
    please send full source code
    *{noformat}how about you do it yourself?

  • Oracle 10.1, Whats the best way to load XML in database?

    Hi All,
    I am a typical Oracle developer. I know some Java and some XML technologies, but not an expert.
    I will be receiving XML files from some system, which will be,
    - of reasonable size like 2 to 15 MBs
    - of reasonable complexity, like the root element have children, grand-children and great-grand-children, with attributes and all
    - Every day it needs to be loaded to Oracle database, in relational format
    - we need not update the XML data, only put the XML data in relational table
    My questions are,
    - With Oracle 10.1, XML DB, what is the best way to load this XML file to relational Oracle tables ?
    - What can be the steps in this process ?
    - In the documentation, I was lost and was not able to decide anything concrete
    - If I write a pure Java program with SAX API and load the data to Oracle database in same program, is it a good idea?
    - Is there any pure Oracle based way to do this?
    - If I want to avoid using DOM parser, as it will need more JAVA_POOL_SIZE, what can be the way ?
    Please help.
    Thanks

    Many customer solve this problem by registering an XML Schema that corresponds to their XML and then creating relational views over the XML that allow them to access the content in a relational manner. They then use insert as select operations on the relational views to transfer data from the XML into relational tables where necessary. There are a large number of threads in this forum with detailed examples of how this can be done. Most of the customers who have adopted this approach have discovered that this is the least complex approach in terms of code that to be developed / maintained and offeres acceptable performance.

  • Data corruption when inserting xml to database

    Hi,
    I have discovered that some data get changed when I try to insert them into the database.
    It seems that at a certain point, there is a buffer somewhere that runs full, and then some data get missing, and get replaced by other (so that some data are duplicate, while some are missing).
    I get no error messages from the script indicating that anything is wrong.
    Anyone who have an idea of where changes need to be made to the script??
    thanks in advance,
    Reidun
    I use the following script:
    import oracle.xml.sql.dml.*;
    import java.sql.*;
    import oracle.jdbc.driver.*;
    import oracle.jdbc.*;
    import java.net.*;
    public class test_java
    public static void main(String args[])
    if (args.length != 5)
    System.out.println("Usage: test_java <xml_directory> <table_name> <username> <passwd> <database>");
    System.exit(-1);
    String dirName = args[0];          // path to xml file
    String tabName = args[1];          // table into which to insert
    String fileName = dirName + "/" + tabName + ".xml";     // file name containing the xml doc
    System.out.println("Read from " + fileName);
    System.out.println("Insert into table " + tabName);
    String s_username = args[2];
    String s_passwd = args[3];
    String s_db = args[4];
    String s_connect = "jdbc:oracle:oci8:" + s_username + "/" + s_passwd + "@" + s_db;
    System.out.println("Connect: " + s_connect);
    try {
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    Connection conn =
    DriverManager.getConnection(s_connect);
    OracleXMLSave sav = new OracleXMLSave(conn, tabName);
    sav.setDateFormat("yyyy-MM-dd HH:mm:ss");
    sav.setIgnoreCase(true);
    sav.setRowTag(tabName);
    System.out.println("createURL...");
    URL url = sav.createURL(fileName);
    System.out.println("URL = " + url);
    int rowCount = sav.insertXML(url);
    sav.close();
    System.out.println(" successfully inserted "+rowCount+
              " rows into "+ tabName);
    conn.close();
    catch (Exception e) {
    System.out.println("Error: " + e.toString());
    System.out.println("Aborting XML import for " + tabName);     

    Try setting the batch size to 1 ( ie oracleXMLSave().setBatchSize(1);)
    The batch size defaults to 17 and sometimes this might cause similar behavior. It wonder if there is a bug already reported on this.
    Alex

  • XML versus Database (speed)

    Hello
    Is XML parsing quicker than getting data from database ( with connection pooling), and if , how faster it is ??
    Thanx a lot

    this sounds like cheap philosophy to me, because so many factors are to be taken in account when benchmarking two very different technologies.
    i think the real question is the one being asked again and again: native XML database vs RDBMS?
    the answer depends on the type of data you manipulate: documents or raw data? how do you want to select the data? do you have to perform stats, joins...

  • XML and Database

    Hi,
    I have a XML file with Emp data on it. I have to load(data) into database(ver8.1.6).
    How can i do this ? Does any one have script ?
    Thanks in advance.

    Do you want to load the XML document in its entirity? Or do you want to parse the data out and insert it in a table.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Dealing with XML  as  database

    Hello members,
    My requirement is to deaI with xml totally as a database instead of taking any data base(like oracle etc..).I.e i have to deal with all the operations like update,delete, insert etc to the xml file from my java application.So that my application willl idependent from database.
    I am not finding any information regarding doing update and delete operations from a java application to XML file(the information i am getting is only how to read and write into the XML file ) and i am not able implement all these stufs to my project.
    If any body have any idea help me so that i can move further.
    Thanks
    Mahi

    If you have decided to go ahead with using XML as a d/b then JAXB will be an ideal place to start, at some point you will need to convert XML to java objects and vice versa, then search for the appropriate node in the xml and do delete or update option.
    If you are still pondering over - to use or not to use XML I suggets you to use simple flat files (thats what I do in my project; and it does work fine)
    I store incomming & outgoing SMS in flatfiles (serialized objects). processes like insertion/deletion/update are all done by keeping the file pointer position in memory and I traverse to the exact location (using io.randomAccessFile) of the file and change the record.
    You may try a similar approch in using XML where you may allocate same size for each child node in the XML and mapping each child to a File pointer position in memory and traverse to the exact child to delete/update/insert, so when you make an update - you will actually be writing to a file pointer position in the file and the XML child node will be re-written-over by a new XML data (similar to update in a d/b); when you delete a XML chile node, traverse to that File pointer position and remove it in the file, but that file pointer position remains open/active; where you can write your next record...

Maybe you are looking for

  • Need to get the list of all procedures called in an object

    Hi, I am trying to find the list of all proceudres called in an object. I can get the list of packages and individual procedures/functions using dba_dependencies, all_dependencies or user_dependencies. However this would not give me the list of proce

  • Email unread counter error

    My unread mail counter stays on 14, even when I have now. I have loged out and tried restart, etc. My concern is whether there are unread mails or not.

  • Can't use custom paper size in OfficeJet 7000

    I"m trying to print invitations and returns on my OfficeJet 7000 Wide Format and it seems like half-sheet size paper is not supported. Anyone have experience / success / a clue? Thanks!

  • Looking for Info on DBMS_SHARED_POOL

    Can anyone direct me to better documentation about DBMS_SHARED_POOL (preferrably with examples) than is in the Supplied PL/SQL Packages document? It is (as one expects from Oracle Documentation) extremely terse. Thanks

  • Dictionary lost

    I have just opened an existing RH7 project to find spell check wiggly red lines everywhere as though I have nothing in my dictionary. What can have happened? And is there a way to get it back? I don't want to have to add all my terms to it again. Any