27 #include "../../xml/Reader.h"
28 #include "../../xml/Writer.h"
29 #include "../../xsd/Any.h"
53 if(pos != std::string::npos)
54 any->setNamespace(
new std::string(reader.
getAttr(pos)));
58 if(pos != std::string::npos)
60 std::string value = reader.
getAttr(pos);
63 any->setProcessContents(pc);
This class models a XML reader object.
virtual bool next()=0
It gets the next event to be read.
void ReadAnnotated(te::xsd::Annotated *annotated, te::xml::Reader &reader)
Support for Any serialization.
ProcessContents
It enumerates the possible ways that the XML processor should handle validation against the elements ...
The XML processor must obtain the schema for the required namespaces and validate the elements (this ...
TESERIALIZATIONEXPORT void Save(const te::fe::Filter *filter, te::xml::Writer &writer)
The XML processor does not attempt to validate any elements from the specified namespaces.
void ReadIdentifiable(te::xsd::Identifiable *identifiable, te::xml::Reader &reader)
void ReadOccurs(te::xsd::Occurs *occurs, te::xml::Reader &reader)
Utility methods for Schema serialization.
virtual NodeType getNodeType() const =0
It return the type of node read.
Same as strict but; if the schema cannot be obtained, no errors will occur.
It models the XML Schema any element.
virtual std::string getElementLocalName() const =0
It returns the local part of the element name in the case of an element node.
TESERIALIZATIONEXPORT te::xsd::Any * ReadAny(te::xml::Reader &reader)
virtual std::size_t getAttrPosition(const std::string &name) const =0
It returns the attribute position.
virtual std::string getAttr(const std::string &name) const =0
It returns the attribute value in the case of an element node with valid attributes.
This class models a XML writer object.