So, I can successfully read in my xml file and distribute its parts as I please, but upon realizing that I would need to include things like line breaks, I made some changes and it all went up in flames. Here is a bit of the xml.
<news>
<entry date="June 20, 2007">
<heading title="My first entry!"></heading>
<images>
<image title="Afro Umbrella" url="images/upsidedownumbrellas.jpg"></image>
</images>
<body content=
"<p>So this is it, this is my first entry. Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
Nam fringilla lacus quis tellus. Suspendisse potenti. Duis dictum adipiscing nulla. Sed dignissim velit in nisi.
Praesent at erat. Duis aliquam justo at est. Vivamus at magna sit amet urna porta facilisis.
Duis mattis. Ut justo erat, sollicitudin sed, porta at, facilisis non, eros.
Vivamus fermentum felis vel nibh. Aenean urna. Pellentesque euismod. Morbi nibh est, volutpat at,
rhoncus in, suscipit eget, nunc. Proin dapibus arcu et turpis. Suspendisse sit amet nulla.
Nulla ultrices sagittis diam. Pellentesque commodo orci id orci sodales sodales. In purus.
Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae.
This is the second paragraph, so it is.</p>">
</body>
</entry>
</news>
I set the htmlText to true for all the text fields that are being influenced, and as long as I don’t include any html tags in the xml file, everything works fine. But, as soon as I add something like “<p>”, I get “undefined” for all the variables taken in from the xml. Even if I just put one tag in the body, it causes problems with the heading and image. Am I setting up my xml poorly or is there something else I’m doing wrong?