Skip to content

Handle any field in a XML schema #34

Description

@guillaume-tgl

Is there any way to handle an any field in a XML schema?

For example:

<element name="resourcetype">
    <complexType>
        <sequence>
            <element ref="dav:collection" minOccurs="0"/>
            <any processContents="skip" namespace="##other" minOccurs="0" maxOccurs="unbounded" />
        </sequence>
    </complexType>
</element>

I know that in JAXB, this is possible with the XmlAnyElement annotation but I haven't found a way to achieve this with SimpleXml.

Thanks!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions