<?xml version="1.0" encoding="ISO-8859-1"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>DevX.com Forums - XML</title>
		<link>http://forums.devx.com</link>
		<description>SOAP, Schema, WSDL, XAML, etc.</description>
		<language>en</language>
		<lastBuildDate>Sun, 22 Nov 2009 04:41:57 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://forums.devx.com/images/misc/rss.jpg</url>
			<title>DevX.com Forums - XML</title>
			<link>http://forums.devx.com</link>
		</image>
		<item>
			<title>XPath to get the nearest preceding sibling - howto?</title>
			<link>http://forums.devx.com/showthread.php?t=173408&amp;goto=newpost</link>
			<pubDate>Wed, 18 Nov 2009 23:31:58 GMT</pubDate>
			<description><![CDATA[I need to write a XPath for getting the closest sibling to the current node. It should return exactly 1 element. Also that sibling should match some other criterias like his attributes' values. How to write it?]]></description>
			<content:encoded><![CDATA[<div>I need to write a XPath for getting the closest sibling to the current node. It should return exactly 1 element. Also that sibling should match some other criterias like his attributes' values. How to write it?</div>

]]></content:encoded>
			<category domain="http://forums.devx.com/forumdisplay.php?f=113">XML</category>
			<dc:creator>senglory</dc:creator>
			<guid isPermaLink="true">http://forums.devx.com/showthread.php?t=173408</guid>
		</item>
		<item>
			<title>How to use XQuery to solve this query?</title>
			<link>http://forums.devx.com/showthread.php?t=173374&amp;goto=newpost</link>
			<pubDate>Sun, 15 Nov 2009 03:11:33 GMT</pubDate>
			<description>Solved</description>
			<content:encoded><![CDATA[<div>Solved</div>

]]></content:encoded>
			<category domain="http://forums.devx.com/forumdisplay.php?f=113">XML</category>
			<dc:creator>blizzaaard</dc:creator>
			<guid isPermaLink="true">http://forums.devx.com/showthread.php?t=173374</guid>
		</item>
		<item>
			<title>Is this schema possible?</title>
			<link>http://forums.devx.com/showthread.php?t=173369&amp;goto=newpost</link>
			<pubDate>Fri, 13 Nov 2009 20:56:20 GMT</pubDate>
			<description><![CDATA[Hey, I'm wondering if this schema is possible. I have a complex node that consists of many string nodes that must appear in a specific order, here's what I have:

<element name="MyNode">
  <complexType>
    <sequence>
      <element name="Title" type="string"/>
      <element name="Intro" type="string" minOccurs="0"/>
      <element name="Description" type="string"/>
      <element name="Explanation" type="string" minOccurs="0"/>
      <element name="Idea" type="string" minOccurs="0"/>
      <element name="Warning" type="string" minOccurs="0"/>
    </sequence>
  </complexType>
</element>

This is the tricky part, for me. Theres another element that I want to be able to add to MyNode called "Possibilities" and this node should be able to appear under "Intro" and before "Warning". That makes 4 possible place it can be. I only want a "Possibilities" node to appear a maximum of 2 times. I'm stuck. If I do this:

<element name="MyNode">
  <complexType>
    <sequence>
      <element name="Title" type="string"/>
      <element name="Intro" type="string" minOccurs="0"/>
      <element name="Posibilities" type="string" minOccurs="0" maxOccurs="2"/>
      <element name="Description" type="string"/>
      <element name="Posibilities" type="string" minOccurs="0" maxOccurs="2"/>
      <element name="Explanation" type="string" minOccurs="0"/>
      <element name="Posibilities" type="string" minOccurs="0" maxOccurs="2"/>
      <element name="Idea" type="string" minOccurs="0"/>
      <element name="Posibilities" type="string" minOccurs="0" maxOccurs="2"/>
      <element name="Warning" type="string" minOccurs="0"/>
    </sequence>
  </complexType>
</element>

Then "Posibilities" can appear 0 - 8 time but I only want it to appear at most twice. Any ideas?]]></description>
			<content:encoded><![CDATA[<div>Hey, I'm wondering if this schema is possible. I have a complex node that consists of many string nodes that must appear in a specific order, here's what I have:<br />
<br />
&lt;element name=&quot;MyNode&quot;&gt;<br />
  &lt;complexType&gt;<br />
    &lt;sequence&gt;<br />
      &lt;element name=&quot;Title&quot; type=&quot;string&quot;/&gt;<br />
      &lt;element name=&quot;Intro&quot; type=&quot;string&quot; minOccurs=&quot;0&quot;/&gt;<br />
      &lt;element name=&quot;Description&quot; type=&quot;string&quot;/&gt;<br />
      &lt;element name=&quot;Explanation&quot; type=&quot;string&quot; minOccurs=&quot;0&quot;/&gt;<br />
      &lt;element name=&quot;Idea&quot; type=&quot;string&quot; minOccurs=&quot;0&quot;/&gt;<br />
      &lt;element name=&quot;Warning&quot; type=&quot;string&quot; minOccurs=&quot;0&quot;/&gt;<br />
    &lt;/sequence&gt;<br />
  &lt;/complexType&gt;<br />
&lt;/element&gt;<br />
<br />
This is the tricky part, for me. Theres another element that I want to be able to add to MyNode called &quot;Possibilities&quot; and this node should be able to appear under &quot;Intro&quot; and before &quot;Warning&quot;. That makes 4 possible place it can be. I only want a &quot;Possibilities&quot; node to appear a maximum of 2 times. I'm stuck. If I do this:<br />
<br />
&lt;element name=&quot;MyNode&quot;&gt;<br />
  &lt;complexType&gt;<br />
    &lt;sequence&gt;<br />
      &lt;element name=&quot;Title&quot; type=&quot;string&quot;/&gt;<br />
      &lt;element name=&quot;Intro&quot; type=&quot;string&quot; minOccurs=&quot;0&quot;/&gt;<br />
      &lt;element name=&quot;Posibilities&quot; type=&quot;string&quot; minOccurs=&quot;0&quot; maxOccurs=&quot;2&quot;/&gt;<br />
      &lt;element name=&quot;Description&quot; type=&quot;string&quot;/&gt;<br />
      &lt;element name=&quot;Posibilities&quot; type=&quot;string&quot; minOccurs=&quot;0&quot; maxOccurs=&quot;2&quot;/&gt;<br />
      &lt;element name=&quot;Explanation&quot; type=&quot;string&quot; minOccurs=&quot;0&quot;/&gt;<br />
      &lt;element name=&quot;Posibilities&quot; type=&quot;string&quot; minOccurs=&quot;0&quot; maxOccurs=&quot;2&quot;/&gt;<br />
      &lt;element name=&quot;Idea&quot; type=&quot;string&quot; minOccurs=&quot;0&quot;/&gt;<br />
      &lt;element name=&quot;Posibilities&quot; type=&quot;string&quot; minOccurs=&quot;0&quot; maxOccurs=&quot;2&quot;/&gt;<br />
      &lt;element name=&quot;Warning&quot; type=&quot;string&quot; minOccurs=&quot;0&quot;/&gt;<br />
    &lt;/sequence&gt;<br />
  &lt;/complexType&gt;<br />
&lt;/element&gt;<br />
<br />
Then &quot;Posibilities&quot; can appear 0 - 8 time but I only want it to appear at most twice. Any ideas?</div>

]]></content:encoded>
			<category domain="http://forums.devx.com/forumdisplay.php?f=113">XML</category>
			<dc:creator>Ickis</dc:creator>
			<guid isPermaLink="true">http://forums.devx.com/showthread.php?t=173369</guid>
		</item>
		<item>
			<title>How to code data for a SOAP array</title>
			<link>http://forums.devx.com/showthread.php?t=173365&amp;goto=newpost</link>
			<pubDate>Fri, 13 Nov 2009 15:24:07 GMT</pubDate>
			<description><![CDATA[Hello Folks!
Env: XP PRO, JScript, SOAP, WSDL, XML

I have to query the status of two devices (SEP0017593F52C4, SEP0007EB9F1118) using a SOAP RPC. The device list is suppose to be coded in a SOAP string array item.
Here is the WSDL:

CODE
The WSDL def for the select items array:
- <complexType name="CmSelectionCriteria">
- <sequence>
  <element name="MaxReturnedDevices" nillable="true" type="xsd:unsignedInt" /> 
  <element name="Class" nillable="true" type="xsd:string" /> 
  <element name="Model" nillable="true" type="xsd:unsignedInt" /> 
  <element name="Status" type="xsd:string" /> 
  <element name="NodeName" nillable="true" type="xsd:string" /> 
  <element name="SelectBy" type="xsd:string" /> 
  <element name="SelectItems" nillable="true" type="tns:SelectItems" /> 
  </sequence>
  </complexType>

- <complexType name="SelectItem">
- <sequence>
  <element name="Item" type="xsd:string" /> 
  </sequence>
  </complexType>
  
- <complexType name="SelectItems">
- <complexContent>
- <restriction base="soapenc:Array">
  <attribute ref="soapenc:arrayType" wsdl:arrayType="tns:SelectItem[]" /> 
  </restriction>
  </complexContent>
  </complexType>
  

The example I was told to use is:

CODE
<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
 xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
 xmlns:tns="http://schemas.cisco.com/ast/soap/"
  xmlns:types="http://schemas.cisco.com/ast/soap/encodedTypes"
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
<tns:AstHeader> <SessionId xsi:type="xsd:string">613</SessionId> </tns:AstHeader>
</soap:Header>
<soap:Body soap:encodingStyle="http://schemas.xmlsoap.org
/soap/encoding/">
<tns:SelectCmDevice>
<StateInfo xsi:type="xsd:string"/>
<tns:CmSelectionCriteria xsi:type="tns:CmSelectionCriteria">
<MaxReturnedDevices xsi:type="xsd:unsignedInt">200</MaxReturnedDevices>
<NodeName xsi:type="xsd:string"/>
<SelectBy xsi:type="xsd:string">Name</SelectBy>
<SelectItems soapenc:arrayType="tns:SelectItem[1]" xsi:type="soapenc:Array">
<item xsi:type="tns:SelectItem">
<Item xsi:type="xsd:string">SEP0017593F52C4</Item>
</item> <item xsi:type="tns:SelectItem">
<Item xsi:type="xsd:string">SEP0007EB9F1118</Item>
</item>
</SelectItems>
</tns:CmSelectionCriteria>
</tns:SelectCmDevice>

I have some confusion so here are a couple of questions:
1) The above example worked but I noticed I have 2 items and SelectItems had "tns:SelectItem[1]". What does this "[1]" specify in this case.
 I was thinking it limits the number of items you are transmitting but that can't be the case because the RPC processed the 2 devices correctly.
 So what is that[1]?
2) Is there a shorter way to code this rather than all this code for each item inthe SOAP array? 
<SelectItems soapenc:arrayType="tns:SelectItem[1]" xsi:type="soapenc:Array">
<item xsi:type="tns:SelectItem">
<Item xsi:type="xsd:string">SEP0017593F52C4</Item>
</item> <item xsi:type="tns:SelectItem">
<Item xsi:type="xsd:string">SEP0007EB9F1118</Item>
</item>
</SelectItems>

I tried this way but it only processes the last item in the list: SEP0007EB9F1118
<SelectItems soapenc:arrayType="tns:SelectItem[2]" xsi:type="soapenc:Array">
<item xsi:type="tns:SelectItem">
<Item xsi:type="xsd:string">SEP0017593F52C4</Item>
<Item xsi:type="xsd:string">SEP0007EB9F1118</Item>
</item>
</SelectItems>
</tns:CmSelectionCriteria>
</tns:SelectCmDevice>]]></description>
			<content:encoded><![CDATA[<div>Hello Folks!<br />
Env: XP PRO, JScript, SOAP, WSDL, XML<br />
<br />
I have to query the status of two devices (SEP0017593F52C4, SEP0007EB9F1118) using a SOAP RPC. The device list is suppose to be coded in a SOAP string array item.<br />
Here is the WSDL:<br />
<br />
CODE<br />
The WSDL def for the select items array:<br />
- &lt;complexType name=&quot;CmSelectionCriteria&quot;&gt;<br />
- &lt;sequence&gt;<br />
  &lt;element name=&quot;MaxReturnedDevices&quot; nillable=&quot;true&quot; type=&quot;xsd:unsignedInt&quot; /&gt; <br />
  &lt;element name=&quot;Class&quot; nillable=&quot;true&quot; type=&quot;xsd:string&quot; /&gt; <br />
  &lt;element name=&quot;Model&quot; nillable=&quot;true&quot; type=&quot;xsd:unsignedInt&quot; /&gt; <br />
  &lt;element name=&quot;Status&quot; type=&quot;xsd:string&quot; /&gt; <br />
  &lt;element name=&quot;NodeName&quot; nillable=&quot;true&quot; type=&quot;xsd:string&quot; /&gt; <br />
  &lt;element name=&quot;SelectBy&quot; type=&quot;xsd:string&quot; /&gt; <br />
  &lt;element name=&quot;SelectItems&quot; nillable=&quot;true&quot; type=&quot;tns:SelectItems&quot; /&gt; <br />
  &lt;/sequence&gt;<br />
  &lt;/complexType&gt;<br />
<br />
- &lt;complexType name=&quot;SelectItem&quot;&gt;<br />
- &lt;sequence&gt;<br />
  &lt;element name=&quot;Item&quot; type=&quot;xsd:string&quot; /&gt; <br />
  &lt;/sequence&gt;<br />
  &lt;/complexType&gt;<br />
  <br />
- &lt;complexType name=&quot;SelectItems&quot;&gt;<br />
- &lt;complexContent&gt;<br />
- &lt;restriction base=&quot;soapenc:Array&quot;&gt;<br />
  &lt;attribute ref=&quot;soapenc:arrayType&quot; wsdl:arrayType=&quot;tns:SelectItem[]&quot; /&gt; <br />
  &lt;/restriction&gt;<br />
  &lt;/complexContent&gt;<br />
  &lt;/complexType&gt;<br />
  <br />
<br />
The example I was told to use is:<br />
<br />
CODE<br />
&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;<br />
&lt;soap:Envelope xmlns:soap=&quot;http://schemas.xmlsoap.org/soap/envelope/&quot;<br />
 xmlns:soapenc=&quot;http://schemas.xmlsoap.org/soap/encoding/&quot;<br />
 xmlns:tns=&quot;http://schemas.cisco.com/ast/soap/&quot;<br />
  xmlns:types=&quot;http://schemas.cisco.com/ast/soap/encodedTypes&quot;<br />
 xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;<br />
 xmlns:xsd=&quot;http://www.w3.org/2001/XMLSchema&quot;&gt;<br />
&lt;soap:Header&gt;<br />
&lt;tns:AstHeader&gt; &lt;SessionId xsi:type=&quot;xsd:string&quot;&gt;613&lt;/SessionId&gt; &lt;/tns:AstHeader&gt;<br />
&lt;/soap:Header&gt;<br />
&lt;soap:Body soap:encodingStyle=&quot;http://schemas.xmlsoap.org<br />
/soap/encoding/&quot;&gt;<br />
&lt;tns:SelectCmDevice&gt;<br />
&lt;StateInfo xsi:type=&quot;xsd:string&quot;/&gt;<br />
&lt;tns:CmSelectionCriteria xsi:type=&quot;tns:CmSelectionCriteria&quot;&gt;<br />
&lt;MaxReturnedDevices xsi:type=&quot;xsd:unsignedInt&quot;&gt;200&lt;/MaxReturnedDevices&gt;<br />
&lt;NodeName xsi:type=&quot;xsd:string&quot;/&gt;<br />
&lt;SelectBy xsi:type=&quot;xsd:string&quot;&gt;Name&lt;/SelectBy&gt;<br />
&lt;SelectItems soapenc:arrayType=&quot;tns:SelectItem[1]&quot; xsi:type=&quot;soapenc:Array&quot;&gt;<br />
&lt;item xsi:type=&quot;tns:SelectItem&quot;&gt;<br />
&lt;Item xsi:type=&quot;xsd:string&quot;&gt;SEP0017593F52C4&lt;/Item&gt;<br />
&lt;/item&gt; &lt;item xsi:type=&quot;tns:SelectItem&quot;&gt;<br />
&lt;Item xsi:type=&quot;xsd:string&quot;&gt;SEP0007EB9F1118&lt;/Item&gt;<br />
&lt;/item&gt;<br />
&lt;/SelectItems&gt;<br />
&lt;/tns:CmSelectionCriteria&gt;<br />
&lt;/tns:SelectCmDevice&gt;<br />
<br />
I have some confusion so here are a couple of questions:<br />
1) The above example worked but I noticed I have 2 items and SelectItems had &quot;tns:SelectItem[1]&quot;. What does this &quot;[1]&quot; specify in this case.<br />
 I was thinking it limits the number of items you are transmitting but that can't be the case because the RPC processed the 2 devices correctly.<br />
 So what is that[1]?<br />
2) Is there a shorter way to code this rather than all this code for each item inthe SOAP array? <br />
&lt;SelectItems soapenc:arrayType=&quot;tns:SelectItem[1]&quot; xsi:type=&quot;soapenc:Array&quot;&gt;<br />
&lt;item xsi:type=&quot;tns:SelectItem&quot;&gt;<br />
&lt;Item xsi:type=&quot;xsd:string&quot;&gt;SEP0017593F52C4&lt;/Item&gt;<br />
&lt;/item&gt; &lt;item xsi:type=&quot;tns:SelectItem&quot;&gt;<br />
&lt;Item xsi:type=&quot;xsd:string&quot;&gt;SEP0007EB9F1118&lt;/Item&gt;<br />
&lt;/item&gt;<br />
&lt;/SelectItems&gt;<br />
<br />
I tried this way but it only processes the last item in the list: SEP0007EB9F1118<br />
&lt;SelectItems soapenc:arrayType=&quot;tns:SelectItem[2]&quot; xsi:type=&quot;soapenc:Array&quot;&gt;<br />
&lt;item xsi:type=&quot;tns:SelectItem&quot;&gt;<br />
&lt;Item xsi:type=&quot;xsd:string&quot;&gt;SEP0017593F52C4&lt;/Item&gt;<br />
&lt;Item xsi:type=&quot;xsd:string&quot;&gt;SEP0007EB9F1118&lt;/Item&gt;<br />
&lt;/item&gt;<br />
&lt;/SelectItems&gt;<br />
&lt;/tns:CmSelectionCriteria&gt;<br />
&lt;/tns:SelectCmDevice&gt;</div>

]]></content:encoded>
			<category domain="http://forums.devx.com/forumdisplay.php?f=113">XML</category>
			<dc:creator>azstyx</dc:creator>
			<guid isPermaLink="true">http://forums.devx.com/showthread.php?t=173365</guid>
		</item>
		<item>
			<title>XSD Visualization</title>
			<link>http://forums.devx.com/showthread.php?t=173340&amp;goto=newpost</link>
			<pubDate>Mon, 09 Nov 2009 18:00:31 GMT</pubDate>
			<description><![CDATA[I was wondering if there is a function within Visual Studio to visualize XML schema. I thought there was some way to do this but I cannot find it within the program or the help files.

If there is a way to these please let me know. If not, could you suggest another program that has this functionality?

I'm looking for something like XML Spy (http://www.altova.com/images/shots/xml_schema_editor.gif) which is free. If nothing free comes to mind other suggestions are welcome.


Thanks.]]></description>
			<content:encoded><![CDATA[<div>I was wondering if there is a function within Visual Studio to visualize XML schema. I thought there was some way to do this but I cannot find it within the program or the help files.<br />
<br />
If there is a way to these please let me know. If not, could you suggest another program that has this functionality?<br />
<br />
I'm looking for something like XML Spy (<a rel="nofollow" href="http://www.altova.com/images/shots/xml_schema_editor.gif" target="_blank">http://www.altova.com/images/shots/x...ema_editor.gif</a>) which is free. If nothing free comes to mind other suggestions are welcome.<br />
<br />
<br />
Thanks.</div>

]]></content:encoded>
			<category domain="http://forums.devx.com/forumdisplay.php?f=113">XML</category>
			<dc:creator>NTL</dc:creator>
			<guid isPermaLink="true">http://forums.devx.com/showthread.php?t=173340</guid>
		</item>
		<item>
			<title><![CDATA[Why do I get <w:p> w/o attributes?]]></title>
			<link>http://forums.devx.com/showthread.php?t=173300&amp;goto=newpost</link>
			<pubDate>Tue, 03 Nov 2009 20:05:12 GMT</pubDate>
			<description><![CDATA[XML:


Code:
---------
<w:document xmlns:ve="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing" xmlns:w10="urn:schemas-microsoft-com:office:word" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:wne="http://schemas.microsoft.com/office/word/2006/wordml">
    <w:body>
        <w:p><w:smartTag w:uri="http://schemas.openxmlformats.org/2006/smarttags" w:element="livetechdocs"><w:smartTagPr><w:attr w:name="remap"></w:attr></w:smartTagPr></w:smartTag>
            <w:pPr>
                <w:tabs>
                    <w:tab w:val="left" w:pos="8186"></w:tab>
                </w:tabs>
                <w:rPr>
                    <w:sz w:val="14"></w:sz>
                    <w:szCs w:val="14"></w:szCs>
                </w:rPr>
            </w:pPr>
        </w:p>
    </w:body>
</w:document>
---------


XSL:


Code:
---------
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
        xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main"
        xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main"
        xmlns:o="urn:schemas-microsoft-com:office:office"
        xmlns:v="urn:schemas-microsoft-com:vml"
        xmlns:WX="http://schemas.microsoft.com/office/word/2003/auxHint"
        xmlns:aml="http://schemas.microsoft.com/aml/2001/core"
        xmlns:w10="urn:schemas-microsoft-com:office:word"
        xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing"
        xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships"
        xmlns:rs="http://schemas.openxmlformats.org/package/2006/relationships"
        version="1.0">

    <xsl:output method="html" encoding="utf-8" omit-xml-declaration="no" indent="yes"/>


    <!-- http://stackoverflow.com/questions/1312210/conditional-auto-increment-in-xsl -->
    <xsl:template match="w:p[count(ancestor::w:tbl)=0]|w:tbl[count(ancestor::w:tbl)=0]|w:footnote[count(ancestor::w:tbl)=0]|w:endnote[count(ancestor::w:tbl)=0]|w:docPart[count(ancestor::w:tbl)=0]">

        <xsl:copy>
            <w:smartTag w:uri="http://schemas.openxmlformats.org/2006/smarttags" w:element="livetechdocs">
                <w:smartTagPr>
                    <xsl:element name="w:attr">
                        <xsl:attribute name="w:name">remap</xsl:attribute>
                    </xsl:element>
                </w:smartTagPr>
            </w:smartTag>

            <xsl:apply-templates/>

        </xsl:copy>

    </xsl:template>

    <!--http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/XSLT/Q_23069844.html-->
    
    <xsl:template match="node() | text()">
        <xsl:copy>
            <xsl:copy-of select="@*"/>
            <xsl:apply-templates/>
        </xsl:copy>
    </xsl:template>

</xsl:stylesheet>
---------

Why do I get <w:p> w/o attributes?]]></description>
			<content:encoded><![CDATA[<div>XML:<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">&lt;w:document xmlns:ve=&quot;http://schemas.openxmlformats.org/markup-compatibility/2006&quot; xmlns:o=&quot;urn:schemas-microsoft-com:office:office&quot; xmlns:r=&quot;http://schemas.openxmlformats.org/officeDocument/2006/relationships&quot; xmlns:m=&quot;http://schemas.openxmlformats.org/officeDocument/2006/math&quot; xmlns:v=&quot;urn:schemas-microsoft-com:vml&quot; xmlns:wp=&quot;http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing&quot; xmlns:w10=&quot;urn:schemas-microsoft-com:office:word&quot; xmlns:w=&quot;http://schemas.openxmlformats.org/wordprocessingml/2006/main&quot; xmlns:wne=&quot;http://schemas.microsoft.com/office/word/2006/wordml&quot;&gt;<br />
&nbsp; &nbsp; &lt;w:body&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;w:p&gt;&lt;w:smartTag w:uri=&quot;http://schemas.openxmlformats.org/2006/smarttags&quot; w:element=&quot;livetechdocs&quot;&gt;&lt;w:smartTagPr&gt;&lt;w:attr w:name=&quot;remap&quot;&gt;&lt;/w:attr&gt;&lt;/w:smartTagPr&gt;&lt;/w:smartTag&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;w:pPr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;w:tabs&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;w:tab w:val=&quot;left&quot; w:pos=&quot;8186&quot;&gt;&lt;/w:tab&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/w:tabs&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;w:rPr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;w:sz w:val=&quot;14&quot;&gt;&lt;/w:sz&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;w:szCs w:val=&quot;14&quot;&gt;&lt;/w:szCs&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/w:rPr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/w:pPr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/w:p&gt;<br />
&nbsp; &nbsp; &lt;/w:body&gt;<br />
&lt;/w:document&gt;</code><hr />
</div><br />
<br />
XSL:<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">&lt;xsl:stylesheet xmlns:xsl=&quot;http://www.w3.org/1999/XSL/Transform&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; xmlns:w=&quot;http://schemas.openxmlformats.org/wordprocessingml/2006/main&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; xmlns:a=&quot;http://schemas.openxmlformats.org/drawingml/2006/main&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; xmlns:o=&quot;urn:schemas-microsoft-com:office:office&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; xmlns:v=&quot;urn:schemas-microsoft-com:vml&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; xmlns:WX=&quot;http://schemas.microsoft.com/office/word/2003/auxHint&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; xmlns:aml=&quot;http://schemas.microsoft.com/aml/2001/core&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; xmlns:w10=&quot;urn:schemas-microsoft-com:office:word&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; xmlns:wp=&quot;http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; xmlns:r=&quot;http://schemas.openxmlformats.org/officeDocument/2006/relationships&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; xmlns:rs=&quot;http://schemas.openxmlformats.org/package/2006/relationships&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; version=&quot;1.0&quot;&gt;<br />
<br />
&nbsp; &nbsp; &lt;xsl:output method=&quot;html&quot; encoding=&quot;utf-8&quot; omit-xml-declaration=&quot;no&quot; indent=&quot;yes&quot;/&gt;<br />
<br />
<br />
&nbsp; &nbsp; &lt;!-- http://stackoverflow.com/questions/1312210/conditional-auto-increment-in-xsl --&gt;<br />
&nbsp; &nbsp; &lt;xsl:template match=&quot;w:p[count(ancestor::w:tbl)=0]|w:tbl[count(ancestor::w:tbl)=0]|w:footnote[count(ancestor::w:tbl)=0]|w:endnote[count(ancestor::w:tbl)=0]|w:docPart[count(ancestor::w:tbl)=0]&quot;&gt;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;xsl:copy&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;w:smartTag w:uri=&quot;http://schemas.openxmlformats.org/2006/smarttags&quot; w:element=&quot;livetechdocs&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;w:smartTagPr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;xsl:element name=&quot;w:attr&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;xsl:attribute name=&quot;w:name&quot;&gt;remap&lt;/xsl:attribute&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/xsl:element&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/w:smartTagPr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/w:smartTag&gt;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;xsl:apply-templates/&gt;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/xsl:copy&gt;<br />
<br />
&nbsp; &nbsp; &lt;/xsl:template&gt;<br />
<br />
&nbsp; &nbsp; &lt;!--http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/XSLT/Q_23069844.html--&gt;<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; &lt;xsl:template match=&quot;node() | text()&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;xsl:copy&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;xsl:copy-of select=&quot;@*&quot;/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;xsl:apply-templates/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/xsl:copy&gt;<br />
&nbsp; &nbsp; &lt;/xsl:template&gt;<br />
<br />
&lt;/xsl:stylesheet&gt;</code><hr />
</div><br />
Why do I get &lt;w:p&gt; w/o attributes?</div>

]]></content:encoded>
			<category domain="http://forums.devx.com/forumdisplay.php?f=113">XML</category>
			<dc:creator>senglory</dc:creator>
			<guid isPermaLink="true">http://forums.devx.com/showthread.php?t=173300</guid>
		</item>
		<item>
			<title><![CDATA[[XSLT] Problem with subelement and normal text]]></title>
			<link>http://forums.devx.com/showthread.php?t=173299&amp;goto=newpost</link>
			<pubDate>Tue, 03 Nov 2009 18:40:44 GMT</pubDate>
			<description><![CDATA[Hello,

I have such an XML file:

Code:
---------
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="article.xsl"?>
<article>
	<title>title</title>
            <para>Some text <link ref="some_link/">something</link> some text2</para>
</article>
---------
and I want to turn it into an HTML file using XSLT, but I have problem with <para> element: how to extract firstly Some text, then link something and then some text2? I mean I want that:

Code:
---------
Some text something some text2
---------
but I get:

Code:
---------
Some text some text2 something
---------
with my code:

Code:
---------
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:transform version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
	<html>
		<head>
			<title><xsl:value-of select="article/title"/></title>
		</head>
		<body>
			<xsl:for-each select="article/para">
				<p>
					<xsl:value-of select="."/>
					<a href="link/@ref"><xsl:value-of select="link"/></a>
				</p>
			</xsl:for-each>
		</body>
	</html>
</xsl:template>
</xsl:transform>
---------
I have no idea how to do that and google didn't help me either. And what if I have many <link> elements in <para> element? Or other elements not only <link>?]]></description>
			<content:encoded><![CDATA[<div>Hello,<br />
<br />
I have such an XML file:<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">&lt;?xml version=&quot;1.0&quot;?&gt;<br />
&lt;?xml-stylesheet type=&quot;text/xsl&quot; href=&quot;article.xsl&quot;?&gt;<br />
&lt;article&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;title&gt;title&lt;/title&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;para&gt;Some text &lt;link ref=&quot;some_link/&quot;&gt;something&lt;/link&gt; some text2&lt;/para&gt;<br />
&lt;/article&gt;</code><hr />
</div>and I want to turn it into an HTML file using XSLT, but I have problem with &lt;para&gt; element: how to extract firstly Some text, then link something and then some text2? I mean I want that:<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">Some text something some text2</code><hr />
</div>but I get:<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">Some text some text2 something</code><hr />
</div>with my code:<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">&lt;?xml version=&quot;1.0&quot; encoding=&quot;ISO-8859-1&quot;?&gt;<br />
&lt;xsl:transform version=&quot;1.0&quot; xmlns:xsl=&quot;http://www.w3.org/1999/XSL/Transform&quot;&gt;<br />
&lt;xsl:template match=&quot;/&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;html&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;head&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;title&gt;&lt;xsl:value-of select=&quot;article/title&quot;/&gt;&lt;/title&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/head&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;body&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;xsl:for-each select=&quot;article/para&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;p&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;xsl:value-of select=&quot;.&quot;/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;a href=&quot;link/@ref&quot;&gt;&lt;xsl:value-of select=&quot;link&quot;/&gt;&lt;/a&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/p&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/xsl:for-each&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/body&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/html&gt;<br />
&lt;/xsl:template&gt;<br />
&lt;/xsl:transform&gt;</code><hr />
</div>I have no idea how to do that and google didn't help me either. And what if I have many &lt;link&gt; elements in &lt;para&gt; element? Or other elements not only &lt;link&gt;?</div>

]]></content:encoded>
			<category domain="http://forums.devx.com/forumdisplay.php?f=113">XML</category>
			<dc:creator>Iskar</dc:creator>
			<guid isPermaLink="true">http://forums.devx.com/showthread.php?t=173299</guid>
		</item>
		<item>
			<title>xml book</title>
			<link>http://forums.devx.com/showthread.php?t=173286&amp;goto=newpost</link>
			<pubDate>Mon, 02 Nov 2009 21:12:37 GMT</pubDate>
			<description>HI everybody

I have used html to program but i never used xml.Now i have to use xml to program the webside of a database. I am not sure which book can i use. Any idea??

thnx in advanced</description>
			<content:encoded><![CDATA[<div>HI everybody<br />
<br />
I have used html to program but i never used xml.Now i have to use xml to program the webside of a database. I am not sure which book can i use. Any idea??<br />
<br />
thnx in advanced</div>

]]></content:encoded>
			<category domain="http://forums.devx.com/forumdisplay.php?f=113">XML</category>
			<dc:creator>aldo</dc:creator>
			<guid isPermaLink="true">http://forums.devx.com/showthread.php?t=173286</guid>
		</item>
		<item>
			<title>XML Count Functionality</title>
			<link>http://forums.devx.com/showthread.php?t=173223&amp;goto=newpost</link>
			<pubDate>Sat, 24 Oct 2009 01:00:33 GMT</pubDate>
			<description><![CDATA[Hi All,

I am trying to learn XML on my own. I am trying to write a stylesheet which would take an XML document as input and generate another XML doxcument as output. The goal of the stylesheet is to count the number of elements in the xml document.

For Example: If this is the xml file:

<inventory>
  <room>
    <name>Office</name>
    <item>
      <name>Desk</name>
      <value>200</value>
    </item>
    <item>
      <name>Chair</name>
      <value>100</value>
    </item>
    <item>
      <name>Bookshelf</name>
      <value>300</value>
    </item>
  </room>
</inventory>

The output XML file should be:

<results>
      <result name="inventory" count="1"/>
      <result name="room" count="1"/>
      <result name="name" count="4"/>
      <result name="item" count="3"/>
      <result name="value" count="3"/>
    </results>

Can someone please help me with this problem... I would like to know what should be the logic that I should follow to write this stylesheet. If you guys give me a small snippet that would help me a lot too.

Thanks,
XML Rookie]]></description>
			<content:encoded><![CDATA[<div>Hi All,<br />
<br />
I am trying to learn XML on my own. I am trying to write a stylesheet which would take an XML document as input and generate another XML doxcument as output. The goal of the stylesheet is to count the number of elements in the xml document.<br />
<br />
For Example: If this is the xml file:<br />
<br />
&lt;inventory&gt;<br />
  &lt;room&gt;<br />
    &lt;name&gt;Office&lt;/name&gt;<br />
    &lt;item&gt;<br />
      &lt;name&gt;Desk&lt;/name&gt;<br />
      &lt;value&gt;200&lt;/value&gt;<br />
    &lt;/item&gt;<br />
    &lt;item&gt;<br />
      &lt;name&gt;Chair&lt;/name&gt;<br />
      &lt;value&gt;100&lt;/value&gt;<br />
    &lt;/item&gt;<br />
    &lt;item&gt;<br />
      &lt;name&gt;Bookshelf&lt;/name&gt;<br />
      &lt;value&gt;300&lt;/value&gt;<br />
    &lt;/item&gt;<br />
  &lt;/room&gt;<br />
&lt;/inventory&gt;<br />
<br />
The output XML file should be:<br />
<br />
&lt;results&gt;<br />
      &lt;result name=&quot;inventory&quot; count=&quot;1&quot;/&gt;<br />
      &lt;result name=&quot;room&quot; count=&quot;1&quot;/&gt;<br />
      &lt;result name=&quot;name&quot; count=&quot;4&quot;/&gt;<br />
      &lt;result name=&quot;item&quot; count=&quot;3&quot;/&gt;<br />
      &lt;result name=&quot;value&quot; count=&quot;3&quot;/&gt;<br />
    &lt;/results&gt;<br />
<br />
Can someone please help me with this problem... I would like to know what should be the logic that I should follow to write this stylesheet. If you guys give me a small snippet that would help me a lot too.<br />
<br />
Thanks,<br />
XML Rookie</div>

]]></content:encoded>
			<category domain="http://forums.devx.com/forumdisplay.php?f=113">XML</category>
			<dc:creator>xmlrookie123</dc:creator>
			<guid isPermaLink="true">http://forums.devx.com/showthread.php?t=173223</guid>
		</item>
		<item>
			<title>Linking attribute value</title>
			<link>http://forums.devx.com/showthread.php?t=173218&amp;goto=newpost</link>
			<pubDate>Fri, 23 Oct 2009 13:31:08 GMT</pubDate>
			<description><![CDATA[Hi All,

 I have a Xml document and a Xml Schema document. In xml Schema i have define sum type which i am using to validate XMl Document.

 I  want to link the attribute value with one another. 

 As per the below code i want Regionid and regionType should be linked with each other.

 For example : In XMl document it should only allow RegionID="ER" and reion="Europe and Russia"

 it should not allow other values with reionID="ER" and vice versa.


 below is the Code of XMl Schema :


<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
	<xs:element name="User" minOccurs="0" maxOccurs="6"> 
           <xs:complexType>
              <xs:attribute name="region" use="required" type="regiontype"/> 
	      <xs:attribute name="regionId" use="required" type="regionIdtype"/>
           </xs:complexType>
        </xs:element>
</xs:schema>
	

 <xs:simpleType name="regiontype"> 
        <xs:restriction base="xs:NMTOKENS">
            <xs:enumeration value="Europe and Russia"/>
            <xs:enumeration value="North America"/>
            <xs:enumeration value="Latin and South America"/>
            <xs:enumeration value="Africa"/>
            <xs:enumeration value="Middle East"/>
            <xs:enumeration value="Far East and Australsia"/>
        </xs:restriction>
    </xs:simpleType>

    <xs:simpleType name="regionIdtype"> 
        <xs:restriction base="xs:NMTOKEN">
            <xs:enumeration value="ER"/>
            <xs:enumeration value="NA"/>
            <xs:enumeration value="LSA"/>
            <xs:enumeration value="AF"/>
            <xs:enumeration value="ME"/>
            <xs:enumeration value="FEA"/>
        </xs:restriction>
    </xs:simpleType>


XMl Structure :
===============
<?xml version="1.0" encoding="UTF-8"?>
 <User regionId="ER" region="Europe and Russia">

 </User>

 How can i achieve this.

 Thanks

 -Hari]]></description>
			<content:encoded><![CDATA[<div>Hi All,<br />
<br />
 I have a Xml document and a Xml Schema document. In xml Schema i have define sum type which i am using to validate XMl Document.<br />
<br />
 I  want to link the attribute value with one another. <br />
<br />
 As per the below code i want Regionid and regionType should be linked with each other.<br />
<br />
 For example : In XMl document it should only allow RegionID=&quot;ER&quot; and reion=&quot;Europe and Russia&quot;<br />
<br />
 it should not allow other values with reionID=&quot;ER&quot; and vice versa.<br />
<br />
<br />
 below is the Code of XMl Schema :<br />
<br />
<br />
&lt;xs:schema xmlns:xs=&quot;http://www.w3.org/2001/XMLSchema&quot;&gt;<br />
	&lt;xs:element name=&quot;User&quot; minOccurs=&quot;0&quot; maxOccurs=&quot;6&quot;&gt; <br />
           &lt;xs:complexType&gt;<br />
              &lt;xs:attribute name=&quot;region&quot; use=&quot;required&quot; type=&quot;regiontype&quot;/&gt; <br />
	      &lt;xs:attribute name=&quot;regionId&quot; use=&quot;required&quot; type=&quot;regionIdtype&quot;/&gt;<br />
           &lt;/xs:complexType&gt;<br />
        &lt;/xs:element&gt;<br />
&lt;/xs:schema&gt;<br />
	<br />
<br />
 &lt;xs:simpleType name=&quot;regiontype&quot;&gt; <br />
        &lt;xs:restriction base=&quot;xs:NMTOKENS&quot;&gt;<br />
            &lt;xs:enumeration value=&quot;Europe and Russia&quot;/&gt;<br />
            &lt;xs:enumeration value=&quot;North America&quot;/&gt;<br />
            &lt;xs:enumeration value=&quot;Latin and South America&quot;/&gt;<br />
            &lt;xs:enumeration value=&quot;Africa&quot;/&gt;<br />
            &lt;xs:enumeration value=&quot;Middle East&quot;/&gt;<br />
            &lt;xs:enumeration value=&quot;Far East and Australsia&quot;/&gt;<br />
        &lt;/xs:restriction&gt;<br />
    &lt;/xs:simpleType&gt;<br />
<br />
    &lt;xs:simpleType name=&quot;regionIdtype&quot;&gt; <br />
        &lt;xs:restriction base=&quot;xs:NMTOKEN&quot;&gt;<br />
            &lt;xs:enumeration value=&quot;ER&quot;/&gt;<br />
            &lt;xs:enumeration value=&quot;NA&quot;/&gt;<br />
            &lt;xs:enumeration value=&quot;LSA&quot;/&gt;<br />
            &lt;xs:enumeration value=&quot;AF&quot;/&gt;<br />
            &lt;xs:enumeration value=&quot;ME&quot;/&gt;<br />
            &lt;xs:enumeration value=&quot;FEA&quot;/&gt;<br />
        &lt;/xs:restriction&gt;<br />
    &lt;/xs:simpleType&gt;<br />
<br />
<br />
XMl Structure :<br />
===============<br />
&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;<br />
 &lt;User regionId=&quot;ER&quot; region=&quot;Europe and Russia&quot;&gt;<br />
<br />
 &lt;/User&gt;<br />
<br />
 How can i achieve this.<br />
<br />
 Thanks<br />
<br />
 -Hari</div>

]]></content:encoded>
			<category domain="http://forums.devx.com/forumdisplay.php?f=113">XML</category>
			<dc:creator>Hari7</dc:creator>
			<guid isPermaLink="true">http://forums.devx.com/showthread.php?t=173218</guid>
		</item>
		<item>
			<title>Problem with Date type in XMl Schema</title>
			<link>http://forums.devx.com/showthread.php?t=173217&amp;goto=newpost</link>
			<pubDate>Fri, 23 Oct 2009 13:10:24 GMT</pubDate>
			<description>Hi All,

 I have created Xml Schema file which validate Xml document.In xml document i have a date attribute which i validate thorugh

 xsd but the problem is type xs:date of Xml Schema only allows date format as yyyy/mm/dd. 

 In my Xml document i want to enter date format as dd/mm/yyyy.

 Can anyone show me how to achieve this. please provide some example or code.


 Thanks for your help.

 -Nelly</description>
			<content:encoded><![CDATA[<div>Hi All,<br />
<br />
 I have created Xml Schema file which validate Xml document.In xml document i have a date attribute which i validate thorugh<br />
<br />
 xsd but the problem is type xs:date of Xml Schema only allows date format as yyyy/mm/dd. <br />
<br />
 In my Xml document i want to enter date format as dd/mm/yyyy.<br />
<br />
 Can anyone show me how to achieve this. please provide some example or code.<br />
<br />
<br />
 Thanks for your help.<br />
<br />
 -Nelly</div>

]]></content:encoded>
			<category domain="http://forums.devx.com/forumdisplay.php?f=113">XML</category>
			<dc:creator>john2078</dc:creator>
			<guid isPermaLink="true">http://forums.devx.com/showthread.php?t=173217</guid>
		</item>
	</channel>
</rss>
