Altova XMLSpy 2023 Enterprise Edition

该类使您能够访问有关从复杂类型生成的类的Schema信息。请注意,该类并不旨在提供有关XML文档中复杂类型的特定实例的动态信息。相反,它使您能够以编程方式获取有关XML Schema中定义的特定复杂类型的信息。

 

方法

Name

描述

Attribute FindAttribute(const char_type* localName, const char_type* namespaceURI)

查找带有指定的本地名称和命名空间URI的特性。

Element FindElement(const char_type* localName, const char_type* namespaceURI)

查找带有指定的本地名称和命名空间URI的元素。

std::vector<Attribute> GetAttributes()

返回所有特性的列表。

ComplexType GetBaseType()

返回此类型的基类型。

SimpleType GetContentType()

返回该内容的简单类型。

std::vector<Element> GetElements()

返回所有元素的列表。

string_type GetLocalName()

返回类型的本地名称。

string_type GetNamespaceURI()

返回类型的命名空间URI。

 

运算符

Name

描述

bool operator()

如果它不是NULL ComplexType,则返回true。

bool operator!()

如果它是NULL ComplexType,则返回true。

© 2017-2023 Altova GmbH