<data homeText= "During the last Ice Age, the Sycamore region lay at the edge of a mile thick sheet of ice.
Running along one blue ice ridge, across DeKalb County, thick-skinned and rough-haired Mastodons lumbered through the landscape.
The Ice Age display at the Midwest Museum of Natural History features a diorama depicting a portion of this scene designed to illustrate life and change in the Midwest region beginning 12,000 years ago." />
I have been following the XML example on the Processing website and trying to substitute my corresponding values in, but I get stuck when I get to the string part of the code because I don't know what to call my string. Any help would be wonderful thank you.
First advice: as usual, avoid doing loading operations in draw(): there is no need to load the XML file (and, even, to parse it) 60 times per second (the frame rate).
And, obviously, getInt() is useless here, since there are no integer attributes. Likewise, the data tag being self-closed, the getContent() isn't very useful (will be empty). You must not copy blindly the example, but you must understand what it does and adapt it to your needs. So, in theory, the datahomeText variable should have the text. Try and println() it to check that. What is your problem, again?
Thank you for your response! Okay I will definitely take hold of your advice; I guess I was just getting frustrated with the example and wasn't focused on what I actually needed to accomplish my kiosk. So I don't need anything in my void draw, but I was having trouble getting my text from my XML file to show up on the screen. I figured I would have to put it in the void draw to do this; my mistake. How would I go about getting my text from my XML file onto the screen again?