« 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

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.


Post a comment

Your Information

(Name and email address are required. Email address will not be displayed with the comment.)