|
Hey guys, Below is code of how far we have gotten,
but I don’t understand why we had to get the content model to do this. Roshan
Punnoose Phone: 301-497-6039 From: Roshan, Here’s the code snippet for the appinfo….can
you ask why I need to get the content model for the xml schema declaration
below (myAnnotation is a global element)? SchemaType
schemaType = XMyAnnotationDocument.type;
SchemaParticle schemaParticle = schemaType.getContentModel(); SchemaAnnotation
schemaAnnotation = ((SchemaLocalElement) schemaParticle)
.getAnnotation(); XmlObject[]
xmlObjects = schemaAnnotation.getApplicationInformation(); XmlObject[]
applicationInformationChildren = xmlObjects[0]
.selectChildren(new QName("http://www.tempuri.org/ui",
"attributes", "ui")); </xs:schema> ……………….. ……………….. ……………….. <xs:element name="myAnnotation">
<xs:annotation>
<xs:appinfo>
<ui:attributes xmlns:ui="http://www.tempuri.org/ui" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.tempuri.org/presentation
./presentation.xsd">
<ui:displayable>false</ui:displayable>
<ui:fieldDisplayOrder>1</ui:fieldDisplayOrder>
<ui:informationSubCategory>Identification</ui:informationSubCategory>
<ui:mandatoryQuery>true</ui:mandatoryQuery>
<ui:mandatoryReturn>false</ui:mandatoryReturn>
<ui:queryable>true</ui:queryable>
<ui:suggestedQuery>false</ui:suggestedQuery>
<ui:suggestedReturn>true</ui:suggestedReturn>
</ui:attributes>
</xs:appinfo>
</xs:annotation> </xs:element> </xs:schema> |
BEGIN:VCARD VERSION:2.1 N:Punnoose;Roshan FN:Punnoose, Roshan ADR;WORK:;2115 LABEL;WORK:2115 EMAIL;PREF;INTERNET:[EMAIL PROTECTED] REV:20050413T183207Z END:VCARD
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

