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

Content stored as XML instead of String #24

Open
cwhiteley opened this issue Mar 23, 2010 · 2 comments
Open

Content stored as XML instead of String #24

cwhiteley opened this issue Mar 23, 2010 · 2 comments

Comments

@cwhiteley
Copy link

I have some deep XML that I would like to store as XML instead of Text.

<books>
  <book>The story of my life</book>
  <book>The story of your life</book>
</books>

If xml_accessor :books, :from => :content it is stored like : The story of my life The story of your life

is it possible to store or get the element as XML

<book>The story of my life</book>
<book>The story of your life</book>

Thanks,

Christopher

@Empact
Copy link
Owner

Empact commented Jun 12, 2010

Hey Chris, your point doesn't quite come across, thanks to the fact that your markup has been stripped. Could you try editing to add that markup?

@cwhiteley
Copy link
Author

First I want to say that you ROXML is amazing and easy to use.

I am working on putting together an Open Source SIF agent which needs to parse and create XML messages. I need to pull out element values as XML not strings. If you try and obtain the :content from books you get the story of your life twice.
First I want to say that you ROXML is amazing and easy to use.

I am working on putting together an Open Source SIF agent which needs to parse and create XML messages. I need to pull out element values as XML not strings. If you try and obtain the :content from books you get the story of your life twice - where i would rather obtain it as XML so it might look like this:

 The story of my life
 The story of your life

I would rather obtain it as XML so it might look like this:

  <book>The story of my life</book>
  <book>The story of your life</book>

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

2 participants