-
Notifications
You must be signed in to change notification settings - Fork 36
Closed
Description
I got this XSD info
<xs:complexType name="SupplementaryDataEnvelope1">
<xs:sequence>
<xs:any namespace="##any" processContents="lax"/>
</xs:sequence>
</xs:complexType>I don't seem to find any sub-elements in the sequence.
def xsdSequenceToElement(xsdSequence: XsdSequence, xpath: String): JSONObject = {
val node = createObjectOfType("Sequence")
Option(xsdSequence.getAnnotation).foreach(annotation => objectEnrichWithAnnotation(node, annotation))
xsdSequence.getChildrenElements.forEach(el => {
getOrCreateChildren(node).put(recurseXsdElement(el, xpath))
()
})
xsdSequence.getChildrenChoices.forEach(choice => {
getOrCreateChildren(node).put(xsdChoiceToElement(choice, xpath))
()
})
xsdSequence.getChildrenSequences.forEach(seq => {
getOrCreateChildren(node).put(xsdSequenceToElement(seq, xpath))
()
})
node
}Can I detect this case ?
Metadata
Metadata
Assignees
Labels
No labels