T
Trevor
Word seems to be ignoring the default values I have specified for an
element in a XML schema definition. When I add an element of type
"some_element", it does not appear with the text "some_value". Why is
this?
Here is the schema:
<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://www.w3schools.com"
xmlns="http://www.w3schools.com"
elementFormDefault="qualified">
<xs:element name="root">
<xs:complexType>
<xs:sequence>
<xs:element name="some_element" type="xs:string"
default="some_value"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
element in a XML schema definition. When I add an element of type
"some_element", it does not appear with the text "some_value". Why is
this?
Here is the schema:
<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://www.w3schools.com"
xmlns="http://www.w3schools.com"
elementFormDefault="qualified">
<xs:element name="root">
<xs:complexType>
<xs:sequence>
<xs:element name="some_element" type="xs:string"
default="some_value"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>