top | up | prev | next

xml Namespace

Classes

class Attribute
class Attributes
class Entity
class InternalEntity
class XmlContentHandler
class XmlProcessingException
class XmlProcessor

Functions

void ParseXmlContent(const std::string& xmlContent, const std::string& systemId, XmlContentHandler* contentHandler)
void ParseXmlContent(const std::string& xmlContent, const std::string& systemId, XmlContentHandler* contentHandler, Flags flags)
void ParseXmlContent(const std::u32string& xmlContent, const std::string& systemId, XmlContentHandler* contentHandler)
void ParseXmlContent(const std::u32string& xmlContent, const std::string& systemId, XmlContentHandler* contentHandler, Flags flags)
void ParseXmlFile(const std::string& xmlFileName, XmlContentHandler* contentHandler)
void ParseXmlFile(const std::string& xmlFileName, XmlContentHandler* contentHandler, Flags flags)
Flags operator&(Flags flags, Flags flag) inline
Flags operator|(Flags flags, Flags flag) inline
Flags operator~(Flags flags) inline

Enumerations

enum class Flags

Function Details

ParseXmlContent Function

void sngxml::xml::ParseXmlContent(const std::string& xmlContent, const std::string& systemId, XmlContentHandler * contentHandler)

Definition at line 30 of XmlParserInterface.cpp :
31 {
32     ParseXmlContent(ToUtf32(xmlContent)systemIdcontentHandlerFlags::none);
33 }


Declaration at line 50 of XmlParserInterface.hpp


ParseXmlContent Function

void sngxml::xml::ParseXmlContent(const std::string& xmlContent, const std::string& systemId, XmlContentHandler * contentHandler, Flags flags)

Definition at line 35 of XmlParserInterface.cpp :
36 {
37     ParseXmlContent(ToUtf32(xmlContent)systemIdcontentHandlerflags);
38 }


Declaration at line 51 of XmlParserInterface.hpp


ParseXmlContent Function

void sngxml::xml::ParseXmlContent(const std::u32string& xmlContent, const std::string& systemId, XmlContentHandler * contentHandler)

Definition at line 40 of XmlParserInterface.cpp :
41 {
42     ParseXmlContent(xmlContentsystemIdcontentHandlerFlags::none);
43 }


Declaration at line 59 of XmlParserInterface.hpp


ParseXmlContent Function

void sngxml::xml::ParseXmlContent(const std::u32string& xmlContent, const std::string& systemId, XmlContentHandler * contentHandler, Flags flags)

Definition at line 45 of XmlParserInterface.cpp :
46 {
47     soulng::lexer::XmlParsingLog debugLog(std::cerr);
48     TrivialLexer xmlLexer(xmlContentsystemId0);
49     if ((flags & Flags::debug) != Flags::none)
50     {
51         xmlLexer.SetLog(&debugLog);
52     }
53     XmlProcessor xmlProcessor(xmlLexercontentHandler);
54     XmlParser::Parse(xmlLexer&xmlProcessor);
55 }


Declaration at line 60 of XmlParserInterface.hpp

Calls: XmlParser::Parse , soulng::lexer::Lexer::SetLog


ParseXmlFile Function

void sngxml::xml::ParseXmlFile(const std::string& xmlFileName, XmlContentHandler * contentHandler)

Definition at line 19 of XmlParserInterface.cpp :
20 {
21     ParseXmlFile(xmlFileNamecontentHandlerFlags::none);
22 }


Declaration at line 41 of XmlParserInterface.hpp


ParseXmlFile Function

void sngxml::xml::ParseXmlFile(const std::string& xmlFileName, XmlContentHandler * contentHandler, Flags flags)

Definition at line 24 of XmlParserInterface.cpp :
25 {
26     std::string xmlContent = ReadFile(xmlFileName);
27     ParseXmlContent(xmlContentxmlFileNamecontentHandlerflags);
28 }


Declaration at line 42 of XmlParserInterface.hpp


operator& Function

Flags sngxml::xml::operator&(Flags flags, Flags flag) inline

Definition at line 22 of XmlParserInterface.hpp :
23 {
24     return static_cast<Flags>(static_cast<int>(flags) & static_cast<int>(flag));
25 }



operator| Function

Flags sngxml::xml::operator|(Flags flags, Flags flag) inline

Definition at line 27 of XmlParserInterface.hpp :
28 {
29     return static_cast<Flags>(static_cast<int>(flags) | static_cast<int>(flag));
30 }



operator~ Function

Flags sngxml::xml::operator~(Flags flags) inline

Definition at line 32 of XmlParserInterface.hpp :
33 {
34     return static_cast<Flags>(~static_cast<int>(flags));
35 }



top | up | prev | next