1 parent adc7fe6 commit bdbab28Copy full SHA for bdbab28
1 file changed
core/src/processing/data/XML.java
@@ -148,9 +148,18 @@ protected XML(XML parent, Node node) {
148
}
149
150
151
- static public XML parse(String xml) {
+ /**
152
+ * xxxxxxx
153
+ *
154
+ * @webref xml:method
155
+ * @brief Converts String content to an XML object
156
+ * @param data the content to be parsed as XML
157
+ * @return an XML object, or null
158
+ * @see PApplet#loadXML(String)
159
+ */
160
+ static public XML parse(String data) {
161
try {
- return new XML(new StringReader(xml));
162
+ return new XML(new StringReader(data));
163
} catch (Exception e) {
164
e.printStackTrace();
165
return null;
0 commit comments