Issue Details (XML | Word | Printable)

Key: XMLBEANS-267
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: Dmitri Colebatch
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
XMLBeans

toFirstAttribute/toNextAttribute doesn't work

Created: 18/Apr/06 01:06 PM   Updated: 19/Apr/06 06:14 AM
Return to search
Component/s: XmlObject
Affects Version/s: Version 2.1
Fix Version/s: None

Time Tracking:
Not Specified

Environment: Windows XP, Intel, Sun JRE 1.5.0_04

Resolution Date: 19/Apr/06 12:32 AM


 Description  « Hide
Either I'm misinterpreting the expected usage of toNextAttribute, or it simply doesn't work. Here's my test code:

public static void main(String[] args) throws Exception
{
XmlObject xml = XmlObject.Factory.parse(new StringReader("<foo a=\"x\"><bar>test</bar></foo>"));
XmlCursor cursor = xml.newCursor();
boolean found = cursor.toFirstAttribute();
System.out.println("found attribute: " + found);
}

And it outputs:

found attribute: false

I'm assuming this is a bug as the javadoc implies this should work.


 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
There are no subversion log entries for this issue yet.