[XML Records] XML Records - Set value to a node

Forge Component
(44)
Published on 2019-11-25 by Afonso Carvalho
44 votes
Published on 2019-11-25 by Afonso Carvalho

Hi guys,


Someone knows how can I set a value to a node?

Something like the part that it's bold:

<tag op="1">

         <child1></child1>

</tag>


Thanks in advanced.

Kind Regards,

Diogo Miguel

Processing Upload...

Hey Diogo,

See attached oml for a possible solution.


Basically you have to define an attribute in your tag structure with a prefix, default is "Attr_", then you can assign whatever value you want to it.

Hi Hugo,

Thank you for the reply, but there some problem witht the attach because I can't see it, I only see a jumping dot with Processing Upload...


Can you please try to re-upload the oml?


Regards,

Diogo Miguel

Solution

Diogo Miguel wrote:

Hi Hugo,

Thank you for the reply, but there some problem witht the attach because I can't see it, I only see a jumping dot with Processing Upload...


Can you please try to re-upload the oml?


Regards,

Diogo Miguel

Let's see if it works now.




Solution

Hugo,


It solved.

Thank you very much.


Regards,

Diogo Miguel

Hugo Ferreira wrote:

Hey Diogo,

See attached oml for a possible solution.


Basically you have to define an attribute in your tag structure with a prefix, default is "Attr_", then you can assign whatever value you want to it.

Hey, Hugo,

when I use the "Cont_" prefix, the output is like this:

i.e. with spaces.

How can I do it without spaces? Like this: