Designing XML Database

Hello,
I'm in the process of designing a relatively large XML DB System and I'm having some doubts regarding the best structure for the main XML document, in order to optimize search as well as organizing the document in such a way that is not relational (as I usually tend to think when designing an XML DB, for background reasons).
Basically, we're trying to create a single XML document, but there's a lot of information spread in other entities and tables. We´re trying to minimize the tables and aggregate as much information as possible in a single XML file, to avoid any "relational" query, but also without getting redundant. To illustrate what I mean, here is an example:
<?xml version="1.0" encoding="UTF-8"?>
<doc>
     <people>
          <person>
               <name> Johnny </name>
               <address> St. Street, 444 </address>
          </person>
          <person>
               <name> Tom </name>
               <address> Mr. Street, 444 </address>
          </person>
          <person>
               <name> Cat </name>
               <address> Dr. Street, 444 </address>
          </person>
     </people>
     <vehicle>
          <driver>
               <!-- redundant information, like above -->
               <person>
                    <name> Johnny </name>
                    <address> St. Street, 444 </address>
               </person>
          </driver>
     </vehicle>
</doc>As you can see above, we have some redundant information repeated. Also, most importantly, I have no way of having some referencial integrity. Now, in the next example, I have tried adding a reference, using an ID node in the person element, in order to avoid the redundancy and get some integrity:
<?xml version="1.0" encoding="UTF-8"?>
<doc>
     <people>
          <person id="10">
              <name> Johnny </name>
               <address> St. Street, 444 </address>
          </person>
          <person id="11">
               <name> Tom </name>
               <address> Mr. Street, 444 </address>
          </person>
          <person id="12">
               <name> Cat </name>
               <address> Dr. Street, 444 </address>
          </person>
     </people>
     <vehicle>
          <driver>
               <!-- storing just an ID reference> -->
               <person>
                    <id>10</id>
               </person>
          </driver>
     </vehicle>
</doc>But that's my point: am I thinking "relational" here? Is there any other way to solve this, in a more efficient and secure way?
best regards,
- Breno

You may like to take a look at HyperJAXB that I have used recently for a structure similar to yours. In HyperJAXB, you use JAXB binding with Hibernate on relational databas. So that you can get the results as XML document but you can also leverage relational database structure. And you can control all that without writing any code by adding annotations to XML schema document.
-- Deha Peker

Similar Messages

  • Require technical advice for designing XML database

    Dear Fellows
    I need your technical advice for the way storing the XML files into the database. We have experiments that produces more than 300 XML files. I want to store them in the database. There should be a mechanism (way) to store XML files related to one experiments. I can not change or update anything in the XML files to put something like counter or anything.
    Can you please advice me or give any hint that how should i store experiments with their XML files with their unique key. Another thing when i have new experiment XML files to store how to store them
    any help and any hint will help in a great manner
    regards
    Imran Sabir

    Google http://www.oradev.com/xml.jsp
    http://articles.techrepublic.com.com/5100-22-5075453.html

  • XML database not loading

    I have a xml database that has some information which is loaded into a drop down menu on my form. While I am in Live Cycle Designer and use the pdf preview, the dropdowns populate correctly and show what is in the database but when I open up the form in Adobe Reader, the dropdown show null. How can I remedy this problem?

    You can use the importXFA() method to import data via scripting.
    this.importXFAData("../MyFormData.xml");
    Note: This script cannot be run directly from a button in your form.
    You'll have to call it from a privileged context like the console window or a folder level script.

  • XML Database Contract in Hoffman Estates, IL

    Hi,
    Sorry about using this forum for job posting, but I can't find any candidates with XML database experience. I have a two month Oracle XML Database contract in Hoffman Estates, IL. The pay rate for this position is open and you do not have to be located in Hoffman Estates. In this contract you will be working with Enterprise Application Integration utilizing J2EE development platform, which includes: IBM WebSphere apps server, Oracle XML DB, and SonicMQ/XQ messaging infrastructure.
    Job Description:
    Design, develop and deploy the Oracle XML database. Work closely with the project team on the overall integration.
    Skill                Experience      Need
    1) XML technology      Expert           Required
    2) Oracle XML DB      Expert           Required
    3) J2EE technology      Expert           Desired

    I have some Interface Mapping questions I was hoping someone could help me with. As you know, my source is an XML File and my target is an OracleDB. I'll start with the "EFFECTIVEDATE" field which was automatically mapped when I added the Source and Target Datastores. As I previously mentioned, this caused an error "Target Column EFFECTIVEDATE: Data may be truncated: the target Column is smaller than the source Column". After looking further into it, would the problem be that the "EFFECTIVEDATE" datatype in the XML is "DATETIME" whereas the "EFFECTIVEDATE" datatype in the database is "TIMESTAMP"? If so, what would be the fix for this? Could I convert it in the Implemenation Mapping like so? -
    CONVERT(MONEY.EFFECTIVEDATE,TIMESTAMP)
    Would using that in the Implementation simply do the trick?
    Anyway, moving onto some of the other TARGET fields...
    -ACTIVITYGUID
    This should be an automatically generated new GUID value. How could I implement this into the Implementation?
    -TRANSACTIONGUID
    I'll need to query some of the other tables in the database in order to get this value. Is this allowed in the Implemenation? Do I have to add said tables to the target somehow? Can I just query the other tables in the Implementation field using normal select statements, etc.? I'm a bit confused on how this would work...
    -TYPECODE
    This needs to be a fixed value of '01'. How do I simply do that in the Implementation?
    The other fields will all be implemented similar to the above so those are the main questions I have for now. Any help would be appreciated.
    Thanks again for your help.

  • Importing XML database to create equivalent mysql database

    I have created an XML database.Now I need to create a MySQL database with similar structure.
    Due to it's nested structure and complex dependencies, I find it difficult to identify and design the tables and relations in MySQL(I fear of redundancies).
    So,I am looking for some tool or a way to create an equivalent MySQL database.
    Thanks.

    fine.
    But i think exp/imp binary don't support 9i to 10g import.
    so you using 10g export binary to take the 9i database full backup and import into 10g database use the 10g export binary.
    Regards
    Rajabaskar

  • Xml data into non-xml database.. solution anyone?

    Hi,
    My current project requires me to store the client's data on our servers. We're using Oracle9i. Daily, I will download the client's data for that day and load it into our database. My problem is that the data file is not a flat file so I can't use sql*loader to load the data. Instead, the data file is an xml file. What is the best way to load xml data into a non-xml database? Are there any tools similar to sql*Loader that will load xml data into non-xml database? Is it the best solution for the client to give me an XML dump of their data to load into our database, or should I request a flat file? My last resort would be to write some sort of a script to parse the xml data into a flat file, and then run it through sql*loader. Is this the best solution? One thing to note is that these files could be very large.
    Thanks in advance.
    -PV

    I assume that just putting the XML file into an
    extremely large VARCHAR field is not what you want.
    Instead, you want to extract data elements from the
    XML and write them to columns in a table in your
    database. Right?Yes. Your assumption is correct.
    It sounds like you already have a script that loads a
    flat file into your database. In that case I would
    write an XSL transformation that converts the client's
    XML into a correctly-formatted flat file.Thank you. I'll look into that. Other suggestions are welcome.

  • XML Database Development with JDeveloper?

    Hello, folks:
    I am trying to create XML database through JDeveloper.
    Database: Oracle 10g
    IDE: JDeveloper 11.1.2.2.0
    JDBC Driver: Oracle ojdbc6.jar
    I connect successfully to the database through JDeveloper. There I see many folders listed, e.g. Tables, Views, Indexes, XML Schemas, XML DB Repository, and others. My problem is that when I try to save a large schema file (that I already validated on my local machine) that is roughly more than 300 lines, then JDeveloper is unable to save the file. It saves only very small files that are about 100 lines or less. The error message simply is: "Unable to save XML Schema blah.filename@local (Error saving XML Schema).
    I tried to do it in Oracle SQL Developer too, but got the same error. Can someone please help me understand this problem and how to fix it? Do I need to specify some settings in JDeveloper or SQL Developer? Thanks a lot in advance.
    Asif

    Please raise your question to the forum dedicated to JDeveloper 11:
    JDeveloper and OC4J 11g Technology Preview
    Regards,
    Didier.

  • Someone please help me Design the database of bill of materials

    I want to design the database of bill of materials which contain item and amount.
    So the amount of child will depend on amount of parent in term of ratio. For example
    A(1)               A(2)
    |         ---->     |
    B(2)               B(4)
    My problem is when i try to add the parent and child . Let A is the parent of B , If i try to add A to be the child of C
    I want B to come along with A as well. For example
    A                       C
    |     C  --->        |           For this I have to store the relation of all item in  my list to check that this item have a child or not if yes
    B                             A              The child must come along with its parent , What the Er-diagram
    should be for all of my requirement?
                                    |
                                    B

    >I want B to come along with A as well. For example
    You can do that, but that is not automatic. You need to do some programming.
    It is better to use hierarchyid representation of the tree over traditional FK referencing.
    Tree using hierarchyid example:
    http://www.sqlusa.com/bestpractices2008/orgchart/
    BOL: "Model Your Data Hierarchies With SQL Server 2008
    .....The manufacturing system behind automobiles; the organization of a country into states, counties, cities, and postal codes; the description of a home entertainment system—what do these things have in common? The simple answer is that each
    describes a hierarchy.
    SQL Server 2008 supports a new data type, HierarchyID, that helps solve some of the problems in modeling and querying hier­archical information. I will introduce you to this data type by discussing a pattern commonly used in manufacturing
    known as bill of materials (BOM), or bills. Starting with a brief discussion of BOMs, I will illustrate how this kind of data can be modeled. I will also present an implementation of this model in SQL Server 2005. Then I will show you how the HierarchyID data
    type can be used to implement the model in SQL Server 2008.
    Hierarchical Data
    Automobiles are amalgamations of many components, such as engines, drivetrains, electronics, and steering. In the United States, our geographic territories are divided into states and are then sub-divided into jurisdictions called counties.
    Counties are then further subdivided in different ways by different agencies. The United States Census Bureau, for example, composes them from Census Tract Areas. The U.S. Postal Service routes mail delivery by Zone Improvement Plan (ZIP) codes. Geographic
    information systems (GIS) may aggregate census tracts and ZIP codes together to provide users with a familiar spatial reference for an area.
    A recent trip to a local electronics store to evaluate a replacement home entertainment system pointed to a similar sort of hierarchical system—all the combinations of possible components and options left my head spinning! I wondered
    how such systems could be modeled and implemented in a database system.
    The relationship between an automobile and its engine represents a hierarchy: the automobile contains the engine. The relationship is the same for the drivetrain, the electronics, and the steering. The relationship is containment. A
    similar hierarchy can be observed in the relationship between the different groupings of geographic or census data.
    Hierarchies exist everywhere, yet implementing them in the context of a relational database frequently proves to be a challenge. A typical approach is to represent the hierarchy using a parent/child relationship with one or more tables.
    While this approach certainly works in many cases, it has a few shortcomings. Such solutions must carefully consider how the referential integrity will be maintained. And while querying the depth and breadth of such tables was considerably simplified in SQL
    Server 2005 with the introduction of recursive common table expressions, writing queries against these types of tables can still be problematic when joins against many tables are required.
    A Bill of Materials Problem
    A few years ago I was working on a system being developed by a manufacturing company to help their dealers specify the components needed to build center-pivot irrigation systems. The software produced a list of components needed to custom-build
    the desired pivot (the totality of a center-pivot irrigation system is simply referred to as a pivot within the industry). The required components were determined based on geography, soil type, and the intended crops planted in the areas to be covered as well
    as the hydrologic and structural considerations of the device itself.
    Underpinning the solution would be a SQL Server database. The purpose of the database was to store information about the components available to build the pivot. However, when we generated the specification for manufacturing, we needed
    to identify those components as BOMs.
    Some bills represented a collection of physical parts that would be assembled into a system component. For example, every pivot needed a pump to draw water from a well into the system. That pump might be electrically powered, meaning
    it needed a transformer and fuse box, too. Or the pump might be fuel powered, meaning it needed a tank, a fuel pump, and hoses to connect the pump to the tank. In either case, the required parts for the pump would be listed in a pump bill.
    The bill for a complete pivot would include a collection of other bills. For example, a standardized pivot might consist of a tree of bills for the pump, another tree of bills for the spans of pipe used to deliver water, and bills for any other equipment
    needed to build that pivot system."
    LINK: http://msdn.microsoft.com/en-us/magazine/cc794278.aspx
    Kalman Toth Database & OLAP Architect
    SELECT Query Video Tutorial 4 Hours
    New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012

  • Someone please help me Design the database of bill of materials with 1 item can have mutiple parent

    I got this sample from  Uri
    Dimant (MCC, MVP) ,
    The problem is i want 1 item to have multiple parent  but this example don t   let 1  item to have multiple parents. this is not suit for my objective. 
    CREATE TABLE Employees
      empid   int         NOT NULL,
      mgrid   int         NULL,
      empname varchar(25) NOT NULL,
      salary  money       NOT NULL,
      CONSTRAINT PK_Employees PRIMARY KEY(empid),
      CONSTRAINT FK_Employees_mgrid_empid
        FOREIGN KEY(mgrid)
        REFERENCES Employees(empid)
    CREATE INDEX idx_nci_mgrid ON Employees(mgrid)
    SET NOCOUNT ON
    INSERT INTO Employees VALUES(1 , NULL, 'Nancy'   , $10000.00)
    INSERT INTO Employees VALUES(2 , 1   , 'Andrew'  , $5000.00)
    INSERT INTO Employees VALUES(3 , 1   , 'Janet'   , $5000.00)
    INSERT INTO Employees VALUES(4 , 1   , 'Margaret', $5000.00) 
    INSERT INTO Employees VALUES(5 , 2   , 'Steven'  , $2500.00)
    INSERT INTO Employees VALUES(6 , 2   , 'Michael' , $2500.00)
    INSERT INTO Employees VALUES(7 , 3   , 'Robert'  , $2500.00)
    INSERT INTO Employees VALUES(8 , 3   , 'Laura'   , $2500.00)
    INSERT INTO Employees VALUES(9 , 3   , 'Ann'     , $2500.00)
    INSERT INTO Employees VALUES(10, 4   , 'Ina'     , $2500.00)
    INSERT INTO Employees VALUES(11, 7   , 'David'   , $2000.00)
    INSERT INTO Employees VALUES(12, 7   , 'Ron'     , $2000.00)
    INSERT INTO Employees VALUES(13, 7   , 'Dan'     , $2000.00)
    INSERT INTO Employees VALUES(14, 11  , 'James'   , $1500.00)
    WITH EmpCTE(empid, empname, mgrid, lvl)
    AS
      -- Anchor Member (AM)
      SELECT empid, empname, mgrid, 0
      FROM Employees
      WHERE empid = 1
      UNION ALL
      -- Recursive Member (RM)
      SELECT E.empid, E.empname, E.mgrid, M.lvl+1
      FROM Employees AS E
        JOIN EmpCTE AS M
          ON E.mgrid = M.empid
    SELECT * FROM EmpCTE
    My object is
    I want to design the database of bill of materials which contain item and amount.
    So the amount of child will depend on amount of parent in term of ratio. For example
    A(1)               A(2)
    |         ---->     |
    B(2)               B(4)
    My problem is when i try to add the parent and child . Let A is the parent of B , If i try to add A to be the child of C
    I want B to come along with A as well. For example
    A                       C
    |     C  --->        |           For this I have to store the relation of all item in  my list to check that this item have a child or not if yes
    B                            
    A              The child must come along with its parent , What the Er-diagram should be for all of my requirement?
        |
        B
    Base on the example that Uri
    Dimant gave me ,  i have to stroe 1 item wtih multi parents for example if b is a child of a And b  have c as child , When i insert D as a parent of B   , c will automatic come along with B , But this not seem gonna work.
    item   Parent 
     A      NULL
    B         A
    C         B
    B         D
    Am i wrong to go this way  , any idea

    thanks Uri
    Dimant
    I am
    little confuse about how can i write
    hierarchy sql  from this relation  , Thanks
    so far i got 
    WITH EmpCTE(cid, cname, pid, lvl)
    AS
      SELECT      cid , cname ,  children.pid , 0
      FROM            children INNER JOIN
      parents ON children.pid = parents.pid
      where  cid = 1
      UNION ALL
      SELECT      E.cid , E.cname ,  E.pid , M.lvl+1
      FROM       ( select  cid , cname , children.pid FROM  children INNER JOIN
      parents ON children.pid = parents.pid) AS E JOIN EmpCTE AS M
          ON E.pid = M.cid
    SELECT * FROM EmpCTE  

  • How to create simple XML database in oracle 11g

    Hi,
    what are the steps to followed to create a simeple custormer XML database.
    Like storing .xml file into XMLType, writing simple xml schema.....like that
    how to register the .xsd
    how to insert the xml data
    how to querying the the data base with xquery
    Thanks in Advance

    Have a look a the FAQ on the main page of this XMLDB forum. That's a good source to start (besides the XMLDB Developer Guide manual).

  • About this XML database

    Today I have found these definitions:
    1.Native XML Database (NXD):
    a) Defines a (logical) model for an XML document -- as opposed to the data in that document -- and stores and retrieves documents according to that model. At a minimum, the model must include elements, attributes, PCDATA, and document order. Examples of such models are the XPath data model, the XML Infoset, and the models implied by the DOM and the events in SAX 1.0.
    b) Has an XML document as its fundamental unit of (logical) storage, just as a relational database has a row in a table as its fundamental unit of (logical) storage.
    c) Is not required to have any particular underlying physical storage model. For example, it can be built on a relational, hierarchical, or object-oriented database, or use a proprietary storage format such as indexed, compressed files.
    2.XML Enabled Database (XEDB) - A database that has an added XML mapping layer provided either by the database vendor or a third party. This mapping layer manages the storage and retrieval of XML data. Data that is mapped into the database is mapped into application specific formats and the original XML meta-data and structure may be lost. Data retrieved as XML is NOT guaranteed to have originated in XML form. Data manipulation may occur via either XML specific technologies(e.g. XPath, XSL-T, DOM or SAX) or other database technologies(e.g. SQL). The fundamental unit of storage in an XEDB is implementation dependent. The XML solutions from Oracle and Microsoft as well as many third party tools fall into this category.
    3.Hybrid XML Database (HXD) - A database that can be treated as either a Native XML Database or as an XML Enabled Database depending on the requirements of the application. An example of this would be Ozone.
    Which of them would you put XML DB in?

    If we consider the duality of the XMLType (store XML documents in CLOB's and structured storage with XML Schemas), could we say that it is an hybrid XML database?
    Native->CLOB's
    Enabled->structured storage
    I suppose this cuestion is a bit subjective, but I would like to know your opinions.
    Thanks in advance!

  • XML Database in Apps Databases

    Hi,
    What is the use of XML database in Apps Databases...it has XML Schema...etc etc..what purpose is that...

    If you are using XMLTYPE in stored procedures,
    views, functions, columns or tables you need the XDB
    feature in order for the base XMLTYPE to have
    complete functionality of it's member functions.
    This means if you were directed to remove XDB for
    some other reason you must follow the steps to put
    it back in if you want to use the XMLTYPE. You will
    also require it if you are using any of the standard
    pl/sql apis such as DBMS_XMLDOM and DBMS_XMLQUERY
    to name a couple.Yes, this is from the first note. If you check the other one, you would also find that Oracle XML Database has to be installed correctly (Oracle 10g Release 2 and above) in order to have a successful interMedia installation. For getting more details about "Oracle interMedia", check the the same note (Question 1).

  • XML database query through Java

    Hi all.
    I am collecting information about a little application i am trying to build:
    I have an XML database with records divided in a lot of subdirectory (with three or four .xml files);
    directories' names are defined by date in format "yyyymmdd",
    the file within are "date_something.xml":
    what is the best way to access it by a web app or a java class to search all the dirs adn print results in a readable way (aka not in cmd) ? I need first to define a period of time to search and then some attribute or node to print referred to some element.
    I was guessing to use xpath, anyway I ve tryed JSP but it is too difficult and the query i have to do are really simple to build a full servlet.
    I am learning xalan through servlet and I think in future this will be my choice but now i need to collect the data by queries without any automation, just to have results for researching and paper writing.
    The main problem I found is to search a full series of directory, with transformations i can find out stuff from a single file, but how to do it for a system of directories?
    Any suggestion or link to resource would be good also.

    lm00 wrote:
    ProjectMoon wrote:
    By XML database do you mean an actual XML native database, or just a bunch of XML files in a directory structure? If it is an actual XML native database, you should probably use the XML:DB API. If they are just flat files you will need to probably make something that is able to navigate through your directory structure to the documents you want. Once you have that, you can then use XQuery or XPath to get information from those documents.The data is a bunch of directories named by date in format "yyyymmdd", inside each of these there are three or four files .xml
    All files have data definitions and schemas but i dont think they are a 'database'. What do u mean "something to navigate through"? A class? Suppose I would like to do it as a webapp what should i have to do?
    Yes, I basically meant a class. Before querying the XML file you need something that will retrieve its location. If it's by date you could probably concoct something that takes a Date object and returns a set of File objects. Internally it would traverse the directory trees and find the proper XML file(s).
    >>
    If you have a LOT of XML documents I honestly recommend something like the eXist XML Native Database, or another XND. I have been playing with them lately and they are very useful.in this case what i have to do? Take the data and put it into a database by this tool? And then I should acces it by a JSP? There is a program using Xpath instead?Well, yes. You would put the files in the XND. Although I don't know if that's useful or not in your situation. It all depends. I also think you're a bit confused as to what JSPs and XPath are...
    JSPs are just Java Server Pages, which get dynamically compiled into servlets. If you are following the MVC pattern for servlets/JSP (which you should), JSPs represent your views while servlets are the controllers. The model would be your XML data in this case. XPath is a way to get at that data. If it was in an XND, you could just throw an XQuery/XPath expression at the database and it would give you back XML documents/fragments representing the results of your query. You don't have to make your own system to find the XML documents. Of course, you do have to learn how to use an XND.
    Perhaps you should separate what you are trying to do. You have two problems: 1) how to get the XML data you need. 2) How to present it. You should separate those two completely and learn how to do both before attempting to put it together.
    Edited by: ProjectMoon on Oct 21, 2009 12:05 PM

  • Component XML database is in INVALID state, while quering dba_registry,

    How to make the component XML valid

    Did You performed recently any upgrade?
    Was upgrade sucessfull? No errors?
    Please reffer to metalink note 243554.1 - How to Deinstall and Reinstall XML Database (XDB).
    If You are using XDB, then You will have to reinstall it.

  • Xml database error

    Create a table employee having (dept_id : number, employee_spec : XMLType).
    The employee_spec is a schema with
    attributes emp id, name, email, acc_no, managerEmail, dateOf Joning.
    Insert 10 tuples into employee table.Fire the following queries on XML database.
    a) Retrieve the names of employee.
    b) Retrieve the acc_no of employees.
    c) Retrieve the names,acc_no, email of employees.
    d) Update the 3rd record from the table and display the name of an employee.
    e) Delete 4 th record from the table.
    SQL> connect hr/tiger@bom4;
    Connected.
    SQL> create table employee
    2 (
    3 dept_id number(8),
    4 employee_spec sys.xmltype
    5 );
    Table created.
    SQL>
    SQL> INSERT INTO employee VALUES
    2 (
    3 100,
    4 xmltype(
    5 '<employees>
    6 <emp id="1">
    7 <name>abhijeet gole</name>
    8 <email>[email protected]</email>
    9 <acc_no>111</acc_no>
    10 <dateOfJoining>1994-11-16</dateOfJoining>
    11 </emp>
    12 </employees>'))
    13 ;
    xmltype(
    ERROR at line 4:
    ORA-00904: invalid column name
    SQL> INSERT INTO employee VALUES
    2 (
    3 100,
    4 sys.XMLTYPE( '<employees>
    5 <emp id="1">
    6 <name>abhijeet gole</name>
    7 <email>[email protected]</email>
    8 <acc_no>111</acc_no>
    9 <dateOfJoining>1994-11-16</dateOfJoining>
    10 </emp>
    11 </employees>'))
    12 ;
    sys.XMLTYPE( '<employees>
    ERROR at line 4:
    ORA-22876: this user-defined type is not allowed or it cannot be used in this
    context

    Yep, works fine on 10.2...
    SQL> ed
    Wrote file afiedt.buf
      1  create table employee
      2  (
      3  dept_id number(8),
      4  employee_spec xmltype
      5* )
    SQL> /
    Table created.
    SQL> ed
    Wrote file afiedt.buf
      1  INSERT INTO employee VALUES
      2  (
      3  100,
      4  xmltype(
      5  '<employees>
      6  <emp id="1">
      7  <name>abhijeet gole</name>
      8  <email>[email protected]</email>
      9  <acc_no>111</acc_no>
    10  <dateOfJoining>1994-11-16</dateOfJoining>
    11  </emp>
    12* </employees>'))
    SQL> /
    1 row created.
    SQL>What version of SQL*Plus are you using? Ensure that it's up to date with the database version.

Maybe you are looking for