node-xml icon indicating copy to clipboard operation
node-xml copied to clipboard

values being omitted

Open iksnae opened this issue 9 years ago • 3 comments

i don't know what the problem is exactly, but i'm not getting expected results. here's what i see in a simple test.

screen shot 2016-05-08 at 11 01 18 am

any help would be greatly appreciated. thank you.

iksnae avatar May 08 '16 18:05 iksnae

Same problem.

IhorKirei avatar Aug 22 '16 06:08 IhorKirei

As far as I understand, JSON structure needs to be little more specific (as described in tutorial, nested objects). Each xml node should be an object itself, so, for example, in first case, proper JSON should be var input = [{x:'abc},{y:'def'},{w:100}]; That would generate valid xml.

kurunve avatar Aug 23 '16 14:08 kurunve

I'm having the same exact issue. I was hoping to pass-in a simple Json object and get a propper output, after all:

xmlObject xmlObject is a _normal_ JavaScript Object/JSON object that defines the data for the XML string.

CelsoSantos avatar Aug 30 '16 17:08 CelsoSantos