Menu

[r19]: / src / xmlassociatexsd.h  Maximize  Restore  History

Download this file

43 lines (38 with data), 963 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#ifndef XML_ASSOCIATE_XSD_H
#define XML_ASSOCIATE_XSD_H
#include <vector>
#include <expat.h>
#include <string>
#include <map>
#include "wrapexpat.h"
struct AssociateXsdData : public ParserData
{
std::string buffer, path, namespaceAttribute;
bool rootElementSeen;
std::map<std::string, std::string> namespaceMap;
};
class XmlAssociateXsd : public WrapExpat
{
public:
XmlAssociateXsd(
const std::string& path = "",
size_t size = BUFSIZ);
virtual ~XmlAssociateXsd();
std::string getBuffer() { return d->buffer; }
private:
std::auto_ptr<AssociateXsdData> d;
std::string encoding;
std::map<std::string, std::string> namespaceMap;
static void XMLCALL start(
void *data,
const XML_Char *el,
const XML_Char **attr);
static void XMLCALL end(
void *data,
const XML_Char *el);
static void XMLCALL defaulthandler(
void *data,
const XML_Char *s,
int len);
};
#endif
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.