Package org.infoglue.cms.util.dom

Examples of org.infoglue.cms.util.dom.DOMBuilder.createDocument()


   * @return the document.
   */
  private Document buildContentVersionDocument()
  {
    final DOMBuilder builder  = new DOMBuilder();
    final Document document   = builder.createDocument();
    final Element rootElement = builder.addElement(document, "root");
    builder.addAttribute(rootElement, "xmlns", "x-schema:Schema.xml");
    final Element attributesRoot =  builder.addElement(rootElement, "attributes");
   
    buildAttributes(builder, attributesRoot);
View Full Code Here


        }
           
            logger.info("userPropertiesAttributesMap:" + userPropertiesAttributesMap.size());
           
            DOMBuilder domBuilder = new DOMBuilder();
            Document document = domBuilder.createDocument();
            Element rootElement = null;
            Element attributesRoot = null;
           
            logger.info("keepExistingAttributes:" + keepExistingAttributes);
            if(keepExistingAttributes && userPropertiesVO.getValue() != null)
View Full Code Here

            @SuppressWarnings("unchecked")
            Map<String, String> attributes = (Map<String, String>)contentVersion.get("contentVersionAttributes");

            DOMBuilder domBuilder = new DOMBuilder();
            Document document = domBuilder.createDocument();

            Element rootElement = domBuilder.addElement(document, "root");
            domBuilder.addAttribute(rootElement, "xmlns", "x-schema:Schema.xml");
            Element attributesRoot = domBuilder.addElement(rootElement, "attributes");
View Full Code Here

                document = domBuilder.getDocument(existingXML);
                attributesRoot = (Element)document.getRootElement().element("attributes");
              }
              else
              {
                document = domBuilder.createDocument();
                Element rootElement = domBuilder.addElement(document, "root");
                domBuilder.addAttribute(rootElement, "xmlns", "x-schema:Schema.xml");
                attributesRoot = domBuilder.addElement(rootElement, "attributes");
              }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.