Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About Falthon

  • Rank
  1. Actually, XML Copy Editor has worked out pretty well. It can validate an XML document against a schema, and can also validate a schema. It can't generate an XML document from a schema or a schema from a document (which is another feature on my wishlist), but the author plans to add that capability at some point. Thanks for the suggestions. I definitely recommend XML Copy Editor to anyone looking for an editor with a clean, simple interface.
  2. I want to allow several elements to be unbounded, but I don't need them to be in a particular order. <xs:sequence> <xs:element ref="Duration" minOccurs="1" maxOccurs="1" /> <xs:element ref="ScriptURL" minOccurs="1" maxOccurs="1" /> <xs:element ref="StimulusSignal" minOccurs="0" maxOccurs="unbounded" /> <xs:element ref="FreeNode" minOccurs="0" maxOccurs="unbounded" /> <xs:element ref="ProtectedNode" minOccurs="0" maxOccurs="unbounded" /> <xs:element ref="ExclusiveNode" minOccurs="0" maxOccurs="unbounded" /> </xs:sequence> I can't use <all>, since that wouldn't allow them to be unbounded. Is there a way to allow them to be in any order? Or is it considered preferable to require elements to be in a fixed sequence? It's not a major problem; I'm just trying to figure out best practices. I appreciate any clarification you can provide.
  3. Can anyone suggest an open source XML editor that can validate a document against a schema? Currently I'm using GEdit, and I like it a lot, but it doesn't have validation. I've tried mlview, but the error messages are not very helpful. (With the document I'm working on now, it just gives the name of the element and "Error".)
  4. Falthon

    Root Element

    Thanks for the info. I think that points me in the right direction.
  5. Falthon

    Root Element

    I recently wrote my first XML schema, and I'm getting an error with the root element. After reading the tutorial and looking through the forums I'm still not clear on how a root element should be constructed. I don't have any background in programming or XML, and I think my understanding of the basic concepts is weak. I copied an existing XML file, modified it, and then used an automated tool to generate a schema from it; that may have been a mistake. The schema (which is called StimulusModel.xsd) starts with the following lines. <?xml version="1.0" encoding="UTF-8"?><xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://sourceforge.net/projects/graframework"'>http://sourceforge.net/projects/graframework" xmlns="http://sourceforge.net/projects/graframework"'>http://sourceforge.net/projects/graframework" elementFormDefault="qualified">The XML file (Rose_Smell.xml) starts with the following. <?xml version="1.0" encoding="UTF-8" standalone="no"?><StimulusType xmlns="http://sourceforge.net/projects/graframework"'>http://sourceforge.net/projects/graframework" xmlns:xsi="http://sourceforge.net/projects/graframework StimulusModel.xsd">Should I have "encoding=UTF-8" or should I leave that out? That came from the XML file I copied, so perhaps I shouldn't have it. I assume standalone="no" since Rose_Smell.xml requires another XML file. Is this correct? Is it needed? I'm getting the following message. file:///../Rose_Smell.xml:2: parser warning : xmlns:xsi: 'http://sourceforge.net/projects/graframework StimulusModel.xsd' is not a valid URIwork" xmlns:xsi="http://sourceforge.net/projects/graframework StimulusModel.xsd"Perhaps I have more than I need in the root element? Should I delete some of it? Sorry for the newbie questions, and I appreciate any help you can provide.
  • Create New...