Kinook Software Forum

Kinook Software Forum (https://www.kinook.com/Forum/index.php)
-   [VBP] General Discussion (https://www.kinook.com/Forum/forumdisplay.php?f=2)
-   -   Write XML Element if not exist (https://www.kinook.com/Forum/showthread.php?t=4331)

Hess_Joel 12-14-2009 10:17 AM

Write XML Element if not exist
 
1 Attachment(s)
I want to query a file for an element with a specific attribute, and if it doesn't exist, add a new element. I keep getting this error:

This name may not contain the '[' character:File-->[<--@FileName='Test']

Attached is an example of what I'm trying,

kinook 12-14-2009 10:32 AM

So you want the file





to be updated like this?






The Write XML action doesn't support creating a new element and attribute like that. You could write some script code in a Run Script action to do the specific query and update you want to do.
http://www.google.com/search?q=msxml+vbscript


All times are GMT -5. The time now is 08:30 PM.


Copyright © 1999-2023 Kinook Software, Inc.