Jump to content

talsnir

Members
  • Content Count

    6
  • Joined

  • Last visited

Community Reputation

0 Neutral

About talsnir

  • Rank
    Newbie
  1. Hi boen_robot,I guess you're right. But I was introduced to a method that allows me to do what I wanted with elements instead of attibutes.Using the <xsd:choice> I can promise that only the legal combinations are allowed.But unfortunately, I can't use the <choice> with attributes, so I am left with nothing again...Thanks any how...T.
  2. Hello All,As I am stepping my first steps in XSD world I am encountering some difficulties. I guess that for a more experienced programmer my problem will look very easy and will be solved in no time but I can't see what I am doing wrong, so please help!I am trying to establish a standartd validation process for my XML file (ReportsConfig.xml). I've built in a corresponding schema (ReportsConfig.xsd), I've followed the instructions described in the w3schools tutorial but I still have problems.The reportsConfig XML file should contain a root element reports. The reports element should contain a
  3. Hello All,As I am stepping my first steps in XSD world I am encountering some difficulties. I guess that for a more experienced programmer my problem will look very easy and will be solved in no time but I can't see what I am doing wrong, so please help!I am trying to establish a standartd validation process for my XML file (ReportsConfig.xml). I've built in a corresponding schema (ReportsConfig.xsd), I've followed the instructions described in the w3schools tutorial but I still have problems.The reportsConfig XML file should contain a root element reports. The reports element should contain a
  4. Hey you guys,Thank you both so much, I appriciate your help.But I am afraid I was still left with no answers... since the searchable attribute can't be mandatory.I am starting to feel that this is far more complicated problem than I was intially thought, I don't have the time to figure it right now but thanks a lot anyway!!!T.
  5. WOW... Thanks a lot kvnmck18.I've been waiting for an answer for so long.First, I wasn't even thinking about XSLT because I didn't understand I can actually use it in order to validate XML documents so thank you for that.Second, I need further more clarications... Where is the "searchable" attribute? I need to promise that the searchSize only appears if the searchable attribute exists and its value is "true". I didn't see any refernces in your reply for the "searchable" attribute.Third. the Report element has a lot more attibutes beside the above two - Is it a problem?Thanks a lot...T.
  6. Hello Gurus,I am rather new to XSD so I apologize if my question seems a little dumb.Anyway, I have this problem with validating attributes. I have a case where I need to assure that one attribute is shown if and only if another attribute is shown.For example:<Report searchable="true" searchSize="10"/> Is OK and:<Report searchable="true"/> is also OKbut, in a case like this: <Report searchSize="10"/>I expect the schema to alert me.Can anyone please let me know how it is done?Thanks a lot,T.
×
×
  • Create New...