Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • 1
    $\begingroup$ Have you looked at Export? $\endgroup$ Commented Aug 1, 2013 at 14:36
  • $\begingroup$ @rcollyer I have. I can generate XML files, but my internal brackets get replaced so I get code like this: ` <String>&lt;title&gt;ometz.ca/event/abiletes-dentrevue-1-678/?langID=1&lt;/…>` $\endgroup$ Commented Aug 1, 2013 at 14:39
  • $\begingroup$ A couple of things. You're missing a root element, and it is necessary to be valid xml. That aside, you can always pick the format, so you can export a string as xml via Export["file.xml", string, "Text"] which won't escape the brackets. However, once you have a root element, I suggest crafting an XMLObject and build your document inside it. Then, you can Export it with ease. Also, look at this tutorial. $\endgroup$ Commented Aug 1, 2013 at 15:09
  • $\begingroup$ @rcollyer Thanks. I've been struggling with this documentation all morning. I'll stick with it and hopefully figure it out, following your instructions. It's appreciated. $\endgroup$ Commented Aug 1, 2013 at 15:34