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

LibXML::XML::Error: LibXML::XML::Error at :0. #6

Closed
azisaka opened this issue May 4, 2009 · 2 comments
Closed

LibXML::XML::Error: LibXML::XML::Error at :0. #6

azisaka opened this issue May 4, 2009 · 2 comments

Comments

@azisaka
Copy link

azisaka commented May 4, 2009

I'm getting this error only when I use has_many or has_one method.

The code and xml is here: http://gist.github.com/105430

@jimbomt
Copy link

jimbomt commented Jan 19, 2011

hi,
I'm also having a similar issue but only when using has_many. The error message in this case is 'Undefined namespace prefix. (LibXML::XML::Error)'. Works "fine" if I use 'element" or "has_one' but it gets me of course one element - which is not what i want. Here is the sample code and xml:

class Paragraph
include HappyMapper

tag 'Description'
namespace MyModule::NS
attribute :name, String, :tag => 'Name'
has_many :text, String, :tag => 'Text', :namespace => MyModule::NS, :attributes => {:Language => String}
end

<ns:Description Name="TITLE" xmlns:ns="http://www.example.org">
<ns:Text Language="EN">Title in English/ns:Text
<ns:Text Language="IT">Titolo in Italiano/ns:Text
/ns:Description

@jnunemaker
Copy link
Owner

Closing due to staleness and the fact that the project is currently not being maintained.

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

3 participants