Questions tagged [export-to-xml]

59 questions
11
votes
2 answers

Specify encoding XmlSerializer

I've a class correctly defined and after serialize it to XML I'm getting no encoding. How can I define encoding "ISO-8859-1"? Here's a sample code var xml = new XmlSerializer(typeof(Transacao)); var file = new…
gandarez
  • 2,609
  • 4
  • 34
  • 47
4
votes
2 answers

Add comment nodes outside root with ruby-libxml

I am writing an xml exporter in ruby and I am using libxml package for it. I want to write some comment nodes outside the root element How do I accomplish export…
Schu
  • 1,124
  • 3
  • 11
  • 23
2
votes
0 answers

How to export XML from MySQL using PHP?

I'm trying to export products from WooCommerce in XML using MySQL and PHP (v7.*). I've created custom table and added products there, using codes: INSERT INTO `xml_export`(`id`, `product_name`, `product_link`) SELECT p.id, p.post_title, p.guid FROM…
St Pavel
  • 339
  • 1
  • 3
  • 18
2
votes
1 answer

Can header labels be translated in sonata admin bundle export feature?

SonataAdminBundle can export list data into several formats (CSV, Excel, JSON and XML), but the resulting file label headers exactly as the column names. How can I replace those names for more describing labels? Usually by translating it as it's…
2
votes
1 answer

Rails 4 to_xml issue with accessor overwriting in model

I have a problem with overwriting accessors in a model and using the to_xml method later on the model. The problem is, that to_xml seems to use the default getter method, rather than using read_attribute. My model: class Announcement <…
s.krueger
  • 1,043
  • 8
  • 13
1
vote
1 answer

Excel to XML conversion

I want to convert Excel to XML using Excel. I am able to map Excel with XML. Now, I enter the records in Mapped Excel. Next I click on export but pop-up appears with message : Cannot save or export XML data. The XML maps in this workbook are not…
2FaceMan
  • 443
  • 2
  • 18
  • 34
1
vote
3 answers

C# to XML or Prefix-Notation

Maybe this is kind of a pie-in-the-ski dream/question. Does anyone know of a tool that will produce XML or prefix-notation (lispy) -- that includes documentation comments from C# source code? It seems like this would be useful to a number of…
1
vote
1 answer

How to remove prefix from every attribute in xml using python

I am trying to generate xml file from pandas dataframe using pd.to_xml() method. I have data in SQL-Server and trying to read from…
dp808139
  • 122
  • 2
  • 12
1
vote
1 answer

Ag grid exportDataAsExcel run export to xml instead xlsx

I add context menu and reassign export to csv and Excel - I need export use valueFormatter for some column. Export working fine, but after I run export to xml, and then run export to Excel - I get xml file. It's happen only here - because I use…
kisarin
  • 51
  • 6
1
vote
2 answers

Handling repeating rows when exporting spreadsheet to XML using XSLT

I have a very large spreadsheet that I'm trying to export to XML. Any row with repeating cells are skipped over during the transformation. So if a row has 1 2 2 2 3 4 5 only the first 2 will be copied to the XML file. I've found out this is…
danwardvs
  • 53
  • 1
  • 8
1
vote
1 answer

Writing contents of XML Variable to File

The code below creates me an XML file that shows up as a link as shown in image1 DECLARE @xmlentire AS XML = ( select (select @xmlheader as returnXml), (select @xmlbody as returnXml) for xml path ('IndirectSalesMessage')) select @xmlentire SELECT…
jp3nyc
  • 71
  • 10
1
vote
1 answer

SQL Export using XML explicit, generate elements from a sub/different query

I have an account table and a campaign table, each account has certain number of campaigns associated with it. No I want to export the account IDs and all the Campaign IDs associated with that account id in to XML in this structure
tHeSiD
  • 4,587
  • 4
  • 29
  • 49
1
vote
3 answers

Export-Clixml Escape All Special Characters in Variable

I have a DataGrid ($myWindow.myDataGrid.Items) that I am trying to Export-Clixml. The $myWindow.myDataGrid.Items is an ItemCollection that contains String properties that are words with certain characters, like "C‘Thun" or "—Hello". To access the…
1housand
  • 508
  • 7
  • 16
1
vote
2 answers

Can you export SQL Server 2012 data into an XML file

Below is a very small example of the SQL and XML but no idea how to export this into say C:\Users\Simon.Evans\Documents\Test.xml. To be fair I have very little to zero knowledge of XML so walking in the dark. Ultimately I am trying to find a way to…
Simon
  • 391
  • 4
  • 16
1
vote
3 answers

Exporting to XML with PHP

Trying the following PHP export to XML in order to create a remote phonebook for a Yealink SIP-T46G. Managed to get so far but currently exporting a an XML format that isn't valid to use on the phones. Looking throughout this site, I have found…
user7680251
1
2 3 4