Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Excluding & passing in xml #60

Open
hanishjadala opened this issue Jul 12, 2018 · 0 comments
Open

Excluding & passing in xml #60

hanishjadala opened this issue Jul 12, 2018 · 0 comments

Comments

@hanishjadala
Copy link

hanishjadala commented Jul 12, 2018

require 'builder'

builder = ::Builder::XmlMarkup.new(:target=>@output, :indent=>2)
builder.result{
builder.total_prospects "1"
builder.prospect { |b|
b.text << "Test & Me";
b.welcome << "Welcome & You";
}
}
print builder
OUTPUT:
screenshot from 2018-07-12 19-18-41

Can you help how should I do this.
Need text in a tag but as you can see it is not coming with in tags

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant