107 XmlElement* getDocumentElement (
bool onlyReadOuterDocumentElement =
false);
113 const String& getLastParseError()
const noexcept;
126 void setInputSource (
InputSource* newSource) noexcept;
135 void setEmptyTextElementsIgnored (
bool shouldBeIgnored) noexcept;
157 bool outOfData =
false, errorOccurred =
false;
158 String lastError, dtdText;
160 bool needToLoadDTD =
false, ignoreEmptyTextElements =
true;
161 std::unique_ptr<InputSource> inputSource;
164 void setLastError (
const String&,
bool carryOn);
167 void skipNextWhiteSpace();
168 juce_wchar readNextChar() noexcept;
169 XmlElement* readNextElement (
bool alsoParseSubElements);
171 void readQuotedString (
String&);
172 void readEntity (
String&);
179 JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (
XmlDocument)
188 std::unique_ptr<XmlElement> parseXML (
const String& textToParse);
195 std::unique_ptr<XmlElement> parseXML (
const File& fileToParse);
Parses a text-based XML document and creates an XmlElement object from it.
#define JUCE_API
This macro is added to all JUCE public class declarations.
Used to build a tree of elements representing an XML document.
A special array for holding a list of strings.
Represents a local file or directory.
Wraps a pointer to a null-terminated UTF-8 character string, and provides various methods to operate ...