Hi Nicolas,
At 02:00 PM 3/1/2006 +0200, Nicolas Tsokas wrote:
Hi everyone,
Im trying to obtain info about an element using
PSVI (trying to resolve allowed children and attributes
for that specific element).
I obtain a pointer to the corresponding
ComplexTypeInfo object which describes the element. Then I
get the names and namespaces of the allowed
children for that element by using ComplextTypeInfos
elementAt(index) method and by obtaining
pointers to SchemaElementDecl objects.
I have a problem with the attributes, though:
I get the list of attributes through
getAttDefList() method of the ComplexTypeInfo object.
Then I obtain a SchemaAttDef for each attribute.
SchemaAttDef gives the attributes name
through its method getFullName(), but I cannot
figure out any way of finding their namespaces
(or namespace prefixes)
Am I missing something?...
Have you tried with SchemaAttDef::getAttName()?
The QName* it returns should give you prefix, local name and namespace URI.
Alberto
Can anybody please help me?
Thank you so much in advance
Nicolas
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]