Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » XML Schema Definition (XSD) » Declare a default attribute
Declare a default attribute [message #915342] Mon, 17 September 2012 00:58 Go to previous message
Dorothy Taylor is currently offline Dorothy Taylor
Messages: 2
Registered: March 2012
Junior Member
Hi

I am new to schemas. Could anyone please suggest how I can create a schema element for capturing this requirement. Basically I want to have an xml tag such that it executes a Linux command say, <task name ="A" command="ls" /> I want that without specifying the Result attribute in this tag, I should be able to capture the result (success or failure) of the command in a global 'result' variable. Is there a way I can declare the 'Result' in my xsd(sxhema)? When I will write the engine for this xml-xsd in java, at that time, the behaviour of the 'Result' is that the result of the last executed task element will be stored in it, without even the schema-instance being aware of it

Thanks
 
Read Message
Read Message
Previous Topic:Schema default value not honored for complex type
Next Topic:create XML document based on XSDElementDeclaration
Goto Forum:
  


Current Time: Wed May 22 14:50:18 EDT 2013

Powered by FUDForum. Page generated in 0.01665 seconds