Here you can find the source of getAttributeValueAsString(Node node)
Parameter | Description |
---|---|
node | the node from which to get the attribute value |
public final static String getAttributeValueAsString(Node node) throws DOMException
//package com.java2s; /**/* w w w. j av a2 s . c o m*/ * Copyright (c) 1999-2007, Fiorano Software Technologies Pvt. Ltd. and affiliates. * Copyright (c) 2008-2015, Fiorano Software Pte. Ltd. and affiliates. * * All rights reserved. * * This software is the confidential and proprietary information * of Fiorano Software ("Confidential Information"). You * shall not disclose such Confidential Information and shall use * it only in accordance with the terms of the license agreement * enclosed with this product or entered into with Fiorano. */ import org.w3c.dom.*; public class Main { /** * Gets the attribute value as string. * *@param node the node from which to get the attribute value *@return The attribute value as a string *@exception DOMException if an error occurs while getting the attrubute * value */ public final static String getAttributeValueAsString(Node node) throws DOMException { if (node != null) { return node.getNodeValue(); } return null; } }