Skip to content

Commit bdbab28

Browse files
committed
Added reference documentation for XML.parse() per issue 1379
1 parent adc7fe6 commit bdbab28

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

core/src/processing/data/XML.java

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,18 @@ protected XML(XML parent, Node node) {
148148
}
149149

150150

151-
static public XML parse(String xml) {
151+
/**
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) {
152161
try {
153-
return new XML(new StringReader(xml));
162+
return new XML(new StringReader(data));
154163
} catch (Exception e) {
155164
e.printStackTrace();
156165
return null;

0 commit comments

Comments
 (0)