System::Xml::XmlReader::ReadToDescendant 方法
XmlReader::ReadToDescendant(String, String) method
将 XmlReader 前进到具有指定本地名称和命名空间 URI 的下一个后代元素。
virtual bool System::Xml::XmlReader::ReadToDescendant(String localName, String namespaceURI)
| Parameter | Type | 描述 |
|---|---|---|
| localName | 字符串 | 您希望移动到的元素的本地名称。 |
| namespaceURI | 字符串 | 您希望移动到的元素的命名空间 URI。 |
ReturnValue
true if a matching descendant element is found; otherwise false. If a matching child element is not found, the XmlReader is positioned on the end tag (XmlReader::get_NodeType value is XmlNodeType::EndElement) of the element. If the XmlReader is not positioned on an element when XmlReader::ReadToDescendant(String,String) was called, this method returns false and the position of the XmlReader is not changed.
另见
- Class String
- Class XmlReader
- Namespace System::Xml
- Library Aspose.Page for C++
XmlReader::ReadToDescendant(String) method
将 XmlReader 前进到具有指定限定名称的下一个后代元素。
virtual bool System::Xml::XmlReader::ReadToDescendant(String name)
| Parameter | Type | 描述 |
|---|---|---|
| name | 字符串 | 您希望移动到的元素的限定名称。 |
ReturnValue
true if a matching descendant element is found; otherwise false. If a matching child element is not found, the XmlReader is positioned on the end tag (XmlReader::get_NodeType value is XmlNodeType::EndElement) of the element. If the XmlReader is not positioned on an element when XmlReader::ReadToDescendant(String) was called, this method returns false and the position of the XmlReader is not changed.
另见
- Class String
- Class XmlReader
- Namespace System::Xml
- Library Aspose.Page for C++