104 std::unique_ptr<XmlElement> getDocumentElement (
bool onlyReadOuterDocumentElement =
false);
110 std::unique_ptr<XmlElement> getDocumentElementIfTagMatches (
StringRef requiredTag);
115 const String& getLastParseError()
const noexcept;
128 void setInputSource (
InputSource* newSource) noexcept;
137 void setEmptyTextElementsIgnored (
bool shouldBeIgnored) noexcept;
145 static std::unique_ptr<XmlElement> parse (
const File& file);
152 static std::unique_ptr<XmlElement> parse (
const String& xmlData);
159 bool outOfData =
false, errorOccurred =
false;
160 String lastError, dtdText;
162 bool needToLoadDTD =
false, ignoreEmptyTextElements =
true;
163 std::unique_ptr<InputSource> inputSource;
166 void setLastError (
const String&,
bool carryOn);
169 void skipNextWhiteSpace();
170 juce_wchar readNextChar() noexcept;
171 XmlElement* readNextElement (
bool alsoParseSubElements);
173 void readQuotedString (
String&);
174 void readEntity (
String&);
181 JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (
XmlDocument)
190 std::unique_ptr<XmlElement> parseXML (
const String& textToParse);
197 std::unique_ptr<XmlElement> parseXML (
const File& fileToParse);
204 std::unique_ptr<XmlElement> parseXMLIfTagMatches (
const String& textToParse,
StringRef requiredTag);
211 std::unique_ptr<XmlElement> parseXMLIfTagMatches (
const File& fileToParse,
StringRef requiredTag);
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.
A simple class for holding temporary references to a string literal or String.
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 ...