Code example for Node

Methods: getLocalNamegetNamespaceURIgetPrefix

0
		this.startLine = startLine;
		this.endLine = endLine;
 
		// If a DOM node given then retrieve the relevant information 
		if (node != null) {
			localName = node.getLocalName();
			prefix = node.getPrefix();
			namespaceURI = node.getNamespaceURI();
		} 
	} 
	 
	public XmlSourceLocation(XmlSourceLocation location) {
		resource = location.getResource();
		localName = location.getLocalName();
		prefix = location.getPrefix();
		namespaceURI = location.getNamespaceURI();
		startLine = location.getStartLine();
		endLine = location.getEndLine();
	} 
 
	public void setResource(Resource resource) {