home *** CD-ROM | disk | FTP | other *** search
/ Internet Magazine 2003 October / INTERNET108.ISO / pc / software / windows / building / xmlspy / xmlspyentcomplete5.exe / Data1.cab / _91F92315FE24403DA9F0E605E4168ADD < prev    next >
Encoding:
Text File  |  2003-03-21  |  1.6 KB  |  65 lines

  1. ////////////////////////////////////////////////////////////////////////
  2. //
  3. // Doc.h
  4. //
  5. // This file was generated by XMLSPY 5 Enterprise Edition.
  6. //
  7. // YOU SHOULD NOT MODIFY THIS FILE, BECAUSE IT WILL BE
  8. // OVERWRITTEN WHEN YOU RE-RUN CODE GENERATION.
  9. //
  10. // Refer to the XMLSPY Documentation for further details.
  11. // http://www.altova.com/xmlspy
  12. //
  13. ////////////////////////////////////////////////////////////////////////
  14.  
  15.  
  16. #ifndef ALTOVA_DOC_H_INCLUDED
  17. #define ALTOVA_DOC_H_INCLUDED
  18.  
  19. #if _MSC_VER > 1000
  20.     #pragma once
  21. #endif // _MSC_VER > 1000
  22.  
  23. namespace altova {
  24.  
  25.  
  26. class CNode;
  27.  
  28.  
  29. class ALTOVA_DECLSPECIFIER CDoc
  30. {
  31. public:
  32.     static MSXML2::IXMLDOMDocument2Ptr GetDocument();
  33.     static MSXML2::IXMLDOMNodePtr CreateFragment();
  34.     static void CheckDocumentCounter();
  35.  
  36. protected:
  37.     static MSXML2::IXMLDOMDocument2Ptr            m_spDocument;
  38.     static MSXML2::IXMLDOMDocumentFragmentPtr    m_spFragment;
  39.     static int                                    m_nTmpNameCounter;
  40.  
  41. public:
  42.     MSXML2::IXMLDOMDocument2Ptr Load(const tstring& sFilename);
  43.     
  44.     void SetRootElementName(tstring sNamespaceURI, tstring sName);
  45.     void SetSchemaLocation(const tstring& sSchemaLocation);
  46.  
  47.     void Save(const tstring& sFilename, CNode& rNode);
  48.     void Validate(CNode& rNode);
  49.  
  50. protected:
  51.     void FinalizeRootElement(CNode& rNode);
  52.     void InternalSetSchemaLocation(CNode& rNode);
  53.     virtual void DeclareNamespaces(CNode& rNode) = 0;
  54.     void DeclareNamespace(CNode& rNode, const tstring& sPrefix, const tstring& sURI);
  55.  
  56.     tstring m_sName;
  57.     tstring m_sNamespaceURI;
  58.     tstring m_sSchemaLocation;
  59. };
  60.  
  61.  
  62. } // namespace altova
  63.  
  64. #endif // ALTOVA_DOC_H_INCLUDED
  65.