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 edu.mit.csail.sdg.alloy4.XMLNode

        /** Parse sig/set. */
        private Sig parseSig(String id, int depth) throws IOException, Err {
            Sig ans = id2sig.get(id);
            if (ans!=null) return ans;
            XMLNode node = nmap.get(id);
            if (node==null) throw new IOException("Unknown SigID "+id+" encountered.");
            if (!node.is("sig")) throw new IOException("ID "+id+" is not a sig.");
            String label   = label(node);
            Attr isAbstract = yes(node,"abstract") ? Attr.ABSTRACT : null;
            Attr isOne      = yes(node,"one")      ? Attr.ONE      : null;
            Attr isLone     = yes(node,"lone")     ? Attr.LONE     : null;
            Attr isSome     = yes(node,"some")     ? Attr.SOME     : null;
            Attr isPrivate  = yes(node,"private"? Attr.PRIVATE  : null;
            Attr isMeta     = yes(node,"meta")     ? Attr.META     : null;
            Attr isEnum     = yes(node,"enum")     ? Attr.ENUM     : null;
            Attr isExact    = yes(node,"exact")    ? Attr.EXACT    : null;
            if (yes(node,"builtin")) {
               if (label.equals(UNIV.label))   { id2sig.put(id, UNIV);   return UNIV;   }
               if (label.equals(SIGINT.label)) { id2sig.put(id, SIGINT); return SIGINT; }
               if (label.equals(SEQIDX.label)) { id2sig.put(id, SEQIDX); return SEQIDX; }
               if (label.equals(STRING.label)) { id2sig.put(id, STRING); return STRING; }
               throw new IOException("Unknown builtin sig: "+label+" (id="+id+")");
            }
            if (depth > nmap.size()) throw new IOException("Sig "+label+" (id="+id+") is in a cyclic inheritance relationship.");
            List<Sig> parents = null;
            TupleSet ts = factory.noneOf(1);
            for(XMLNode sub:node) {
               if (sub.is("atom")) { ts.add(factory.tuple(sub.getAttribute("label"))); continue; }
               if (!sub.is("type")) continue;
               Sig parent = parseSig(sub.getAttribute("ID"), depth+1);
               if (parents==null) parents = new ArrayList<Sig>();
               parents.add(parent);
            }
            if (parents==null) {
               String parentID = node.getAttribute("parentID");
               Sig parent = parseSig(parentID, depth+1);
               if (!(parent instanceof PrimSig)) throw new IOException("Parent of sig "+label+" (id="+id+") must not be a subset sig.");
               for(Expr choice: choices)
                  if (choice instanceof PrimSig && parent==((PrimSig)choice).parent && ((Sig)choice).label.equals(label))
                     { ans=(Sig)choice; choices.remove(choice); break; }
    View Full Code Here

    Examples of hu.jokeman.xparser.document.XMLNode

        private XMLNode pop () {
            return _currentNodes.pop ();
        }

        public void addCData (String content) throws DocumentBuilderException {
            XMLNode currentNode = peek ();
            if (currentNode instanceof Document ||
                    currentNode instanceof Element) {
               
                currentNode.addChild (new CData (content));
            } else {
                throw new DocumentBuilderException ("CData isn't allowed here.");
            }
        }
    View Full Code Here

    Examples of net.hasor.core.XmlNode

            InputStream inStream = ResourcesUtils.getResourceAsStream("net/test/simple/core/_11_xml/xml-data.xml");
            InputStreamSettings settings = new InputStreamSettings(inStream);
            settings.loadSettings();//装载配置文件
            //
            //
            XmlNode xmlNoe = settings.getXmlNode("demoProject.menus");
            for (XmlNode sub : xmlNoe.getChildren("menu")) {
                String menuCode = sub.getAttribute("code");
                String menuName = sub.getAttribute("name");
                String menuURL = sub.getAttribute("url");
                Hasor.logInfo("%s[%s] to %s.", menuName, menuCode, menuURL);
            }
    View Full Code Here

    Examples of net.lagerwey.xml.XmlNode

        if (screen == null) {
          return;
        }
       
        for (Iterator<XmlNode> iterator = screen.getNode().getChildren().iterator(); iterator.hasNext();) {
          XmlNode childNode = (XmlNode) iterator.next();
         
          if (childNode.getName().equals("eLabel")) {
            addLabel(childNode, g);
          }
          else if (childNode.getName().equals("ePixmap")) {
            addPixmap(childNode, g);
          }
          else if (childNode.getName().equals("widget")) {
            addWidget(childNode, g);
          }
        }
      }
    View Full Code Here

    Examples of net.sf.lapg.templates.model.xml.XmlNode

    import net.sf.lapg.templates.test.TemplateTestCase;

    public class XmlTest extends TemplateTestCase{

      public void testSelector() {
        XmlNode n = XmlModel.load(" <r><user name='jone'/>go<user name='go'/></r> ");

        TestTemplatesFacade env = new TestTemplatesFacade(new XmlNavigationFactory(), new ClassTemplateLoader(getClass().getClassLoader(), "net/sf/lapg/templates/test/ltp", "utf8"));

        // test 1
        String q = env.executeTemplate("xmltest.xmldo", new EvaluationContext(n), null, null);
    View Full Code Here

    Examples of nokogiri.XmlNode

                XmlNamespace xmlNamespace = xmlDocument.getNamespaceCache().get(prefix, href);
                if (xmlNamespace != null) return xmlNamespace;
                else return XmlNamespace.createFromAttr(ruby, (Attr)node);
                }
            }
            XmlNode xmlNode = getCachedNode(node);
            if(xmlNode == null) {
                xmlNode = (XmlNode)constructNode(ruby, node);
                node.setUserData(CACHED_NODE, xmlNode, null);
            }
            return xmlNode;
    View Full Code Here

    Examples of oracle.xml.parser.v2.XMLNode

         }      
         return ret;
      }
     
      public static XMLNode getNode(String xPathPattern) {
         XMLNode ret = null;
         try {
             ret = (XMLNode) rootConfigNode.selectSingleNode(xPathPattern);
         } catch (Exception e) {
             System.out.println(e.toString());
         }
    View Full Code Here

    Examples of oracle.xml.parser.v2.XMLNode

             

              //parcoure des nodes
              NodeList nl =  n.getChildNodes();
              for (int i = 0; i < nl.getLength(); i++) {
                 XMLNode theNode = (XMLNode) nl.item(i);
                 if (theNode.getNodeName().compareTo("#text")!=0) {
                   if (theNode.getNodeName().compareTo("#document")!=0){
                   infoNode(theNode , xpath + theNode.getNodeName()+"/");
                   } else {
                   infoNode(theNode , xpath );
                   }
                 }
               }
    View Full Code Here

    Examples of oracle.xml.parser.v2.XMLNode

     
          Run run = new Run(args);
          
         try {
        
          XMLNode lstLogSourceNode = (XMLNode) xmlConfig.getNode("/log4plsql");
          NodeList listLogSource = lstLogSourceNode.selectNodes("logSource");
          XMLNode theLogSource;
          dbLogger.debug("Nbr backgroundProcess to launch :"+listLogSource.getLength());
          if (listLogSource.getLength() < 1 )
            dbLogger.error("No backgroundProcess to launch");
          for (int i=0; i<listLogSource.getLength(); i++){
            dbLogger.debug("start " + i + " backgroundProcess");
    View Full Code Here

    Examples of org.apache.axis2.json.gson.factory.XmlNode

        private void process() throws IOException {
            Object ob = configContext.getProperty(JsonConstant.XMLNODES);
            if (ob != null) {
                Map<QName, XmlNode> nodeMap = (Map<QName, XmlNode>) ob;
                XmlNode resNode = nodeMap.get(elementQName);
                if (resNode != null) {
                    xmlNodeGenerator = new XmlNodeGenerator();
                    queue = xmlNodeGenerator.getQueue(resNode);
                } else {
                    xmlNodeGenerator = new XmlNodeGenerator(xmlSchemaList, elementQName);
    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.