hi @nto,
if you are in an OO programming language, why not create an object that represents the xml instance, in you example the user.
when createing a new user, fill the properties of that java object.
then, simply generate a toXML method for that object, that complies to the rules of your schema.
if i remember correctly, there are even tools that will look at a schema and create java classes that represent thes objects for you.
hope that helps.
andreas f.
#API-Management#webMethods#webMethods-Tamino-XML-Server-APIs