Package org.freeplane.n3.nanoxml

Examples of org.freeplane.n3.nanoxml.XMLElement.enumerateChildren()


      final URL resource = ResourceController.getResourceController().getResource(xmlDescriptorFile);
      xmlDescriptorStream = resource.openStream();
      final IXMLReader reader = new StdXMLReader(xmlDescriptorStream);
      parser.setReader(reader);
      final XMLElement xml = (XMLElement) parser.parse();
      final Enumeration<XMLElement> actionDescriptors = xml.enumerateChildren();
      while (actionDescriptors.hasMoreElements()) {
        final XMLElement descriptor = actionDescriptors.nextElement();
        final String name = descriptor.getAttribute("name", null);
        final XMLElement xmlProperties = descriptor.getFirstChildNamed("properties");
        final Properties properties = xmlProperties.getAttributes();
View Full Code Here


  public void writeContent(final ITreeWriter writer, final Object element, final IExtension extension)
          throws IOException {
    final UnknownElements elements = (UnknownElements) extension;
    final XMLElement unknownElements = elements.getUnknownElements();
    if (unknownElements != null) {
      final Enumeration<XMLElement> unknownChildren = unknownElements.enumerateChildren();
      while (unknownChildren.hasMoreElements()) {
        writer.addElement(null, unknownChildren.nextElement());
      }
    }
  }
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.