Skip to content

Handle any field in a XML schema #34

@guillaume-tgl

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!

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