com.landawn.abacus.parser.AbstractXMLParser Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of abacus-util-se Show documentation
Show all versions of abacus-util-se Show documentation
A general programming library in Java/Android. It's easy to learn and simple to use with concise and powerful APIs.
/*
* Copyright (C) 2015 HaiYang Li
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
package com.landawn.abacus.parser;
import java.io.Reader;
import java.lang.reflect.Modifier;
import javax.xml.stream.StreamFilter;
import javax.xml.stream.XMLStreamConstants;
import javax.xml.stream.XMLStreamReader;
import org.w3c.dom.Document;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
import org.xml.sax.Attributes;
import com.landawn.abacus.exception.ParseException;
import com.landawn.abacus.logging.Logger;
import com.landawn.abacus.logging.LoggerFactory;
import com.landawn.abacus.parser.JSONSerializationConfig.JSC;
import com.landawn.abacus.parser.ParserUtil.PropInfo;
import com.landawn.abacus.type.Type;
import com.landawn.abacus.type.TypeFactory;
import com.landawn.abacus.util.N;
import com.landawn.abacus.util.WD;
import com.landawn.abacus.util.XMLUtil;
/**
* The Class AbstractXMLParser.
*
* @author Haiyang Li
* @since 0.8
*/
abstract class AbstractXMLParser extends AbstractParser implements XMLParser {
/** The Constant logger. */
private static final Logger logger = LoggerFactory.getLogger(AbstractXMLParser.class);
/** The Constant jsonParser. */
protected static final JSONParser jsonParser = ParserFactory.createJSONParser();
/** The Constant jsc. */
protected static final JSONSerializationConfig jsc = JSC.create().setCharQuotation(WD.CHAR_0);
/** The Constant jscWithCircularRefSupported. */
protected static final JSONSerializationConfig jscWithCircularRefSupported = JSC.create().setCharQuotation(WD.CHAR_0).supportCircularReference(true);
/** The Constant objType. */
protected static final Type
© 2015 - 2025 Weber Informatics LLC | Privacy Policy