Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

CHAPTER 1 Introducing Oracle XML DB > What Is Native XML Storage?

What Is Native xml Storage?

Native XMLType storage is essential to XML DB operations. Let’s start by learning a few key details about it.

Well-Formedness Rules

As a native XML object, XMLType only stores well-formed XML documents or XML fragments. The following is an example XML document (john_smith.xml):

<?xml version=“1.0” encoding=“UTF-8”?>

<contact xmlns=“http://xmlbook.com/sample/contact.xsd” id=“1”>

     <category>customer</category>

     <first_name Chinese=“Image”>John</first_name>

     <last_name>Smith</last_name>

     <email>john.smith@hfarm.com</email>

</contact>

In the XML document, there are a set of tags (or markups), such as <contact>, <first_name>, and <last_name>. Each tag explains the content and constructs an XML element. For example, <contact> creates a contact XML element; <first_name> creates a first name element; and <last_name> creates a last name element. The nested XML elements structure represents the elements’ parent and child relationship; for example, the <first_name> within the <contact> element means the first name of the specified contact. XML elements can have attributes defined in name-value pairs. For example, id=“1” and Chinese=“Image are both XML attributes.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free 10-Day Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint