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);