Questions tagged [xml-builder]

62 questions
0
votes
1 answer

Add new xml nodes dynamically with N number of nested tags

I have the below sample xml. Test@yopmail.com And I want to insert a new set of xml message tags dynamically using groovy as the below 2 samples. For example every message will have the A,B & C tags. But the nested tags…
jdk1.7
  • 166
  • 1
  • 9
0
votes
0 answers

Search specific attribute in all entities FetchXML Builder

This question might be silly/not possible. But I am trying to search in XMLBuilder where a specific attribute exists. For example I have an attribute: mmm_attribute, but I am not sure in what entity it exists. Can I search and find it in…
Amelia W
  • 105
  • 1
  • 9
0
votes
0 answers

How to keep empty space in xml tags as it is using xmbuilderjs2?

I am getting my xml response as below. It has empty space in between the tags. ............
......... When I parse my XML to json using xmlbuilderjs2 using below, it converts empty…
node_saini
  • 727
  • 1
  • 6
  • 22
0
votes
1 answer

How to Insert xml nodes in a CData section when creating a xml document with xmlbuilder2

I'm having trouble creating a XML document with a CDATA section. Given this code: const xmlObj = { "s:Envelope": { '@xmlns:s': http://schemas.xmlsoap.org/soap/envelope/", "s:Body": { "DoStuff": { …
Nigel
  • 985
  • 1
  • 11
  • 16
0
votes
0 answers

xmlbuilder2 and NodeJS/ExpressJS

I have a requirement to provide an endpoint that generates a sitemap. This endpoint uses 'xmlbuilder2' and the goal is to return pure XML that can be delivered to the browser. @Get() public getSitemapFile(): Promise { return new…
mkjp2011
  • 1
  • 1
0
votes
1 answer

Create XML object with dynamical content from a source CSV file

I have the following CSV file: iDocType,iDocId,iName,iDate P,555551555,Braiden,2022-12-31 I,100000001,Dominique,2024-12-10 P,100000002,Joyce,2025-11-15 Using jmeter's JSR223 preprocessor element, I need to compose an XML parent node containing…
JustNatural
  • 375
  • 7
  • 19
0
votes
1 answer

How to add a custom tag in xml using xmlbuilder package in node javascript

I am having a case where I want to add this tag in my xml just below the prolog something like this : I am able to add the first line , but not getting how do I add the…
0
votes
1 answer

rails 3 XML builder: return no XML element when there's no data

I get this nice XML when there's data in the fields: 00 01 01 198
snowangel
  • 3,452
  • 3
  • 29
  • 72
0
votes
1 answer

xml builder root is keeping the track of previous values and duplicates the results but unable to make it empty also

I tried searching the answer but as there a limited number of questions on XMLBUILDER could not find. Hence posting the question really sorry if found duplicate. I am using the XMLBUILDER Node.js module to create the XML for my project. I have a…
BATMAN_2008
  • 2,788
  • 3
  • 31
  • 98
0
votes
3 answers

Efficient way to calculate if the fields are populated using the if condition in javascript when the field list is very large

I have a form which has lot of fields consider maybe 100. All of the fields are different such as it could be StartTime DateTime EndTime Value etc.. User can fill whichever the field they want and keep the remaining fields black. Now on the…
BATMAN_2008
  • 2,788
  • 3
  • 31
  • 98
0
votes
1 answer

build every group of data and add them to the rendered XML page using xmlbuilder2

I'm using xmlbuilder2 node module to build the retrieved data and render them into XML page. when the data is very big I got this error FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory I was…
0
votes
2 answers

JSON to XML conversion in Node JS service (using xml2js)

I need some help/advice with JSON to XML conversion in Node js. I have a service that gets a JSON object in request body that needs to convert to XML. I am able to achieve this using node-xml2js for json inputs with maximum one level of nested…
JavaNaresh
  • 5
  • 1
  • 1
  • 4
0
votes
1 answer

Creating nested XMLs in node using xmlbuilder

I am using the following framework to build my xmls https://www.npmjs.com/package/xmlbuilder When I do the following .ele('ATTACHMENTS','') .ele('ATTACHMENT', attachmentXML) I have another attachmentXML which looks like this attachmentXML =…
p0tta
  • 1,461
  • 6
  • 28
  • 49
0
votes
0 answers

How to make output in 1 row for xml.builder?

I want have output in 1 row text: nIm newspaper text I used xml.A { |t| t.d "n"; t.text! advert.newspaper_text } In this case i have output: n Im newspaper text How i can do it?
Nkey
  • 41
  • 1
  • 1
  • 6
0
votes
1 answer

How to generate xml tags dynamically from Rails DB using Nokogiri XML Builder

I want to build xml from rails application. I wanted to generate tags from rails application database. For example: I have a database table called cars and it have variable brand and it has values. So I want to generate xml like this
Ruby4Rails
  • 81
  • 1
  • 11