src/main/java/com/mxgraph/io/mxCodec.java
public Object decode(Node node, Object into)
	{
		Object obj = null;

		if (node != null && node.getNodeType() == Node.ELEMENT_NODE)
		{
			mxObjectCodec codec = mxCodecRegistry.getCodec(node.getNodeName());

			try
			{
				if (codec != null)
				{
					obj = codec.decode(this, node, into);
				}
				else
				{
					obj = node.cloneNode(true);
					((Element) obj).removeAttribute("as");
				}
			}
			catch (Exception e)
			{
				log.log(Level.FINEST, "Cannot decode " + node.getNodeName(), e);
			}
		}

		return obj;
	}
/**
	 * Decodes the given XML node. The optional "into" argument specifies an
	 * existing object to be used. If no object is given, then a new
	 * instance is created using the constructor from the codec.
	 * 
	 * The function returns the passed in object or the new instance if no
	 * object was given.
	 * 
	 * @param node XML node to be decoded.
	 * @param into Optional object to be decodec into.
	 * @return Returns an object that represents the given node.
	 */
Decodes the given XML node. The optional "into" argument specifies an
existing object to be used. If no object is given, then a new
instance is created using the constructor from the codec.

The function returns the passed in object or the new instance if no
object was given.

@param node XML node to be decoded.
@param into Optional object to be decodec into.
@return Returns an object that represents the given node.
Decodes the given XML node . The optional " into " argument specifies an existing object to be used . If no object is given then a new instance is created using the constructor from the codec . The function returns the passed in object or the new instance if no object was given . @param node XML node to be decoded . @param into Optional object to be decodec into . @return Returns an object that represents the given node .
public Object decode(Node node, Object into)
	{
		Object obj = null;
		if (node != null && node.getNodeType() == Node.ELEMENT_NODE)
		{
			mxObjectCodec codec = mxCodecRegistry.getCodec(node.getNodeName());
			try
			{
				if (codec != null)
				{
					obj = codec.decode(this, node, into);
				}
				else
				{
					obj = node.cloneNode(true);
					((Element) obj).removeAttribute("as");
				}
			}
			catch (Exception e)
			{
				log.log(Level.FINEST, "Cannot decode " + node.getNodeName(), e);
			}
		}
		return obj;
	}
public Object decode ( Node node , Object into ) { Object obj = null ; if ( node != null && node . getNodeType ( ) == Node . ELEMENT_NODE ) { mxObjectCodec codec = mxCodecRegistry . getCodec ( node . getNodeName ( ) ) ; try { if ( codec != null ) { obj = codec . decode ( this , node , into ) ; } else { obj = node . cloneNode ( true ) ; ( ( Element ) obj ) . removeAttribute ( "as" ) ; } } catch ( Exception e ) { log . log ( Level . FINEST , "Cannot decode " + node . getNodeName ( ) , e ) ; } } return obj ; }
Decodes the given XML node.
Decodes the given XML node .