Skip to main content
added 77 characters in body
Source Link
canadian_scholar
  • 3.7k
  • 1
  • 27
  • 45

Thanks to rcollyer's comments and some of the documentation (which was confusing to a person new to this side of things, i.e. this), I figured this out. On the off chance that anybody stumbles along here and has the same issue, here is what worked for me.

Export["test.xml", 
 XMLObject["Document"][{}, 
  XMLElement[
   "website", {}, {XMLElement[
     "title", {}, {StringReplace[
       ToString[title], {"{" -> "", "}" -> ""}]}], 
    XMLElement[
     "date", {}, {StringReplace[
       ToString[date], {"{" -> "", "}" -> ""}]}], 
    XMLElement["content", {}, {content}]}], {}]]

I'll still leave this unanswered in case somebody has a better answer. :)

Thanks to rcollyer's comments and some of the documentation (which was confusing to a person new to this side of things, i.e. this), I figured this out. On the off chance that anybody stumbles along here and has the same issue, here is what worked for me.

Export["test.xml", 
 XMLObject["Document"][{}, 
  XMLElement[
   "website", {}, {XMLElement[
     "title", {}, {StringReplace[
       ToString[title], {"{" -> "", "}" -> ""}]}], 
    XMLElement[
     "date", {}, {StringReplace[
       ToString[date], {"{" -> "", "}" -> ""}]}], 
    XMLElement["content", {}, {content}]}], {}]]

Thanks to rcollyer's comments and some of the documentation (which was confusing to a person new to this side of things, i.e. this), I figured this out. On the off chance that anybody stumbles along here and has the same issue, here is what worked for me.

Export["test.xml", 
 XMLObject["Document"][{}, 
  XMLElement[
   "website", {}, {XMLElement[
     "title", {}, {StringReplace[
       ToString[title], {"{" -> "", "}" -> ""}]}], 
    XMLElement[
     "date", {}, {StringReplace[
       ToString[date], {"{" -> "", "}" -> ""}]}], 
    XMLElement["content", {}, {content}]}], {}]]

I'll still leave this unanswered in case somebody has a better answer. :)

Source Link
canadian_scholar
  • 3.7k
  • 1
  • 27
  • 45

Thanks to rcollyer's comments and some of the documentation (which was confusing to a person new to this side of things, i.e. this), I figured this out. On the off chance that anybody stumbles along here and has the same issue, here is what worked for me.

Export["test.xml", 
 XMLObject["Document"][{}, 
  XMLElement[
   "website", {}, {XMLElement[
     "title", {}, {StringReplace[
       ToString[title], {"{" -> "", "}" -> ""}]}], 
    XMLElement[
     "date", {}, {StringReplace[
       ToString[date], {"{" -> "", "}" -> ""}]}], 
    XMLElement["content", {}, {content}]}], {}]]