Author |
Message
|
ydsk |
Posted: Fri Dec 24, 2010 10:29 am Post subject: pcdata in XMLNSC domain (RetainMixedContent) |
|
|
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 |
|
 |
mqjeff |
Posted: Fri Dec 24, 2010 10:41 am Post subject: |
|
|
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 |
|
 |
ydsk |
Posted: Fri Dec 24, 2010 10:36 pm Post subject: |
|
|
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 |
|
 |
kimbert |
Posted: Mon Dec 27, 2010 4:41 am Post subject: |
|
|
 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 |
|
 |
ydsk |
Posted: Mon Dec 27, 2010 8:00 am Post subject: |
|
|
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 |
|
 |
kimbert |
Posted: Mon Dec 27, 2010 10:07 am Post subject: |
|
|
 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 |
|
 |
|