on 2024 Jan 05 1:45 PM
Request clarification before answering.
You can try to use a loop and within loop build a element/node addition and data filling logic.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Would be really nice if SAP-CPQ could provide proper example !
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
A loop will not be a solution since I need elements with different names, something like below
<users>
<user>
<name>Smith</name>
<firstname>John</firstname>
<country>England</country>
</user>
<user>
<name>Doe</name>
<firstname>Joe</firstname>
<country>U.S.</country>
</user>
</users>
Question is how can you add multiple XMLNodes under a node when these are the only available methods:
- CreateXmlNode(String, Object) Create XML Node with specified node name and node value.
- CreateXmlNode(String, XmlNode[]) Create XML Node with specified node name and node child(ren).
- Load(Stream) Loads XML document for the specified stream.
- Load(String) Loads XML document for the specified text.
- SerializeObject<T> Serializes the specified System.Object and writes the XML document to a System.String.
- SetAttribute Set attribute to specified node
and as far as I understand the one below is the one that I should be able to use, but how can I create "XmlNode[]" an array of XML nodes using your XML helper.
- CreateXmlNode(String, XmlNode[]) Create XML Node with specified node name and node child(ren).
Kind Regards
Tom
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
6 | |
2 | |
2 | |
2 | |
2 | |
2 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.