Page 1 of 1

Re: XML Schema: Element with attributes containing only text?

Posted: Mon Oct 10, 2022 11:41 am
by tavy
Hello,

I think a schema for the XML document should be something like the one below.
You can use the Generate/Convert Schema action from the Tools menu or from the Open with submenu when invoking the contextual menu in the Project view. This action opens the Generate/Convert Schema dialog box that allows you to configure various options for conversion.
https://www.oxygenxml.com/doc/versions/ ... uages.html

Code: Select all

<xs:element name="option">
    <xs:complexType>
      <xs:simpleContent>
        <xs:extension base="xs:NCName">
          <xs:attribute name="value" use="required" type="xs:NCName"/>
        </xs:extension>
      </xs:simpleContent>
    </xs:complexType>
  </xs:element>
Best Regards,
Octavian