Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="UTF-8"?>
- <foo:Object xsi:schemaLocation="http://foo.com/ http://foo.com/foo.xsd"
- xmlns:ns0="http://lipsum.com/bar" xmlns:foo="http://foo.com/"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <foo:Some attr1="601"/>
- <foo:Others>
- <bar:Another xsi:schemaLocation="http://lipsum.com/bar
- http://lipsum.com/bar.xsd" xmlns:bar="http://lipsum.com/bar">
- <bar:SomeOther attr2="01"/>
- </bar:Another>
- </foo:Others>
- </foo:Object>
- @XmlAnyElement(lax = true)
- @XmlElementRefs({
- @XmlElementRef(name="Another", type=Another.class, required=false)
- })
- protected List<Object> any;
- 1.- Ignore the namespaces from @XmlElementRef classes during the marshalling.
- 2.- Remove the not used namespaces aka NS[0-9] prefixes from the root element.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement