Created
January 1, 2012 07:37
-
-
Save takezoe/1546629 to your computer and use it in GitHub Desktop.
[scalaxb]How are repeated child elements mapped to case classes?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
case class Person(personsequence1: jp.sf.amateras.scala.util.xsd.PersonSequence1*) | |
case class PersonSequence1(lang: jp.sf.amateras.scala.util.xsd.Lang) | |
case class Lang(value: String) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<schema xmlns="http://www.w3.org/2001/XMLSchema" | |
targetNamespace="http://www.example.org/sample" | |
xmlns:tns="http://www.example.org/sample" elementFormDefault="qualified"> | |
<complexType name="person"> | |
<sequence maxOccurs="unbounded" minOccurs="0"> | |
<element name="lang" type="tns:lang"></element> | |
</sequence> | |
</complexType> | |
<complexType name="lang"> | |
<simpleContent> | |
<extension base="string"></extension> | |
</simpleContent> | |
</complexType> | |
</schema> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment