Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problem with creating an XML file
#2
Solved: 10 Years, 9 Months, 2 Weeks ago
You can use 'AddDeclaration' method. This will add the xml declaration to your xml doc.
see the code below
Code:
Set oXML = XMLUtil.CreateXML
oXML.Loadfile "C:\books.xml" 'replace with your xml path
oXML.AddDeclaration "1.0","UTF-8","no"
oXML.SaveFile  "C:\books.xml" 'replace with your xml path

Reply


Messages In This Thread
Problem with creating an XML file - by Orbitz1 - 09-21-2009, 07:55 PM
RE: Problem with creating an XML file - by Saket - 09-22-2009, 10:58 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Need help in creating dynamic object string using Childobjects Keshub Mathur 0 1,517 09-11-2017, 05:52 PM
Last Post: Keshub Mathur
  XML FILE COULD NOT BE PARSED tripathy.pilu23 1 7,854 04-18-2014, 06:38 AM
Last Post: kgovadav
  HAVING PROBLEM IN CREATING OBJECT OF TEST BATCH RUNNER mayankchauhan 0 3,331 04-04-2014, 05:29 PM
Last Post: mayankchauhan
  Getting an 'Error in XML document' Error when submitting web services XML luckyexpert 0 2,946 08-20-2013, 10:23 PM
Last Post: luckyexpert
  Creating a folder from within a reusable action. sd3 2 3,017 06-18-2013, 03:20 PM
Last Post: learnQtptips

Forum Jump:


Users browsing this thread: 1 Guest(s)