|
JUCE
|
Classes | |
| class | XmlDocument |
| Parses a text-based XML document and creates an XmlElement object from it. More... | |
| class | XmlElement |
| Used to build a tree of elements representing an XML document. More... | |
Macros | |
| #define | forEachXmlChildElement(parentXmlElement, childElementVariableName) |
| A handy macro to make it easy to iterate all the child elements in an XmlElement. More... | |
| #define | forEachXmlChildElementWithTagName(parentXmlElement, childElementVariableName, requiredTagName) |
| A macro that makes it easy to iterate all the child elements of an XmlElement which have a specified tag. More... | |
Functions | |
| std::unique_ptr< XmlElement > | parseXML (const String &textToParse) |
| Attempts to parse some XML text, returning a new XmlElement if it was valid. More... | |
| std::unique_ptr< XmlElement > | parseXML (const File &fileToParse) |
| Attempts to parse some XML text, returning a new XmlElement if it was valid. More... | |
| #define forEachXmlChildElement | ( | parentXmlElement, | |
| childElementVariableName | |||
| ) |
A handy macro to make it easy to iterate all the child elements in an XmlElement.
The parentXmlElement should be a reference to the parent XML, and the childElementVariableName will be the name of a pointer to each child element.
E.g.
| #define forEachXmlChildElementWithTagName | ( | parentXmlElement, | |
| childElementVariableName, | |||
| requiredTagName | |||
| ) |
A macro that makes it easy to iterate all the child elements of an XmlElement which have a specified tag.
This does the same job as the forEachXmlChildElement macro, but only for those elements that have a particular tag name.
The parentXmlElement should be a reference to the parent XML, and the childElementVariableName will be the name of a pointer to each child element. The requiredTagName is the tag name to match.
E.g.
| std::unique_ptr<XmlElement> parseXML | ( | const String & | textToParse | ) |
Attempts to parse some XML text, returning a new XmlElement if it was valid.
If the parse fails, this will return a nullptr - if you need more information about errors or more parsing options, see the XmlDocument instead.
| std::unique_ptr<XmlElement> parseXML | ( | const File & | fileToParse | ) |
Attempts to parse some XML text, returning a new XmlElement if it was valid.
If the parse fails, this will return a nullptr - if you need more information about errors or more parsing options, see the XmlDocument instead.
1.8.13