Module xml

Module xml 

Source
Expand description

XML Parser

Structs§

XMLOptions
XMLOptions for xml parsing
XMLStep
A Step is a name and an index
XMLTag
A Tag is a pair of an inner and an outer strings with their indexes

Enums§

XMLPathItem
A PathItem is a String or a Step
XMLTagItem
A PathItem is a String or a Step

Statics§

NO_INDEX
NO_INDEX means it’s not pointing to a location in memory

Functions§

xml_count_substring
Count the number of times a substring appears in a string
xml_find_tag_by_name
Find the first tag with the given name
xml_find_tag_by_path
Find the first tag with the given path
xml_find_tags_by_name
Find all tags with the given name
xml_find_tags_by_path
Find all tags with the given path
xml_get_attribute
Get the value of an attribute
xml_index_of_match
Find the index of the first match
xml_index_of_match_end
Find the index of the last match
xml_remove_comments
Remove comments
xml_remove_tags_by_name
Remove tags

Type Aliases§

XMLPath
A Path is an array of Steps or Strings