Jump to content


  • Posts

  • Joined

  • Last visited

tipone's Achievements


Newbie (1/7)



  1. Ahsan, no I did not found any solution with XML Schema based
  2. I have a set of elements with values A B C D E ZXML looks like: <StatussR><Paz>A</Paz><Paz>B</Paz><Paz>Z</Paz></StatussR>Is there any way not to allow values <Paz>A</Paz> and <Paz>B</Paz> etc. if there is <Paz>Z</Paz> ?<Paz> elements with values AB can be child of StatusR, but if there are at least one <Paz> elementwith value Z combined with A,B,C,D,E then xml document is invaldi.
  3. Thank you for your answer! Looks hard, but enivey it is a solution
  4. Hi, gurus! I have a list of values in element <Paz><StatussR> <Paz>A</Paz> <Paz>B</Paz> <Paz>C</Paz></StatussR>I want not to allow to repeat a values in <Paz> in <StatussR> element. for example:<StatussR> <Paz>A</Paz> <Paz>B</Paz> <Paz>B</Paz></StatussR>HOW to declare it in Schema ?Also, is there any possibility how to define the Exact order of the <PAZ> should have? Alphabeticaly or some other?
  5. Need help for problem resolution with schema (maybe not?)I have a instance file like below: <?xml version="1.0" encoding="utf-8"?><report xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="bilances_poz.xsd"><row><row_id>A1</poz_id><row_country_code>US</row_country_code><row_currency_code>USD</row_currency_code> <gowernm>999</gowernm> <local>999</local> <issuers>999</issuers> <credit_instit>999</credit_instit> <private>999</private></row><row><row_id>A2</poz_id><row_country_code>PL</row_country_code><row_currency_code>POL</row_currency_code> <gowernm>888</gowernm> <local>888</local> <issuers>888</issuers> <credit_instit>888</credit_instit> <private>888</private></row></report> Is it possible to define in schema to avoid the combination of element <row_id> value A1 with element <issuers> and A2 with <private> ? There could be more than one disallowed combinations per each row_id.I made a syntax by myself, but it is no approved with w3, of course. <xs:denycombinations><xs:deny name="issuers"><xs:element name="row_id"><xs:element value="A1"/></xs:element></xs:deny><xs:deny name="private"><xs:element name="row_id"><xs:element value="A2"/><xs:element value="A3"/><xs:element value="A5"/></xs:element></xs:deny></xs:denycombinations> Thank you for your time!Janis
  • Create New...