skip to main content
research-article

Language-integrated querying of XML data in SQL server

Published:01 August 2008Publication History
Skip Abstract Section

Abstract

Developers need to access persistent XML data programmatically. Object-oriented access is often the preferred method. Translating XML data into objects or vice-versa is a hard problem due to the data model mismatch and the difficulty of query translation. Our prototype addresses this problem by transforming object-based queries and updates into queries and updates on XML using declarative mappings between classes and XML schema types. Our prototype extends the ADO.NET Entity Framework and leverages its object-relational mapping capabilities.

We demonstrate how a developer can interact with stored relational and XML data using the Language Integrated Query (LINQ) feature of .NET. We show how LINQ queries are translated into a combination of SQL and XQuery. Finally, we illustrate how explicit mappings facilitate data independence upon database refactoring.

References

  1. A. Adya, J. A. Blakeley, S. Melnik, S. Muralidhar, The ADO.NET Team. Anatomy of the ADO.NET Entity Framework. In SIGMOD, 2007. Google ScholarGoogle ScholarDigital LibraryDigital Library
  2. W. R. Cook, A. H. Ibrahim. Integrating Programming Languages and Databases: What is the Problem? ODBMS.ORG, Expert Article, Sept. 2006.Google ScholarGoogle Scholar
  3. M. Harren, M. Raghavachari, O. Shmueli, M. G. Burke, R. Bordawekar, I. Pechtchanski, V. Sarkar. XJ: facilitating XML processing in Java. In WWW, 2005. Google ScholarGoogle ScholarDigital LibraryDigital Library
  4. R. Lämmel. LINQ-to-XSD. In PLAN-X, 2007.Google ScholarGoogle Scholar
  5. R. Lämmel, E. Meijer. Revealing the X/O Impedance Mismatch (Changing Lead into Gold). In Datatype-Generic Programming, Lecture Notes in Computer Science. Springer-Verlag, June 2007. Google ScholarGoogle ScholarDigital LibraryDigital Library
  6. Liquid XML. http://www.liquid-technologies.com/.Google ScholarGoogle Scholar
  7. E. Meijer, B. Beckman, G. M. Bierman. LINQ: Reconciling Object, Relations and XML in the .NET Framework. In SIGMOD, 2006. Google ScholarGoogle ScholarDigital LibraryDigital Library
  8. S. Pather. LINQ to XML: Visual Studio 2008, Silverlight, and Beyond. XML '07, http://2007.xmlconference.org/public/schedule/detail/369.Google ScholarGoogle Scholar
  9. S. Resnick, R. Crane, C. Bowen. Essential Windows Communication Foundation (WCF): For .NET Framework 3.5. Addison Wesley, 2008. Google ScholarGoogle ScholarDigital LibraryDigital Library
  10. XML Beans. http://xmlbeans.apache.org/.Google ScholarGoogle Scholar

Index Terms

  1. Language-integrated querying of XML data in SQL server

            Recommendations

            Comments

            Login options

            Check if you have access through your login credentials or your institution to get full access on this article.

            Sign in

            Full Access

            PDF Format

            View or Download as a PDF file.

            PDF

            eReader

            View online with eReader.

            eReader