XMLSerializer.java 文件源码

java
阅读 25 收藏 0 点赞 0 评论 0

项目:OpenJSharp 作者:
/**
 * Switches to the "marshal child texts/elements" mode.
 * This method has to be called after the 1st pass is completed.
 */
public void endAttributes() throws SAXException, IOException, XMLStreamException  {
    if(!seenRoot) {
        seenRoot = true;
        if(schemaLocation!=null || noNsSchemaLocation!=null) {
            int p = nsContext.getPrefixIndex(WellKnownNamespace.XML_SCHEMA_INSTANCE);
            if(schemaLocation!=null)
                out.attribute(p,"schemaLocation",schemaLocation);
            if(noNsSchemaLocation!=null)
                out.attribute(p,"noNamespaceSchemaLocation",noNsSchemaLocation);
        }
    }

    out.endStartTag();
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号