Questions tagged [fast-xml-parser]
16 questions
1
vote
1 answer
Parsing XML elements without closing tags in JavaScript
I am running into a problem with the fast-xml-parser npm package. I'm trying to parse some XML from an external source that has a series of elements with self closing tags but those elements have data in them that I need.
Consider the following…

user2032334
- 13
- 2
1
vote
1 answer
Not able to build XERCESS 3.2.3 on MAC for arm64 configuration
I am trying to build xerces 3.2.3 for ARM64 configuration on MAC 10.15 using XCODE 12.2 but it fails with error that **
This header is for x86 only
This is coming from Cupid.h
can Xerces-c 3.2,3 build on MAC for ARM64 configuration?

alshamsh93
- 29
- 4
1
vote
1 answer
fast-xml-parse returns only one of object instead of array in Nodejs
I'm doing tracking functionality using some service. It provides response in XML format. To parse XML response I have decided to use fast-xml-parser package.
But there is a problem:
When I get only one item in response, it works well, but if I have…

vladys.bo
- 730
- 2
- 11
- 34
1
vote
1 answer
Get text nodes separately (in the correct order) with fast-xml-parser?
No matter what options I try, I seem to get all text nodes clustered together, without any information on where the inner XML nodes were inserted. It's easier to explain with a simple example:
left middle right
I expect this to give…

Lazar Ljubenović
- 18,976
- 10
- 56
- 91
1
vote
0 answers
fast-xml-parser parsing xml input incorrectly
Why is this test not passing with fastxmlparser
import parser from 'fast-xml-parser'
test("fastxmlparser", () => {
let parsed = parser.parse('john 116347579610481033 ')
…

sat
- 5,489
- 10
- 63
- 81
0
votes
0 answers
Error(1): component conversion failed: fast_xml_parser_1.XMLBuilder is not a constructor
Erorr(1): component conversion failed: fast_xml_parser_1.XMLBuilder is not a constructor.
Jenkins job using SFDx Cli for deployment purpose. but it is getting fail on the same validation or check-only stage.
Earlier jobs were getting successfully…

Param J
- 1
- 2
0
votes
1 answer
Using fast-xml-parser to convert JSON to XML to create list of child nodes
I have the following JSON:
{
"ExternalId": "1234-01",
"Name": "product name",
"Attributes": [
{
"Attribute": "attr-value-1"
},
{
"Attribute": "attr-value-2"
}
]
}
and I want to…

user1896799
- 31
- 1
0
votes
2 answers
loss of leading zeros when using fast-xml-parser
I am using fast-xml-parser and have a challenge in preserving leading zeros. I have simplified the example to the core of my problem.
I would like to preserve these leading zeros in the value of an item in the xmlOutput. I want xmlOutput to…
0
votes
1 answer
The Website reports a validation error, but the code does not
I am using the fast-xml-parser, and it trying to write a few test cases, I get a failure on some plain text from the Javascript code. However, access the site's online webpage to try the validator, returns an error.
My XML check
import * as XmlLib…

Steven Scott
- 10,234
- 9
- 69
- 117
0
votes
1 answer
Is there a way to tell fast-xml-parser how to parse xml tags?
I am parsing an XML with fast-xml-parser. And the result JSON looks like this:
{
RecordingToken: '4dddcdf8-0a0b-42a7-ae6d-231d5d7b6c40',
Source: {
Name: 'camera 40',
Location: 'New Recording - Source Location',
Description:…

Straticiuc Vicu
- 102
- 3
- 12
0
votes
0 answers
parsing xml to json through fast-xml-parser changes the string value
i am parsing a xml having this attribute : 42303933365137544b36 when converting to json the value of sku changes to : "sku" : "42303933365446540000",
i am using fast-xml-parser in node
Kindy suggest what is the issue and how can we resovle this…
0
votes
1 answer
Need help in converting XML to JS
I'm using fast-xml-parser and it can parse some of the data we get from an API but not consistent. There is this specific response that cannot be parsed to JS object.

Nats
- 1
0
votes
0 answers
Error when trying to paste qrcode into docx document
I upload a docx file on the client and use fast-xml-parser to parse a docx file into xml, before that, using jszip, I open the document archive.
const doc = fs.readFileSync(files.uploadFile.path);
const zip = new JSZip();
await…

eugenes
- 151
- 7
0
votes
0 answers
Parse/Read XML elements from List of String in java
I have an XML file as List means each line of the XML as String in List. Now I am looking for different(& best) ways to parse/read this XML data from List.
Previously I have worked on parsing XML files directly with the help of…

user2367130
- 125
- 1
- 2
- 10
0
votes
0 answers
Using Execute Immediate to insert the data by querying the XML whose size > 4 MB
I am currently unable to insert the data into a table by querying an XML whose file size is > 4 MB in PL/SQL. Please advice.
Code :
DECLARE
vTable VARCHAR2(400);
vExecSQL CLOB;
vInsColNames VARCHAR2(32767);
vSelColNames…

Pradeep
- 3
- 1
- 3