
| Key: |
XMLBEANS-267
|
| Type: |
Bug
|
| Status: |
Closed
|
| Resolution: |
Fixed
|
| Priority: |
Major
|
| Assignee: |
Unassigned
|
| Reporter: |
Dmitri Colebatch
|
| Votes: |
0
|
| Watchers: |
0
|
|
If you were logged in you would be able to see more operations.
|
|
|
|
Environment:
|
Windows XP, Intel, Sun JRE 1.5.0_04
|
|
| Resolution Date: |
19/Apr/06 12:32 AM
|
|
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.
|
|
Description
|
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.
|
Show » |
| There are no subversion log entries for this issue yet.
|
|