Revision 2658 trunk/applications/appCatalogYNomenclatorClient/src/es/gva/cit/catalogClient/metadataXML/XMLTree.java

View differences:

XMLTree.java
56 56
			
57 57
		} catch (ParserConfigurationException e) {
58 58
			// TODO Auto-generated catch block
59
			System.err.println(e.toString());
59 60
			return null;
60 61
		} catch (SAXException e1) {
61 62
			// TODO Auto-generated catch block
63
			System.err.println(e1.toString());
62 64
			return null;
63 65
		} catch (IOException e1) {
64 66
			// TODO Auto-generated catch block
67
			System.err.println(e1.toString());
65 68
			return null;
66 69
		}
67 70
		
......
380 383
		Node[] nodes = new Node[leafNodes.size()];
381 384
		for (int i = 0 ; i < leafNodes.size() ; i++)
382 385
			nodes[i] = (Node)leafNodes.get(i);
383
					
386
						
384 387
		return nodes;
385 388
	}
386 389
	
......
394 397
	 * 		The parent node label
395 398
	 */
396 399
	public static String getParentLabel(String nodeLabel){
397
						
398
		StringTokenizer sti = new StringTokenizer(nodeLabel,"->");
399
				
400
		return sti.nextToken();
400
		StringTokenizer sti = new StringTokenizer(nodeLabel,new String("->"));
401
		String cadena = sti.nextToken();
402
		return cadena; //sti.nextToken();
401 403
	}
402 404
	/**
403 405
	 * Gets the node label
......
465 467
					
466 468
		return sti.countTokens();
467 469
	}
468

  
469
	
470 470
}
471 471

  

Also available in: Unified diff