« X-Cascade header in Rails | Main | Adding magic encoding comments to existing ruby sources »



Feed You can follow this conversation by subscribing to the comment feed for this post.

can i make nested a parser?

for example if i have a |item| then can i analyse it and make more item.for_tag ?

There's not really any way to do that from within Saxerator, however since you have the Hash for that element you can use normal Hash semantics for dealing with subtags stored within the hash.

For example:
Saxerator.parser(file).for_tag(:item).each do |item|
authors = item['authors']
authors.each do |author|
# do something with author here

The comments to this entry are closed.