Examples of XMLNode

  • org.sf.bee.commons.xml.XmlNode
  • org.vietspider.parser.xml.XMLNode
    Created by VietSpider Studio Author : Nhu Dinh Thuan nhudinhthuan@yahoo.com Mar 13, 2006
  • org.webharvest.definition.XmlNode
  • org.zachtaylor.jnodalxml.XmlNode

  • Examples of org.apache.tuscany.sca.common.xml.stax.reader.XmlNode

                }
                if (value == null) {
                    return super.children();
                }
                if (isSimpleType(value.getClass())) {
                    XmlNode textNode = new BeanXmlNodeImpl(null, value);
                    return Arrays.asList(textNode).iterator();
                }
                if (Map.class.isAssignableFrom(value.getClass())) {
                    List<XmlNode> entries = new ArrayList<XmlNode>();
                    QName entryName = new QName(name.getNamespaceURI(), "entry");
    View Full Code Here

    Examples of org.apache.tuscany.sca.databinding.xml.XmlNode

                this.entry = entry;
            }

            public Iterator<XmlNode> children() {
                List<XmlNode> nodes = new ArrayList<XmlNode>();
                XmlNode key = new BeanXmlNodeImpl(new QName("", "key"), entry.getKey());
                XmlNode value = new BeanXmlNodeImpl(new QName("", "value"), entry.getValue());
                nodes.add(key);
                nodes.add(value);
                return nodes.iterator();
            }
    View Full Code Here

    Examples of org.castor.xmlctf.xmldiff.xml.nodes.XMLNode

         *
         * @return the BaseNode
         * @throws java.io.IOException if any exception occurs during parsing
         */
        public XMLNode read() throws java.io.IOException {
            XMLNode node = null;

            try {
                InputSource source = new InputSource();
                source.setSystemId(_location);
                source.setCharacterStream(new FileReader(_file));
    View Full Code Here

    Examples of org.eclipse.sapphire.modeling.xml.XmlNode

                    {
                        final Resource resource = entry.resource();
                       
                        if( resource instanceof XmlResource )
                        {
                            final XmlNode xmlNode = ( (XmlResource) resource ).getXmlElement();
                           
                            if( xmlNode != null )
                            {
                                xmlNodes.add( xmlNode );
                            }
                        }
                    }
                   
                    return xmlNodes;
                }
                else if( property instanceof ElementProperty && ! ( property instanceof ImpliedElementProperty ) )
                {
                    final Element child = element.property( (ElementProperty) property ).content();
                   
                    if( child != null )
                    {
                        final Resource resource = child.resource();
                       
                        if( resource instanceof XmlResource )
                        {
                            final XmlNode xmlNode = ( (XmlResource) resource ).getXmlElement();
                           
                            if( xmlNode != null )
                            {
                                return Collections.singletonList( xmlNode );
                            }
                        }
                    }
                }
                else
                {
                    final Resource resource = element.resource();
                   
                    if( resource instanceof XmlResource )
                    {
                        final XmlResource r = (XmlResource) resource;
                        final XmlNode xmlNode = ( (XmlValueBindingImpl) r.binding( element.property( property ) ) ).getXmlNode();
                       
                        if( xmlNode != null )
                        {
                            return Collections.singletonList( xmlNode );
                        }
    View Full Code Here

    Examples of org.exoplatform.services.xml.parser.XMLNode

          toProperties(XMLParser.createDocument(file, TextConfig.CHARSET), name, readonly);
       }

       public void toProperties(XMLDocument xmlDocument, String name, boolean readonly) throws Exception
       {
          XMLNode node = null;
          XMLNode root = xmlDocument.getRoot();
          if (root.getChildren().size() > 0)
          {
             node = getNode(root, name);
          }
          if (!readonly)
          {
             this.node_ = node;
             this.document = xmlDocument;
             if (node_ == null)
             {
                node_ = new XMLNode(name.toCharArray(), name, TypeToken.TAG);
                document.getRoot().addChild(node_);
             }
          }

          if (node == null)
    View Full Code Here

    Examples of org.fest.swing.junit.xml.XmlNode

      @Test
      public void should_add_system_output() {
        formatter.startTestSuite(new JUnitTest("test"));
        formatter.setSystemOutput(CONSOLE_OUTPUT);
        XmlNode systemOutNode = root().child(1);
        assertThat(systemOutNode.name()).isEqualTo("system-out");
        assertThat(systemOutNode.text()).isEqualTo(CONSOLE_OUTPUT);
      }
    View Full Code Here

    Examples of org.formulacompiler.spreadsheet.internal.excel.xlsx.xml.XmlNode

      private int createNamedStyle( String _name )
      {
        final int baseStyleId = createBaseStyle();
        this.namedStyles.put( _name, baseStyleId );

        final XmlNode node = new XmlNode( XMLConstants.Main.NAMED_STYLE );
        node.addAttribute( XMLConstants.Main.FORMAT_STYLE_ID, Integer.toString( baseStyleId ) );
        node.addAttribute( XMLConstants.Main.NAMED_STYLE_NAME, _name );
        this.xmlCellStyles.add( node );

        return baseStyleId;
      }
    View Full Code Here

    Examples of org.gdal.gdal.XMLNode

        public static void main(String[] args)
        {

            if (args.length != 1) usage();

            XMLNode node = new XMLNode(args[0]);
            PrintNode(0, node);
        }
    View Full Code Here

    Examples of org.jboss.dashboard.commons.xml.XMLNode

            renderFragment("entryEnd");
            return !result.hasErrors();
        }

        protected void renderElementsInEntry(ImportResult result, int index) {
            XMLNode node = result.getRootNode();
            List<XMLNode> children = node.getChildren();
            if (children == null || children.isEmpty()) {
                renderFragment("emptyEntry");
            } else {
                renderFragment("entryElementsOutputStart");
                BackOfficePermission createPerm = BackOfficePermission.newInstance(null, BackOfficePermission.ACTION_CREATE_WORKSPACE);
    View Full Code Here

    Examples of org.openntf.domino.utils.xml.XMLNode

       *
       * @see org.openntf.domino.types.Design#getUniversalID()
       */
      @Override
      public String getUniversalID() {
        XMLNode node = getDxl().selectSingleNode("//noteinfo");
        if (node != null) {
          return node.getAttribute("unid");
        }
        return "";
      }
    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.