ilex.xml.XmlUtils Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of opendcs Show documentation
Show all versions of opendcs Show documentation
A collection of software for aggregatting and processing environmental data such as from NOAA GOES satellites.
The newest version!
/*
* $Id$
*
* $Log$
* Revision 1.1 2008/04/04 18:21:10 cvs
* Added legacy code to repository
*
* Revision 1.2 2004/08/30 14:50:41 mjmaloney
* Javadocs
*
* Revision 1.1 2004/04/26 20:02:27 mjmaloney
* Dev.
*
*/
package ilex.xml;
import org.xml.sax.Attributes;
/**
* This class contains static methods that provide convenince functions for
* writing XML parsers & writers.
*/
public class XmlUtils
{
/**
* Returns an attribute value with the given name, without regard
* to the case of the name-string.
* @param atts attributes
* @param name name to search for
* @return value or null if not found.
*/
public static String getAttrIgnoreCase( Attributes atts, String name )
{
int len = atts.getLength();
for(int i=0; i