Issue 9 in pyxmlcheck: XCheck allows attributes and children to have the same name

1 view
Skip to first unread message

pyxml...@googlecode.com

unread,
Feb 1, 2014, 7:29:23 PM2/1/14
to pyxmlchec...@googlegroups.com
Status: Accepted
Owner: Joshua.R.English
Labels: Type-Defect Priority-Medium Usability

New issue 9 by Joshua.R.English: XCheck allows attributes and children to
have the same name
http://code.google.com/p/pyxmlcheck/issues/detail?id=9

What steps will reproduce the problem?

addyCheck = XCheck('address')
addyCheck.add_child(TextCheck('street'), TextCheck('city'))

addyCheck.addattribute(IntCheck('city'))

What is the expected output? What do you see instead?

It should raise an error, until I can get a checker.get('child@attribute')
language. checker.get() always checks and returns attributes first, so
child nodes are lost.

Please use labels and text to provide additional information.



--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

pyxml...@googlecode.com

unread,
Feb 1, 2014, 7:53:55 PM2/1/14
to pyxmlchec...@googlegroups.com
Updates:
Status: Invalid

Comment #1 on issue 9 by Joshua.R.English: XCheck allows attributes and
Actually, this is not a bug. I didn't read my own five-year old
documentation. This works. Children_only, when true, means don't include
attributes.
Reply all
Reply to author
Forward
0 new messages