[http://creativecommons.org/licenses/by/3.0/]
This work is licensed under a CC
Attribution 3.0 Unported License [http://creativecommons.org/licenses/by/3.0/]
XML databases often are a good solution for managing document-oriented content, but frequently it is necessary or dictated by existing solutions to use non-XML databases for managing document content. In most cases, these databases will be relational databases. There a two major approaches of how to manage document-oriented content in a relational database. The first approach is to define a mapping between document and relational structures and work with this mapping. The second approach is to use the XML-specific functionality, which is increasingly provided by relational databases, turning them into XML-aware databases.
almost trees
|
|
self-describing)
File Systems as XML Databases
![]() |
|
query the XHTML snippet
persistent DOM)
thinks in ER
flavors
XML
)XML
typeSELECT e.EmpId, e.FirstName, e.LastName, e.StartDate, e.EndDate FROM Employees e WHERE e.EmpId = 12
SELECT XMLELEMENT (NAME "employee", XMLATTRIBUTES(e.EmpId as "id"), XMLELEMENT(NAME "names", XMLELEMENT(NAME "first", e.FirstName), XMLELEMENT(NAME "last", e.LastName)), XMLELEMENT(NAME "hire-dates", XMLATTRIBUTES(e.StartDate as "start", e.EndDate as "end"))) FROM Employees e WHERE e.EmpId = 12
no tables