Jump to content

XML via API


Recommended Posts

Posted

I am creating an XML output and using API. I have succes with adding attributes to the 'testsuite' tag, but I cannot find the right construction to add attributes to the child - e.g. the child 'testcase' tag. Anyone have success with this?

 

post-52955-0-29414000-1415693116_thumb.p

Posted

XML can be tricky because it's refnum-based. Use error wires to force the execution order of the invoke nodes.

 

The following snippet adds an attribute "attr"="1" to the <properties/> element.

 

post-15449-0-64305300-1415702999_thumb.p

  • Like 2
Posted

Thanx. In the meantime I figured it out the same way as you - but thanks anyway. In fact I was a little surprised, that the amount of topics was so limited to this very common use file I/O.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.