Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X
Hi,
I have an issue regarding the xmlapi option.
My problem is that using the option --xmlapi
with the CLI or using com.mks.connect.AbstractCmdRunner.executeWithXML(String[] cmd)
with the java API gives different output for the node Response//WorkItems//WorkItem//Field//Value
While the CLI has an additional node TokenValue containing the value of the "Value", the java API gives the value as part of the Value node.
Example:
<Field name="projectType">
<Value dataType="string">
<TokenValue>Variant</TokenValue>
</Value>
</Field>
vs.
<Field name="projectType">
<Value dataType="string">Variant</Value>
</Field>
I wonder if one of you has an explanation - or even better a solution to align both outputs to whatever version.
This example is part of result from si sandboxinfo --xmlapi
Veikko
Hello Veikko,
The --xmlapi option is not published and not supported, and so not guaranteed to match with anything else or remain consistent from one release to the next. It is not recommended for use.
Regards,
Kael