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 » pcdata in XMLNSC domain (RetainMixedContent)

Post new topic  Reply to topic
 pcdata in XMLNSC domain (RetainMixedContent) « View previous topic :: View next topic » 
Author Message
ydsk
PostPosted: Fri Dec 24, 2010 10:29 am    Post subject: pcdata in XMLNSC domain (RetainMixedContent) Reply with quote

Chevalier

Joined: 23 May 2005
Posts: 410

We use WMQ v7 with WMB v7 on Windows 2008 SR2 servers.

We use File Input nodes to read xml files, and many xml tag values can have pcdata content as per the requirements. What is the best way to specify pcdata in the xml schemas ?

We are currently preparing xml schemas based on the requirements.

I saw that for the XMLNSC domain in FileInput node, there is an option 'RetainMixedContent'. Curious to know what the option means. Does it allow pcdata ? Or do we have to specify pcdata in the xml schemas that we are preparing ? or, do we have to do both ?

Can somebody please throw some light ?

Thanks
ydsk.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Fri Dec 24, 2010 10:41 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Retain mixed content means that this:
Code:
<tag1>data<tag2>data</tag2></tag1>

will not be turned into
Code:
<tag1><tag2>data</tag2></tag2>


It has nothing to do with CData sections.
Back to top
View user's profile Send private message
ydsk
PostPosted: Fri Dec 24, 2010 10:36 pm    Post subject: Reply with quote

Chevalier

Joined: 23 May 2005
Posts: 410

Thank you Mqjeff.

So, there is NO way I can specify PCDATA in an xsd (so it can be modelled in a msgSet) ?

I need to specify PCDATA, not CDATA.

Thanks
ydsk.
Back to top
View user's profile Send private message
kimbert
PostPosted: Mon Dec 27, 2010 4:41 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Please explain what you mean by 'PCDATA'. Why would you want to specify it in an xsd?
Back to top
View user's profile Send private message
ydsk
PostPosted: Mon Dec 27, 2010 8:00 am    Post subject: Reply with quote

Chevalier

Joined: 23 May 2005
Posts: 410

Kimbert,

I know pcdata was in DTDs but "got lost" in XSDs.

We have JText adapters that use xml schema definitions with their own namespaces (something like ...../crossworlds ). Inside ALL the xml schemas there are <annotation> tags that have adapter specific stuff (NOT relevant outside the adapters), The annotation tags have pcdata elements inside the adapter-specific stuff.

We are trying to rewrite the adapters in WMB v7 using File nodes. In that process we are trying to get rid of all the namespaces in the xml schemas. We are also getting rid of annotations in the schemas as they all have adapter-specific stuff that contain pcdata elements.

Given the scenario, we need to know what to replace the pcdata stuff with in our xml schemas.

Appreciate your response.

Thanks
ydsk.
Back to top
View user's profile Send private message
kimbert
PostPosted: Mon Dec 27, 2010 10:07 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Quote:
Given the scenario, we need to know what to replace the pcdata stuff with in our xml schemas.
So you need to understand the problem, understand what the original DTDs are doing, and then produce xsds that do the same thing. I am reluctant to tell you how to do that because either
a) the answer is in the DTD specification or the XML specification or both
or else
b) this is not really a question about the meaning of DTD #PCDATA, so any answer would be misleading.

In other words, read the relevant specifications and if they don't provide the answer then ask a more specific question.
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 » pcdata in XMLNSC domain (RetainMixedContent)
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.