/* -*- mode: c++; indent-tabs-mode: nil -*- */
/*
 QC_XmlDoc.h
 
 Qore Programming Language
 
 Copyright 2003 - 2010 David Nichols
 
 This library is free software; you can redistribute it and/or
 modify it under the terms of the GNU Lesser General Public
 License as published by the Free Software Foundation; either
 version 2.1 of the License, or (at your option) any later version.
 
 This library is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 Lesser General Public License for more details.
 
 You should have received a copy of the GNU Lesser General Public
 License along with this library; if not, write to the Free Software
 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 */

#ifndef _QORE_QC_XMLDOC_H

#define _QORE_QC_XMLDOC_H

#include "QoreXmlDoc.h"

DLLEXPORT extern qore_classid_t CID_XMLDOC;
DLLLOCAL QoreClass *initXmlDocClass(QoreNamespace& ns);

DLLLOCAL extern QoreClass* QC_XMLDOC;

class QoreXmlNodeData;

class QoreXmlDocData : public AbstractPrivateData, public QoreXmlDoc {
public:
   DLLLOCAL QoreXmlDocData(const char *buf, int size) : QoreXmlDoc(buf, size) {
   }
   DLLLOCAL QoreXmlDocData(const QoreString &xml) : QoreXmlDoc(xml) {
   }
   DLLLOCAL QoreXmlDocData(const QoreXmlDocData &orig) : QoreXmlDoc(orig) {
   }
   DLLLOCAL QoreXmlNodeData *getRootElement();
};

#endif
