forked from kgiszczak/shale
-
Notifications
You must be signed in to change notification settings - Fork 1
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
schemaLocation
is not really supported
#3
Comments
The workaround is actually this: class SomeClass < Shale::Mapper
attribute :schema_location, Shale::Type::String
xml do
root "Dictionary"
map_attribute "schemaLocation", to: :schema_location, prefix: "xsi", namespace: "http://www.w3.org/2001/XMLSchema-instance"
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In XML files there are many occasions that alongside an XML namespace declaration, a
schemaLocation
is also provided.e.g.
Notice that in the original
<gml:Dictionary>
it containsschemaLocation
. However, in Shale I have to manually encode schemaLocation as a dataattribute
, which is quite crazy.The text was updated successfully, but these errors were encountered: