The QName prefix namespace map stores a
prefix as the keys and namespace Uri as the values. This
QName prefix namespace map is stored on the root
XSDSchema object and is used when XSDNamedComponents
need to be resolved.
If you want to add additional prefix-namespace pairs to
a given XML Schema file, you can do the following:
//Add additional prefix-namespace pair xmlns:address="http://www.eclipse.org/xsd/examples/address"
qNamePrefixToNamespaceMap.put("address","http://www.eclipse.org/xsd/examples/address");
The above code snippet produces the following serialized
XML Schema model:
<?xml version="1.0"?>
<schema targetNamespace="http://www.eclipse.org/xsd/examples/createxsd"
xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:address="http://www.eclipse.org/xsd/examples/address"
xmlns:createxsd="http://www.eclipse.org/xsd/examples/createxsd"/>