[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xmlbeans-dev
Subject:    [jira] Created: (XMLBEANS-267) toFirstAttribute/toNextAttribute
From:       "Dmitri Colebatch (JIRA)" <xmlbeans-dev () xml ! apache ! org>
Date:       2006-04-18 6:08:19
Message-ID: 13812275.1145340499175.JavaMail.jira () brutus
[Download RAW message or body]

toFirstAttribute/toNextAttribute doesn't work
---------------------------------------------

         Key: XMLBEANS-267
         URL: http://issues.apache.org/jira/browse/XMLBEANS-267
     Project: XMLBeans
        Type: Bug

  Components: XmlObject  
    Versions: Version 2.1    
 Environment: Windows XP, Intel, Sun JRE 1.5.0_04
    Reporter: Dmitri Colebatch


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.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic