Got it to parse properly now.. Had two issues :
1) hard ^M (carriage returns) at the end of each XML line -- thanks
Eclipse! -- didn't cause any problems just annoying
2) Got my array of use-case elements using the following code:
(parser document root elementNamed: 'UseCases') elements reject: [:each
| each isBlankText]
For whatever reason the array for the returned element has
empty entries in it -- and looks like the following in my
case :
An instance of Array
contents: [
[1]:
[2]: <UseCase>Use-Case #1</UseCase>
[3]:
[4]: <UseCase>Use-Case #2</UseCase>
[5]:
]
After running the above reject: code it becomes :
An instance of Array
contents: [
[1]: <UseCase>Use-Case #1</UseCase>
[2]: <UseCase>Use-Case #2</UseCase>
]
YMMV!
_______________________________________________
help-smalltalk mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-smalltalk