gpt4 book ai didi

org.metawidget.util.XmlUtils.newDocument()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-26 21:45:05 28 4
gpt4 key购买 nike

本文整理了Java中org.metawidget.util.XmlUtils.newDocument()方法的一些代码示例,展示了XmlUtils.newDocument()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XmlUtils.newDocument()方法的具体详情如下:
包路径:org.metawidget.util.XmlUtils
类名称:XmlUtils
方法名:newDocument

XmlUtils.newDocument介绍

[英]Creates a new Document built from a shared, no-external-connection-making DocumentBuilder created by a namespace-aware, comment-ignoring, whitespace-ignoring DocumentBuilderFactory.
[中]创建从共享、无外部连接构建的新文档,使DocumentBuilder由名称空间感知、忽略注释、忽略空白的DocumentBuilderFactory创建。

代码示例

代码示例来源:origin: org.metawidget.modules/metawidget-all

Document document = XmlUtils.newDocument();
Element documentRoot = document.createElementNS( NAMESPACE, ROOT );
documentRoot.setAttribute( VERSION, "1.0" );

代码示例来源:origin: org.metawidget.modules/metawidget-all

Document document = XmlUtils.newDocument();
Element documentRoot = document.createElementNS( NAMESPACE, ROOT );
documentRoot.setAttribute( VERSION, "1.0" );

代码示例来源:origin: org.metawidget.modules/metawidget-all

@Override
protected Element getDocumentElement( ResourceResolver resolver, InputStream... files )
  throws Exception {
  Document document = XmlUtils.newDocument();
  Element root = document.createElement( FORM_BEANS_ELEMENT );
  document.appendChild( root );
  for ( InputStream file : files ) {
    Document documentParsed = XmlUtils.parse( file );
    Element formBeans = XmlUtils.getChildNamed( documentParsed.getDocumentElement(), FORM_BEANS_ELEMENT );
    if ( formBeans == null ) {
      continue;
    }
    XmlUtils.combineElements( root, formBeans, getTopLevelTypeAttribute(), getNameAttribute() );
  }
  return root;
}

代码示例来源:origin: org.metawidget.modules/metawidget-all

@Override
protected Element getDocumentElement( ResourceResolver resolver, InputStream... files )
  throws Exception {
  Document document = XmlUtils.newDocument();
  Element root = document.createElement( FORMSET_ELEMENT );
  document.appendChild( root );
  for ( InputStream file : files ) {
    Document documentParsed = XmlUtils.parse( file );
    Element formSet = XmlUtils.getChildNamed( documentParsed.getDocumentElement(), FORMSET_ELEMENT );
    if ( formSet == null ) {
      continue;
    }
    XmlUtils.combineElements( root, formSet, getTopLevelTypeAttribute(), getNameAttribute() );
  }
  return root;
}

代码示例来源:origin: org.metawidget.modules/metawidget-core

document = XmlUtils.newDocument();
entity = document.createElementNS( NAMESPACE, ENTITY );
document = XmlUtils.newDocument();
entity = document.createElementNS( NAMESPACE, ENTITY );
inspectTraits( (Element) valueAndDeclaredType.getValue(), entity );

代码示例来源:origin: org.metawidget.modules/metawidget-all

document = XmlUtils.newDocument();
entity = document.createElementNS( NAMESPACE, ENTITY );
document = XmlUtils.newDocument();
entity = document.createElementNS( NAMESPACE, ENTITY );
inspectTraits( (Element) valueAndDeclaredType.getValue(), entity );

代码示例来源:origin: org.metawidget.modules/metawidget-core

Document newDocument = XmlUtils.newDocument();
Element newInspectionResult = newDocument.createElementNS( NAMESPACE, ROOT );
XmlUtils.setMapAsAttributes( newInspectionResult, XmlUtils.getAttributesAsMap( inspectionResult ) );

代码示例来源:origin: org.metawidget.modules/metawidget-all

Document newDocument = XmlUtils.newDocument();
Element newInspectionResult = newDocument.createElementNS( NAMESPACE, ROOT );
XmlUtils.setMapAsAttributes( newInspectionResult, XmlUtils.getAttributesAsMap( inspectionResult ) );

代码示例来源:origin: org.metawidget.modules/metawidget-core

Document document = XmlUtils.newDocument();
Element entity = document.createElementNS( NAMESPACE, ENTITY );

代码示例来源:origin: org.metawidget.modules/metawidget-all

Document document = XmlUtils.newDocument();
Element entity = document.createElementNS( NAMESPACE, ENTITY );

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com