ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Creating an XML attribute for a xsd:AnyType using MRM

Post new topic  Reply to topic
 Creating an XML attribute for a xsd:AnyType using MRM « View previous topic :: View next topic » 
Author Message
venusboy
PostPosted: Wed Nov 29, 2006 9:18 pm    Post subject: Creating an XML attribute for a xsd:AnyType using MRM Reply with quote

Acolyte

Joined: 11 Jun 2002
Posts: 51

I have a XML schema that I need to model as an MRM for validation purposes. This schema contains a xsd:AnyType type, for example:

<xs:element name="FixedType" type="xs:string">
<xs:element name="AnyType" type="xs:anyType"/>

Thus the following XML is valid against the Schema extract:

<FixedType>myString</FixedType>
<AnyType undefinedAttribute="67890">
<UndefinedElement>12345</UndefinedElement>
</AnyType>

The question is how can I model the attribute when it's defined as an anyType MRM? The MRM defines the xs:anyType as:

a) Wildcard Attribute *
b) Wildcard Element *

Which is fine for incoming messages, but I need to construct the example above.

Can this be done in one swoop. Reading other posts, then I understand the (XML.Attr) will compile and deploy but has no effect on the MRM as normally the XML type would be defined in the set.

Thanks in advance.
Back to top
View user's profile Send private message
kimbert
PostPosted: Thu Nov 30, 2006 1:22 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Have you tried importing your schema?
Back to top
View user's profile Send private message
venusboy
PostPosted: Mon Dec 04, 2006 9:24 pm    Post subject: Reply with quote

Acolyte

Joined: 11 Jun 2002
Posts: 51

Thanks for the response and not getting back to you earlier.

Yes that's the point am using an MRM that is has been generated by importing my XSD. But I cannot tell the MRM to use an attribute as it element is in-effect a wildcard.
Back to top
View user's profile Send private message
kimbert
PostPosted: Tue Dec 05, 2006 1:58 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Try
Code:
CREATE FIRSTCHILD OF anyType Name '@undefinedAttribute' TYPE NameValue VALUE '67890';
Back to top
View user's profile Send private message
shanson
PostPosted: Tue Dec 05, 2006 4:44 am    Post subject: Reply with quote

Partisan

Joined: 17 Oct 2003
Posts: 344
Location: IBM Hursley

As an alternative, try using XMLNSC or XMLNS, and the Schema Validation supportpac IA9A (http://www-1.ibm.com/support/docview.wss?rs=171&uid=swg24010092&loc=en_US&cs=utf-8&lang=en).
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Creating an XML attribute for a xsd:AnyType using MRM
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.