Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Insert node Object in other node Object #185

Closed
gustavomanolo opened this issue Oct 10, 2018 · 1 comment
Closed

Insert node Object in other node Object #185

gustavomanolo opened this issue Oct 10, 2018 · 1 comment

Comments

@gustavomanolo
Copy link

I have a root element named "concepts" and i need to add a "concept" but i can't add it with ".ele() function"

let nodeConcepts = xmlBuilder.begin().ele("concepts");
let nodeConcept = xmlBuilder.begin().ele("concept", {
      Quantity: 1,
      Price: 10
    });

nodeConcepts.ele(nodeConcept);

But i get the following error:
RangeError: Maximum call stack size exceeded

I'm trying to do like this, because the node "nodeConcept" can have multiple childs depending on some conditions, and then i add it to the global nodeConcepts to have a final XML tree.

Do you know how to do it? Thanks a lot.

@oozcitak
Copy link
Owner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants