Project

Profile

Help

getAttributes from NodeInfo

Added by Anonymous almost 16 years ago

Legacy ID: #6459716 Legacy Poster: Vaidhy Kumar (vaidhykumar)

Hello, I am wondering is there any way to get attributes from a NodeInfo if it represents an element? Thanks Vaidhy


Replies (1)

RE: getAttributes from NodeInfo - Added by Anonymous almost 16 years ago

Legacy ID: #6461429 Legacy Poster: Michael Kay (mhkay)

Use iterateAxis(Axis.ATTRIBUTE) to iterate over the attribute nodes. If you want a specific attribute there is a helper method net.sf.saxon.om.Navigator.getAttributeValue(uri, local) Michael Kay

    (1-1/1)

    Please register to reply