All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ilex.xml.XmlUtils Maven / Gradle / Ivy

Go to download

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy