-
Notifications
You must be signed in to change notification settings - Fork 4
NamespacePrefixesMap
do- edited this page Jan 2, 2022
·
9 revisions
NamespacePrefixesMap is a Map descendant representing aliases of namespace declarations when writing XML text.
Unlike NamespacesMap it maps namespace URIs to generated prefixes ns0, ns1 etc., not vice versa.
Instances of this class are not to be created from nor used in application code. They appear internally when XMLSchemata writes XML text for a given object.
During construction, NamespacePrefixesMap recursively scans a given XMLSchema fragment like
{
"name": "ImportDebtRequestsRequest",
"complexType": {
"complexContent": {
"extension": {
"base": [
"BaseRequestType",
"urn:dom.gosuslugi.ru/common/1.2.0"
],
"sequence": {
for all namespace references (see base in the example above): 2-element arrays with the 2nd element contained in parent XMLSchemata.