I agree that package and namespaces might be disconnected. But still there is a
standard convertion described in the JAXB spec ('C.5.1 Mapping from a Namespace
URI') and maybe some other specs. Which is ok as the default. This is
implemented in
| package org.jboss.xml.binding;
| public final class Util
| public static String xmlNamespaceToJavaPackage(String namespace)
|
Tests are here (at the bottom)
http://cvs.sourceforge.net/viewcvs.py/jboss/jbosstest/src/main/org/jboss/test/xml/XMLNameToJavaIdentifierUnitTestCase.java?rev=1.3&view=markup
XML documents are always validated against a schema. The schema defines what
elements from what namespaces are allowed/required at specific positions (the
structure). So, I think you have to define an integration schema for the target
document if you want to add other elements (modify the structure).
Schema is not required for unmarshalling. It's optional.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3859851#3859851
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3859851
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
JBoss-Development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-development