Examples of IXMLElement


Examples of net.n3.nanoxml.IXMLElement

      String encoding = settings.getString("moneyplex.encoding","ISO-8859-1");
      Logger.info("moneyplex encoding: " + encoding);
      IXMLParser parser = XMLParserFactory.createDefaultXMLParser();
      parser.setReader(new StdXMLReader(new InputStreamReader(is,encoding)));
      IXMLElement root = (IXMLElement) parser.parse();
      Vector<IXMLElement> lines = root.getChildrenNamed("BUCHUNG");
     
      if (lines == null || lines.size() == 0)
        throw new ApplicationException(i18n.tr("Datei enth�lt keine Buchungen"));
     
      double factor = 100d / (double) lines.size();
View Full Code Here

Examples of net.n3.nanoxml.IXMLElement

    umsatz.setKonto(konto);
    umsatz.setDatum(datum);
    umsatz.setValuta(valuta);
   
    IXMLElement empfaenger = line.getFirstChildNamed("EMPFAENGER");
    if (empfaenger != null)
      umsatz.setGegenkontoName(getContent(empfaenger.getFirstChildNamed("NAME")));
    //
    ////////////////////////////////////////////////////////////////////////////
   
    // Checken, ob es eine Split-Buchung ist.
    IXMLElement split = line.getFirstChildNamed("SPLITT");
    if (split != null)
    {
      // Jepp, ist eine Splitt-Buchung. Dann duplizieren wir die Buchung anhand
      // der Anzahl von Splits
      Vector<IXMLElement> parts = split.getChildrenNamed("PART");
      if (parts == null || parts.size() == 0)
        throw new ApplicationException("Split-Auftrag ohne enthaltene Buchungen");
      for (IXMLElement p:parts)
      {
        Umsatz copy = umsatz.duplicate();
View Full Code Here

Examples of net.n3.nanoxml.IXMLElement

   * @param name The name of the new element
   * @return The created XmlElement
   */
  public XmlElement createElement( String name )
  {
    IXMLElement ele = element.createElement( name );
    return new NanoXmlElement( ele );
  }
View Full Code Here

Examples of net.n3.nanoxml.IXMLElement

   * @return The first instance of an XmlElement found at the specified path of
   * the implementing object
   */
  public XmlElement getFirstChildNamed( String name )
  {
    IXMLElement ele = element.getFirstChildNamed( name );

    return ele == null ? null : new NanoXmlElement( ele );
  }
View Full Code Here

Examples of net.n3.nanoxml.IXMLElement

   * read
   * @return The root XmlElement resulting from the parsing of the XML
   */
  public XmlElement parse( Reader input )
  {
    IXMLElement xml = null;
    try {
      IXMLParser parser = new StdXMLParser();
      parser.setBuilder( new StdXMLBuilder() );
      parser.setValidator( new NonValidator() );

View Full Code Here

Examples of org.asem.eclipse.mii.model.abs.IXMLElement

            NodeList nodeList = element.getChildNodes();
            for (int i=0;i<nodeList.getLength();i++) {
                Node node = nodeList.item(i);
                if (node instanceof Element) {
                    Element el = (Element)node;
                    IXMLElement xmlEl = LoadFactory.loadObject(el);
                    if (xmlEl == null)
                        continue;
           
                    xmlEl.restore(el);
                    shapes.add((AbstractModelShape)xmlEl);
                }
            }
        }
        else {
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.