dip.misc
Class XMLUtils

java.lang.Object
  extended bydip.misc.XMLUtils

public class XMLUtils
extends java.lang.Object

Various static utilities used to parse and format XML (and SVG). None of these methods, though, are SVG-specific.

The duplicate and similar XML methods in other classes should gradually be added to here.


Method Summary
static org.w3c.dom.Element findChildElementMatching(org.w3c.dom.Node root, java.lang.String tagName)
          Find the first child Element matching the given tag name.
static org.w3c.dom.Node findChildNodeMatching(org.w3c.dom.Node root, java.lang.String tagName, short nodeType)
          Find the first child node matching the given tag name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

findChildElementMatching

public static org.w3c.dom.Element findChildElementMatching(org.w3c.dom.Node root,
                                                           java.lang.String tagName)
Find the first child Element matching the given tag name. Only searches 1st-level children; not a recursive search. Null if not found.


findChildNodeMatching

public static org.w3c.dom.Node findChildNodeMatching(org.w3c.dom.Node root,
                                                     java.lang.String tagName,
                                                     short nodeType)
Find the first child node matching the given tag name. Only searches 1st-level children; not a recursive search. Null if not found.



Copyright 2002-2004 Zachary DelProposto / jDip Development Team. All Rights Reserved.