private Map<String, Object> parseXml2Map(Resource resource) throws IOException {
		Map<String, Object> map = new LinkedHashMap<>(32);
		try {
			DocumentBuilder documentBuilder = DocumentBuilderFactory.newInstance()
					.newDocumentBuilder();
			Document document = documentBuilder.parse(resource.getInputStream());
			if (null == document) {
				return null;
			}
			parseNodeList(document.getChildNodes(), map, "");
		}
		catch (Exception e) {
			throw new IOException("The xml content parse error.", e.getCause());
		}
		return map;
	}
Load the resource into one or more property sources. Implementations may either
return a list containing a single source, or in the case of a multi-document format
such as yaml a source for each document in the resource.
@param name the root name of the property source. If multiple documents are loaded
an additional suffix should be added to the name for each source loaded.
@param resource the resource to load
@return a list property sources
@throws IOException if the source cannot be loaded
spring-cloud-alibaba-starters/spring-alibaba-nacos-config/src/main/java/com/alibaba/cloud/nacos/parser/NacosXmlPropertySourceLoader.java