Version

menu_open
Wwise SDK 2022.1.11

◆ MoveToContent()

AK::Wwise::Plugin::XmlNodeType::NodeType AK.Wwise::Plugin::V1::XmlReader::MoveToContent ( )
inline

Makes sure the cursor points to a content-type entity while reading XML.

If the node is not a content node, the reader skips ahead to the next content entity until the end of file. More specifically, it will skip over the following usual node types:

  • ProcessingInstruction
  • DocumentType
  • Comment
  • Whitespace
  • SignificantWhitespace

Content entities are specifically:

  • Text (Non-whitespace text)
  • CDATA
  • Element
  • EndElement
  • EndEntity
  • EntityReference

This method will also move to the element part of an Attribute.

Note: This method is mostly a convenience and could be easily coded by a simple loop.

Once the current node hierarchy information is determined by proper use of Read, MoveToContent will make sure to provide the actual content of the entity. If no content is available, it will return EndElement or EndEntity.

Returns
The new node type. None if the reader has reached the end of file.

Definition at line 667 of file HostXml.h.

References AK.Wwise::Plugin::CBaseInterfaceGlue< CHostXml >::g_cinterface, and ak_wwise_plugin_host_xml_v1::MoveToContent.


Was this page helpful?

Need Support?

Questions? Problems? Need more info? Contact us, and we can help!

Visit our Support page

Tell us about your project. We're here to help.

Register your project and we'll help you get started with no strings attached!

Get started with Wwise