PDA

View Full Version : Passing an attribuit on to a command


CJL
10-03-2004, 03:35 AM
I'm real new at XML and I'm trying to edit an existing script below. I'm trying limit the number of variables that are sent at the end of the <command> line. I only want to send the first four numbers of the AttributeID.MODEL_NAME to end of the <command>. I would appreciate anyone’s insight on this issue or help



<item name="Testing">
<action>
<filter>
<has-attribute>AttributeID.NETWORK_ADDRESS</has-attribute>
</filter>
<launch-application>
<platform>
<os-name>Windows 2000</os-name>
<command>\\Central\Infrastructure\{0}.vsd</command>
</platform>
<param>
<attribute>AttributeID.MODEL_NAME</attribute>
</param>
</launch-application>
</action>
</item>

Alex Vincent
10-03-2004, 04:49 AM
:confused:

What's generating this XML document? What's reading it? (I mean, what programming languages are you using to generate/read this document.)

CJL
10-03-2004, 05:07 AM
I apologize for my vagueness, This is getting executed in a JAVA application.

Alex Vincent
10-03-2004, 08:18 PM
If it was JavaScript, I could probably help you. Java is a language I don't know.

I can pretty much guarantee no one will be able to help you without seeing the Java source code you're using, again both to generate and to read the XML document. Once we get that, I'll probably transfer this thread to the "Other server-side languages/issues" forum, as we don't have a forum dedicated to Java.