Jump to content

JoshuaP

Members
  • Content Count

    3
  • Joined

  • Last visited

Community Reputation

0 Neutral

About JoshuaP

  • Rank
    Newbie
  1. Hi,I want to define a type in my XSD that will validate both the XML examples below. <!-- Example 1 --><my_root_node> <street_type>STREET</street_type></my_root_node> <!-- Example 2 --><my_root_node> <street_type> <street_type>STREET</street_type> <street_type_alias>ST</street_type_alias> </street_type></my_root_node> However I do not want to define a mixed type as I don't want the following XML example to be valid. <!-- XML --><my_root_node> <street_type>STREET <street_type>STR
  2. Just some elements in the wrong place and no namespace of others.Try this an see how you go. The subpages might be in the wrong spot, it wasn't quite clear from your post. <xsd:element name="Mybookmark"> <xsd:complexType> <xsd:sequence> <xsd:element name="info" type="xsd:string"/> <xsd:element name="author" type="xsd:string"/> <xsd:element name="id" type="xsd:string"/> <xsd:element name="company" type="xsd:string"/> <xsd:element name="year" type="xsd:integer"/> <xsd:element name="shortdescription" type="xsd:string"/>
  3. Hi,I am having issues with elements with null values. The elements can be of many different types.Currently I have only be able to do this with a union on simple types, but I also want to allow complex types to be nulls. I have also tinkered with an XSLT that removes blank elements that works but I am after a neater approach.From all the documentation that I have read this is possible with the nillable="true" on the element tag but the program I am using (Liquid XML) say the xml is well formed but is invalid for the xsd. Some background on how the XML is created. A DB processes that is not sma
×
×
  • Create New...