generating xml from schema
Posted: Wed Jul 05, 2017 2:09 pm
I am new to oxygen and xml. I have 2 schemas in the same folder. One I was able to generate an xml for. But the second schema gives me the following error in the xml when I try to generate an xml from tools>generate sample xml content
Attribute "xmlns" bound to namespace "http://www.w3.org/2000/xmlns/" was already specified for element "group". It doesn't matter what I specify I get an error. I also got an error for element / complexContent etc
The code at the beginning of my schema is below - Please advise - thanks
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
<xs:group name="article">
<xs:sequence>
<xs:element name="article-area">
<xs:complexType>
<xs:choice>
<xs:element name="concepts"/>
<xs:element name="constants"/>
<xs:element name="seasons"/>
<xs:element name="passages"/>
</xs:choice>
</xs:complexType>
Attribute "xmlns" bound to namespace "http://www.w3.org/2000/xmlns/" was already specified for element "group". It doesn't matter what I specify I get an error. I also got an error for element / complexContent etc
The code at the beginning of my schema is below - Please advise - thanks
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
<xs:group name="article">
<xs:sequence>
<xs:element name="article-area">
<xs:complexType>
<xs:choice>
<xs:element name="concepts"/>
<xs:element name="constants"/>
<xs:element name="seasons"/>
<xs:element name="passages"/>
</xs:choice>
</xs:complexType>