Questions tagged [xml-encoding]
46 questions
1
vote
1 answer
'' disappears after encoding xml to string python
In my xml file I have at the beginning. But it disappears if I encode it to a string. By that I mean my string does not have it anymore at the beginning. I thought I can simply insert it in my string like in…

John
- 91
- 7
1
vote
1 answer
Convert XML to dataframe in Python; stumbling on why xml is not parsed. Encoding issue?
Would really appreciate some help. I have been busy more than two days, surfing around to understand why I can't access this xml file to put its contents in a df. My goal is to put the worksheets in the xml file in pandas dataframes. I know there…

Josh77
- 11
- 1
1
vote
1 answer
XML Encoder in Golang does not close tags in all streams
I'm working on a streaming XML encoder that will simultaneously write the XML to a local file, and an S3 bucket. However, just by testing it writing to two local files, I can see that one of the files is missing the closing tags every time.
Here is…

Gregor Menih
- 5,036
- 14
- 44
- 66
1
vote
1 answer
How to read/write Java ASCII Characters value with XMLStreamReader?
I'd like to use XMLStreamReader for reading a XML file which contains Horizontal Tab ASCII Codes , for example:
foo bar
and print out or write it back to another xml file.
Google tells me to set javax.xml.stream.isCoalescing to…

user1684651
- 390
- 1
- 8
- 21
1
vote
1 answer
MarkLogic Content Pump , content_encoding encoding="US-ASCII"?
MarkLogic is installed on Windows 10 machine.
We are using MarkLogic Content Pump (MLCP) to import data
It is working well with
It is showing error while importing non UTF8 encoding i.e.

Manish Joisar
- 1,256
- 3
- 23
- 47
1
vote
2 answers
Escaping and unescaping HTML
In a function I do not control, data is being returned via
return xmlFormat(rc.content)
I later want to do a
#resultsofreturn#
The problem is all the HTML tags are escaped.
I have…

James A Mohler
- 11,060
- 15
- 46
- 72
1
vote
1 answer
Error unmarshalling GML with golang encoding/xml
I am trying to unmarshal some XML, actually Geography Markup Language (GML).
I have an example at http://play.golang.org/p/qS6GjCOtHF
Two problems, the first:
error reading xml main.FeatureCollection field "LowerCorner" with tag…

user6186749
- 13
- 2
1
vote
1 answer
VTD-XML : XMLModifier.output() throws an IndexOutOfBoundsException
I have been to trying to modify a xml file using VTD-XML.The xml has been received from a java (JAX-WS) web service as a String. The http response header from the server has content type : text/xml and charset = utf-8.
Here is the code :
private…

Saad galib
- 11
- 3
0
votes
0 answers
Remove "charset=utf-8" of download of xml file out of js chrome extension
I am programming a extension for chrome for my company. I am creating a XML file out of a API request. The XML file is used for an import, and the program that gets the import, doesn't like the charset=utf-8 at the beginning of the XML (see short…

Teand
- 1
- 2
0
votes
1 answer
XML serialization invalid character
I'm getting the following error
Hexadecimal value 0x02, is an invalid character
when I'm generating the XML document
using MemoryStream ms = new();
var XML = new XmlSerializer(typeof(InvoiceType));
var encoding = Encoding.UTF8;
using…

vega_gf
- 170
- 1
- 10
0
votes
3 answers
XSL and Flash XML breaks escaping
I have an XSL file I am loading in flash that includes the following snippet:
•
I load it this way:
_root.brochure_xsl = new XML();
_root.brochure_xsl.onLoad = function() {
…

Shawn
- 19,465
- 20
- 98
- 152
0
votes
0 answers
How to query utf-16 encoded XML files stored as varbinary?
I want to run Full-Text Search on XML files that are stored as varbinary in SQL Server 2016 to find phrases (id, names, phones etc.) in those files. The problem is that the query doesn't find UTF-16 encoded files.
I have the following tables
Table…

krzycho2
- 1
- 1
- 1
0
votes
1 answer
WSProxy: nested fault error trying to call a SOAP service
I'm getting an error trying to call a SOAP service, the client provided a "sample" of the body content, however, with all the reshaping of that the best that I can get on an online XML validator is the following error:
WSProxy: nested fault: XML…

LuKe Lukes
- 1
- 1
0
votes
0 answers
How to determine the encoding of an xml in java8
I have an XML file for which I want to determine the encoding programmatically. The XML file is present on the device and the dataFilePath contains the path. The encoding declaration in the file says it is UTF-8 but when I check the encoding in…

Chirag
- 3
- 2
0
votes
1 answer
Trying to use Golang encoding/xml to encode a struct to xml a structure with an alternating repeating pattern
I'm trying to create an xml file with the following ordering using the encoding/xml package and i have defined structs for the static subelement and transition subelement, now the problem is i need to to have this in a repeating format so i created…

The Icon
- 3
- 1
- 3